|
|
@ -22,19 +22,18 @@ import java.util.List; |
|
|
|
public interface DwCheckingRecordV2Mapper extends BaseMapper<DwCheckingRecord> { |
|
|
|
|
|
|
|
@Select("<script> " + |
|
|
|
"select base.adcd code ,count(1) sum " + |
|
|
|
"select xm.note code ,count(1) sum " + |
|
|
|
"from bs_sgc_dw_xsxcjl xm " + |
|
|
|
"left join att_project_base base on base.dike_code=xm.dike_code " + |
|
|
|
"where 1=1 " + |
|
|
|
"<if test='data.startTime != null'> and xm.create_time >= #{data.startTime} </if> " + |
|
|
|
"<if test='data.endTime != null'> and xm.create_time <= #{data.endTime} </if> " + |
|
|
|
"<if test='data.adcdQx != null and data.adcdQx != \"\"'>" + |
|
|
|
"and base.adcd like concat(#{data.adcdQx}, '%') " + |
|
|
|
"and xm.note like concat(#{data.adcdQx}, '%') " + |
|
|
|
"</if>" + |
|
|
|
"<if test='category != null'>" + |
|
|
|
"and xm.category = #{category.value} " + |
|
|
|
"</if>" + |
|
|
|
"group by base.adcd " + |
|
|
|
"group by xm.note " + |
|
|
|
"</script>") |
|
|
|
List<CountDto> count(@Param("data") ObjectStatisticQueDto sp, @Param("category") PatrolMaintenanceCategory category); |
|
|
|
|
|
|
@ -54,7 +53,7 @@ public interface DwCheckingRecordV2Mapper extends BaseMapper<DwCheckingRecord> { |
|
|
|
List<CountDateDto> countDateGroup(@Param("data") ObjectStatisticQueDto sp, @Param("category") PatrolMaintenanceCategory category); |
|
|
|
|
|
|
|
@Select("<script> " + |
|
|
|
"select count(distinct project_code) from bs_sgc_dw_xsxcjl " + |
|
|
|
"select count(distinct dike_code) from bs_sgc_dw_xsxcjl " + |
|
|
|
"<if test='data.startTime != null' > and create_time >= #{data.startTime} </if> " + |
|
|
|
"<if test='data.endTime != null'> and create_time <= #{data.endTime} </if> " + |
|
|
|
"<if test='data.code != null and data.code != \"\"'>" + |
|
|
|