package cn.com.goldenwater.dcproj.service; import cn.com.goldenwater.core.service.CrudService; import cn.com.goldenwater.dcproj.dto.*; import cn.com.goldenwater.dcproj.model.BisInspPblm; import cn.com.goldenwater.dcproj.model.BisInspPblmDelLog; import cn.com.goldenwater.dcproj.model.KeyRegPblm; import cn.com.goldenwater.dcproj.model.WagaTotal; import cn.com.goldenwater.dcproj.param.*; import com.github.pagehelper.PageInfo; import org.springframework.web.multipart.MultipartFile; import javax.servlet.http.HttpServletResponse; import java.io.IOException; import java.util.Date; import java.util.List; /** * @author lune * @date 2019-2-19 */ public interface BisInspPblmService extends CrudService { PageInfo listOfPage(BisInspPblmParam pblmParam); /** * 通用问题导出接口 * * @param pblmParam 问题筛选参数 * @param response response */ void exportPblmForExcel(PblmParam pblmParam, HttpServletResponse response); public KeyRegPblm convertRegPblm(KeyRegPblm baseDtos); void updateStateByObjId(String objId, String state); /** * 添加问题 * * @param bisInspPblm 问题数据 */ void insertPblms(BisInspPblm bisInspPblm); /** * 更新问题 * * @param bisInspPblm 问题数据 * @return 返回成功状态 */ int updatePblm(BisInspPblm bisInspPblm); PageInfo findPageList(PlbmParam plbmParam); // ------------------------- 自定方法 ------------------------- public PageInfo queryListByPage(BisInspPblmParam p) throws Exception; public List queryList(BisInspPblmParam p) throws Exception; List countByType(String presId, String adCode, String orgId); /** * 小水库问题-新 */ PageInfo findReverPlbmList(ReverParam reverParam); /** * 人饮问题-新 */ PageInfo findVillPlbmList(VillParam villParam); /** * 水毁问题-新 */ PageInfo findTrackPlbmList(TrackParam trackParam); BisInspPblmDelLog insertPblmLog(BisInspPblmDelLogDto bisInspPblmDelLogDto); PageInfo findWaterPlbmList(UnderWaterParam waterParam); PageInfo countByReverPage(CountParam countParam); PageInfo countByVillPage(CountParam countParam); public PageInfo countByTrackPage(CountParam countParam); public void setValue(TrackCount trackCount, TrackTypeCount typeCount); public void setVillValue(VillCount villCount, VillTypeCount typeCount, String type); /** * 获取问题所在的县数量 */ List findVillPblmBYAreaId(String areaId, String persId, String orgId, String pType); List findTrackPblmBYAreaId(String areaId, String persId, String orgId); PageInfo findWagaPlbmList(WagaParam wagaParam); PageInfo findKeyRegPlbmList(KeyRegPatam keyRegPatam); /** * 水闸问题统计 */ PageInfo countByWagaPage(CountParam countParam); /** * 统计172工程问题 */ PageInfo countByKeyRegPage(CountParam countParam); /** * 流域机构下查询172工程问题 */ List findKeyRegBYAreaId(String pType, String persId, String orgId); /** * 流域下小水闸统计 */ List findWagaPblmBYAreaId(String s, String persId, String orgId); PageInfo findSdPblmList(SdPblmParam param); PageInfo countBySdPage(CountParam countParam); List findPblmByPersId(String persId, String currentOrgId); PageInfo countBySwhsPage(CountParam countParam); PageInfo findPblmList(PblmParam param); List pblmList(PblmParam param); List findVillType(String currentOrgId); PageInfo countByWiuPage(CountParam countParam); PageInfo countByPrdPage(CountParam countParam); PageInfo countByJsflPage(CountParam countParam); PageInfo countByJswaPage(CountParam countParam); boolean havePblm(String value, String id); PageInfo pblmPage(BisInspVo bisInspVo); PageInfo pblmRectPage(BisInspVo bisInspVo); int updatePblmState(BisInspPblmParam pblmParam) throws Exception; List getPblmList(String id, String type, String objId, String orgId); /** * 根据行政区代码和时间获取问题数据 * * @param adCode * @param stTm * @param enTm * @return */ BisInspTaskTotal getPblmListByTm(String adCode, String objType, Date stTm, Date enTm); List getPblmPath(String pblmId); /** * 问题汇总功能增加外部问题导入 * @param f */ List excelImport(MultipartFile f, String recPers) throws Exception; List getPblmListFromImport(PblmParam param); void batchDelete(List param); }