package com.goldenwater.hzz.service; import com.goldenwater.hzz.domain.EventDTO; import com.goldenwater.hzz.mapper.EventClearMapper; import com.github.pagehelper.PageHelper; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import java.util.List; @Service public class EventClearService { @Autowired private EventClearMapper mapper; public List findList(EventDTO p, int pn, int ps) { PageHelper.startPage(pn,ps); return mapper.findList(p); } public List findListByAdCode(String ad, String et, String kw, String ot, int pn, int ps) { PageHelper.startPage(pn,ps); return mapper.findListByAdCode(ad,et,kw,ot); } }