Commit 600951f8 authored by 麻笑宇's avatar 麻笑宇

下钻接口修改类型筛选

parent 6478c5c3
...@@ -351,7 +351,7 @@ ...@@ -351,7 +351,7 @@
<if test="dto.endDate != null and dto.endDate != ''"> <if test="dto.endDate != null and dto.endDate != ''">
and date_le(CAST(a.accept_date as date),#{dto.endDate}) and date_le(CAST(a.accept_date as date),#{dto.endDate})
</if> </if>
<if test='businessType !=null and businessType !="" and businessType !="0"'> <if test="businessType !=null and businessType !=''">
and a.inspection_type = #{businessType} and a.inspection_type = #{businessType}
</if> </if>
</select> </select>
...@@ -371,7 +371,7 @@ ...@@ -371,7 +371,7 @@
<if test="dto.endDate != null and dto.endDate != ''"> <if test="dto.endDate != null and dto.endDate != ''">
and date_le(CAST(a.application_date as date),#{dto.endDate}) and date_le(CAST(a.application_date as date),#{dto.endDate})
</if> </if>
<if test='businessType !=null and businessType !="" and businessType !="0"'> <if test="businessType !=null and businessType !=''">
and a.inspection_type = #{businessType} and a.inspection_type = #{businessType}
</if> </if>
</select> </select>
...@@ -397,7 +397,7 @@ ...@@ -397,7 +397,7 @@
<if test="dto.superviseUnitName != null and dto.superviseUnitName != ''"> <if test="dto.superviseUnitName != null and dto.superviseUnitName != ''">
and inspection_unit_name like CONCAT('%', #{dto.superviseUnitName}, '%') and inspection_unit_name like CONCAT('%', #{dto.superviseUnitName}, '%')
</if> </if>
<if test='businessType !=null and businessType !="" and businessType != "0"'> <if test="businessType !=null and businessType !=''">
and a.inspection_type = #{businessType} and a.inspection_type = #{businessType}
</if> </if>
</select> </select>
......
...@@ -946,6 +946,11 @@ public class JYJCDPStatisticsServiceImpl { ...@@ -946,6 +946,11 @@ public class JYJCDPStatisticsServiceImpl {
if (orgCode == null) { if (orgCode == null) {
return 0L; return 0L;
} }
if(null != businessType){
if("0".equals(businessType)){
return inspectionApplicationMapper.countBizFinishedNumForDP(orgCode, dpFilterParamDto,null);
}
}
return inspectionApplicationMapper.countBizFinishedNumForDP(orgCode, dpFilterParamDto,businessType); return inspectionApplicationMapper.countBizFinishedNumForDP(orgCode, dpFilterParamDto,businessType);
} }
...@@ -954,6 +959,11 @@ public class JYJCDPStatisticsServiceImpl { ...@@ -954,6 +959,11 @@ public class JYJCDPStatisticsServiceImpl {
if (orgCode == null) { if (orgCode == null) {
return 0L; return 0L;
} }
if(null != businessType){
if("0".equals(businessType)){
return inspectionApplicationMapper.countBizFinishedNumForDP(orgCode, dpFilterParamDto,null);
}
}
return inspectionApplicationMapper.countAllInFlowingForDPNoFinishedBizData(orgCode, dpFilterParamDto,businessType); return inspectionApplicationMapper.countAllInFlowingForDPNoFinishedBizData(orgCode, dpFilterParamDto,businessType);
} }
...@@ -967,6 +977,12 @@ public class JYJCDPStatisticsServiceImpl { ...@@ -967,6 +977,12 @@ public class JYJCDPStatisticsServiceImpl {
filterParamDto.setBeginDate(dpFilterParamForDetailDto.getTimeSearchOne().getBeginDate()); filterParamDto.setBeginDate(dpFilterParamForDetailDto.getTimeSearchOne().getBeginDate());
filterParamDto.setEndDate(dpFilterParamForDetailDto.getTimeSearchOne().getEndDate()); filterParamDto.setEndDate(dpFilterParamForDetailDto.getTimeSearchOne().getEndDate());
} }
if(null != dpFilterParamForDetailDto.getTreeValue()){
if("0".equals(dpFilterParamForDetailDto.getTreeValue())){
Page<Map<String, Object>> maps = inspectionApplicationMapper.getInspectDetailList(page, orgCode, filterParamDto, null);
return maps;
}
}
Page<Map<String, Object>> maps = inspectionApplicationMapper.getInspectDetailList(page, orgCode, filterParamDto, dpFilterParamForDetailDto.getTreeValue()); Page<Map<String, Object>> maps = inspectionApplicationMapper.getInspectDetailList(page, orgCode, filterParamDto, dpFilterParamForDetailDto.getTreeValue());
return maps; return maps;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment