|
@ -30,10 +30,13 @@ public interface DfRecordMapper extends BaseMapper<DfRecord> { |
|
|
"select count(*) from bs_sgc_df_xsjhjlz where RECORD_ID " + |
|
|
"select count(*) from bs_sgc_df_xsjhjlz where RECORD_ID " + |
|
|
"in ( "+ |
|
|
"in ( "+ |
|
|
"select jl.id from bs_sgc_df_xsjhjl as jl "+ |
|
|
"select jl.id from bs_sgc_df_xsjhjl as jl "+ |
|
|
"left join att_dike_base base on base.dike_code=jl.dike_code"+ |
|
|
"left join att_dike_base base on base.dike_code=jl.dike_code "+ |
|
|
"<if test='dto.adcdQx != null and dto.adcdQx != \"\"'> "+ |
|
|
"<if test='dto.adcdQx != null and dto.adcdQx != \"\"'> "+ |
|
|
" and df.adcd like concat(#{dto.adcdQx}, '%') "+ |
|
|
" and base.adcd like concat(#{dto.adcdQx}, '%') "+ |
|
|
"</if> "+ |
|
|
"</if> "+ |
|
|
|
|
|
"<if test='dto.handleStatus != null and dto.handleStatus != \"\"'> " + |
|
|
|
|
|
"where jl.handle_status=#{dto.handleStatus} "+ |
|
|
|
|
|
"</if> " + |
|
|
"group by jl.DIKE_CODE,jl.id "+ |
|
|
"group by jl.DIKE_CODE,jl.id "+ |
|
|
") "+ |
|
|
") "+ |
|
|
"<if test='dto.patrolStart != null and dto.patrolEnd != \"\"'> "+ |
|
|
"<if test='dto.patrolStart != null and dto.patrolEnd != \"\"'> "+ |
|
@ -43,15 +46,13 @@ public interface DfRecordMapper extends BaseMapper<DfRecord> { |
|
|
"<if test='dto.problem != null and dto.problem != \"\"'> " + |
|
|
"<if test='dto.problem != null and dto.problem != \"\"'> " + |
|
|
"AND status=#{dto.problem} "+ |
|
|
"AND status=#{dto.problem} "+ |
|
|
"</if> " + |
|
|
"</if> " + |
|
|
"<if test='dto.handleStatus != null and dto.handleStatus != \"\"'> " + |
|
|
|
|
|
"AND handle_status=#{dto.handleStatus} "+ |
|
|
|
|
|
"</if> " + |
|
|
|
|
|
"</script>") |
|
|
"</script>") |
|
|
int dfNumber(@Param("dto") DfYhHiddenDangerQueDto dto); |
|
|
int dfNumber(@Param("dto") DfYhHiddenDangerQueDto dto); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Select("<script>" + |
|
|
@Select("<script>" + |
|
|
"select adb.adcd,lz.status as problem,count(1) as count from bs_sgc_df_xsjhjlz as lz "+ |
|
|
"select base.adcd,lz.status as problem,count(1) as count from bs_sgc_df_xsjhjlz as lz "+ |
|
|
"left join bs_sgc_df_xsjhjl hj on hj.id=lz.RECORD_ID "+ |
|
|
"left join bs_sgc_df_xsjhjl hj on hj.id=lz.RECORD_ID "+ |
|
|
"left join att_dike_base base on base.dike_code=hj.dike_code "+ |
|
|
"left join att_dike_base base on base.dike_code=hj.dike_code "+ |
|
|
"<if test='dto.adcdQx != null and dto.adcdQx != \"\"'> "+ |
|
|
"<if test='dto.adcdQx != null and dto.adcdQx != \"\"'> "+ |
|
@ -70,14 +71,15 @@ public interface DfRecordMapper extends BaseMapper<DfRecord> { |
|
|
List<DfYhHiddenDangerModel> yhNumberData(@Param("dto") DfYhHiddenDangerQueDto dto); |
|
|
List<DfYhHiddenDangerModel> yhNumberData(@Param("dto") DfYhHiddenDangerQueDto dto); |
|
|
|
|
|
|
|
|
@Select("<script>" + |
|
|
@Select("<script>" + |
|
|
"select base.adcd,lz.handle_status,count(1) as count from bs_sgc_df_xsjhjlz as lz "+ |
|
|
"select base.adcd,hj.handle_status,count(1) as count from bs_sgc_df_xsjhjlz as lz "+ |
|
|
"left join bs_sgc_df_xsjhjl hj on hj.id=lz.RECORD_ID "+ |
|
|
"left join bs_sgc_df_xsjhjl hj on hj.id=lz.RECORD_ID "+ |
|
|
"<if test='dto.adcdQx != null and dto.adcdQx != \"\"'> "+ |
|
|
|
|
|
"left join att_dike_base base on base.dike_code=hj.dike_code and base.adcd like concat(#{dto.adcdQx}, '%') "+ |
|
|
|
|
|
"</if>"+ |
|
|
|
|
|
"<if test='dto.handleStatus != null and dto.handleStatus != \"\"'> " + |
|
|
"<if test='dto.handleStatus != null and dto.handleStatus != \"\"'> " + |
|
|
"AND hj.handle_status=#{dto.handleStatus} "+ |
|
|
"AND hj.handle_status=#{dto.handleStatus} "+ |
|
|
"</if> " + |
|
|
"</if> " + |
|
|
|
|
|
"left join att_dike_base base on base.dike_code=hj.dike_code "+ |
|
|
|
|
|
"<if test='dto.adcdQx != null and dto.adcdQx != \"\"'> "+ |
|
|
|
|
|
" and base.adcd like concat(#{dto.adcdQx}, '%') "+ |
|
|
|
|
|
"</if>"+ |
|
|
"where 1=1 "+ |
|
|
"where 1=1 "+ |
|
|
"<if test='dto.patrolStart != null and dto.patrolEnd != \"\"'> "+ |
|
|
"<if test='dto.patrolStart != null and dto.patrolEnd != \"\"'> "+ |
|
|
"AND (DATE_FORMAT(lz.create_time, '%Y-%m-%d %H:%i:%s') >= DATE_FORMAT(#{dto.patrolStart} , '%Y-%m-%d %H:%i:%s') "+ |
|
|
"AND (DATE_FORMAT(lz.create_time, '%Y-%m-%d %H:%i:%s') >= DATE_FORMAT(#{dto.patrolStart} , '%Y-%m-%d %H:%i:%s') "+ |
|
@ -86,7 +88,7 @@ public interface DfRecordMapper extends BaseMapper<DfRecord> { |
|
|
"<if test='dto.problem != null and dto.problem != \"\"'> "+ |
|
|
"<if test='dto.problem != null and dto.problem != \"\"'> "+ |
|
|
"AND lz.status=#{dto.problem} "+ |
|
|
"AND lz.status=#{dto.problem} "+ |
|
|
"</if> " + |
|
|
"</if> " + |
|
|
"group by base.adcd ,lz.handle_status "+ |
|
|
"group by base.adcd ,hj.handle_status "+ |
|
|
"</script>") |
|
|
"</script>") |
|
|
List<DfYhHiddenDangerModel> clfNumberData(@Param("dto") DfYhHiddenDangerQueDto dto); |
|
|
List<DfYhHiddenDangerModel> clfNumberData(@Param("dto") DfYhHiddenDangerQueDto dto); |
|
|
|
|
|
|
|
|