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<EventDTO> findList(EventDTO p, int pn, int ps) { PageHelper.startPage(pn,ps); return mapper.findList(p); }
    public List<EventDTO> findListByAdCode(String ad, String et, String kw, String ot, int pn, int ps) { PageHelper.startPage(pn,ps); return mapper.findListByAdCode(ad,et,kw,ot); }
}
