forked from zhuyuchen/buliang
111 lines
3.8 KiB
Java
111 lines
3.8 KiB
Java
package com.example.demo.service;
|
|
|
|
import com.baomidou.mybatisplus.extension.service.IService;
|
|
import com.example.demo.domain.ZfjcData;
|
|
import com.example.demo.entity.TongJi.ZhiFaJianChaLv;
|
|
import com.example.demo.entity.vo.DaPingScoreQX;
|
|
import com.example.demo.entity.vo.ZHZSVo;
|
|
import com.example.demo.entity.vo.ZhzsScoreVo;
|
|
import com.example.demo.util.ZR;
|
|
import com.fasterxml.jackson.core.JsonProcessingException;
|
|
import org.springframework.util.ObjectUtils;
|
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
import java.time.LocalDate;
|
|
import java.time.format.DateTimeFormatter;
|
|
import java.util.List;
|
|
|
|
/**
|
|
* @author zhuYuChen
|
|
* @description 针对表【ZFJC_DATA】的数据库操作Service
|
|
* @createDate 2023-11-07 13:34:13
|
|
*/
|
|
public interface ZfjcDataService extends IService<ZfjcData> {
|
|
|
|
/**
|
|
* 执法检查的问题率查询
|
|
*/
|
|
Object getWenTiLv(String startTime, String endTime, String hj, String szqx);
|
|
|
|
/**
|
|
* 执法检查的问题率查询(参数是日期类型)
|
|
*/
|
|
ZhzsScoreVo<ZhiFaJianChaLv> getWentiLvVo(LocalDate start, LocalDate end, String hj, String szqx);
|
|
|
|
/**
|
|
* 获取各区各环节的三级指标及成绩
|
|
*/
|
|
List<ZHZSVo> getScoreByQuQuery(String hj, String szqx, LocalDate startTime, LocalDate endTime);
|
|
|
|
List<ZHZSVo> getScoreByStreetQuery(String hj, String szqx, LocalDate startTime, LocalDate endTime);
|
|
|
|
/**
|
|
* 执法检查的问题率查询
|
|
*/
|
|
void wenTiLvExport(String startTime, String endTime, String hj, String szqx, HttpServletResponse response);
|
|
|
|
ZR<List<ZhiFaJianChaLv>> getWenTiLvYZ(Double lv);
|
|
|
|
/**
|
|
* 执法检查问题率,大屏演示
|
|
* @param hj
|
|
* @param szqx
|
|
* @return
|
|
*/
|
|
Object getWenTiLvDaPing(String hj, String szqx, String startTime, String endTime);
|
|
|
|
/**
|
|
* 执法检查问题率 街道 ,大屏演示
|
|
* @param hj
|
|
* @param szqx
|
|
* @return
|
|
*/
|
|
default Object getWenTiLvDaPingStreet(String hj, String szqx, String startTime, String endTime,String street){
|
|
DateTimeFormatter dateString = DateTimeFormatter.ofPattern("yyyy/M/d");
|
|
LocalDate start = !ObjectUtils.isEmpty(startTime) ? LocalDate.parse(startTime, dateString) : null;
|
|
LocalDate end = !ObjectUtils.isEmpty(endTime) ? LocalDate.parse(endTime, dateString) : null;
|
|
return getWenTiLvDaPingStreet(start,end, hj, szqx, street);
|
|
}
|
|
/**
|
|
* 执法检查问题率 街道 ,大屏演示
|
|
* @param hj
|
|
* @param szqx
|
|
* @return
|
|
*/
|
|
default Object getWenTiLvDaPingStreetDasai(String hj, String szqx, String startTime, String endTime,String street,int littlemonth){
|
|
DateTimeFormatter dateString = DateTimeFormatter.ofPattern("yyyy/M/d");
|
|
LocalDate start = !ObjectUtils.isEmpty(startTime) ? LocalDate.parse(startTime, dateString) : null;
|
|
LocalDate end = !ObjectUtils.isEmpty(endTime) ? LocalDate.parse(endTime, dateString) : null;
|
|
start = start.plusMonths(littlemonth);
|
|
end = end.plusMonths(littlemonth);
|
|
return getWenTiLvDaPingStreet(start,end, hj, szqx, street);
|
|
}
|
|
|
|
/**
|
|
* 执法检查问题率 街道 ,大屏演示 新建的重载方法
|
|
* @param hj
|
|
* @param szqx
|
|
* @return
|
|
*/
|
|
Object getWenTiLvDaPingStreet(LocalDate startTime,LocalDate endTime, String hj, String szqx, String street);
|
|
|
|
/**
|
|
* 根据区查看分数
|
|
* @return
|
|
*/
|
|
ZR<List<DaPingScoreQX>> getScoreByQu() throws JsonProcessingException;
|
|
|
|
/**
|
|
* 根据环节查看分数
|
|
*/
|
|
ZR<List<DaPingScoreQX>> getScoreByHuanJie(String szqx, String start, String end);
|
|
|
|
/**
|
|
* 导出(分环节)
|
|
*/
|
|
void exportByHuanJie(HttpServletResponse response, String startTime, String endTime, String hj, String szqx);
|
|
|
|
//区县字段清洗
|
|
Object replaceZfjcithQx(String source, String dest);
|
|
}
|