|
@ -40,10 +40,10 @@ public interface DfRecordMapper extends BaseMapper<DfRecord> { |
|
|
"AND (DATE_FORMAT(create_time, '%Y-%m-%d %H:%i:%s') >= DATE_FORMAT(#{dto.patrolStart} , '%Y-%m-%d %H:%i:%s') "+ |
|
|
"AND (DATE_FORMAT(create_time, '%Y-%m-%d %H:%i:%s') >= DATE_FORMAT(#{dto.patrolStart} , '%Y-%m-%d %H:%i:%s') "+ |
|
|
"AND DATE_FORMAT(create_time, '%Y-%m-%d %H:%i:%s') <= DATE_FORMAT(#{dto.patrolEnd} , '%Y-%m-%d %H:%i:%s')) "+ |
|
|
"AND DATE_FORMAT(create_time, '%Y-%m-%d %H:%i:%s') <= DATE_FORMAT(#{dto.patrolEnd} , '%Y-%m-%d %H:%i:%s')) "+ |
|
|
"</if> " + |
|
|
"</if> " + |
|
|
"<if test='dto.problem != null \"\"'> " + |
|
|
"<if test='dto.problem != null and dto.problem != \"\"'> " + |
|
|
"AND problem=#{dto.problem} "+ |
|
|
"AND problem=#{dto.problem} "+ |
|
|
"</if> " + |
|
|
"</if> " + |
|
|
"<if test='dto.handleStatus != null \"\"'> " + |
|
|
"<if test='dto.handleStatus != null and dto.handleStatus != \"\"'> " + |
|
|
"AND handle_status=#{dto.handleStatus} "+ |
|
|
"AND handle_status=#{dto.handleStatus} "+ |
|
|
"</if> " + |
|
|
"</if> " + |
|
|
"</script>") |
|
|
"</script>") |
|
@ -61,7 +61,7 @@ public interface DfRecordMapper extends BaseMapper<DfRecord> { |
|
|
"AND (DATE_FORMAT(create_time, '%Y-%m-%d %H:%i:%s') >= DATE_FORMAT(#{dto.patrolStart} , '%Y-%m-%d %H:%i:%s') "+ |
|
|
"AND (DATE_FORMAT(create_time, '%Y-%m-%d %H:%i:%s') >= DATE_FORMAT(#{dto.patrolStart} , '%Y-%m-%d %H:%i:%s') "+ |
|
|
"AND DATE_FORMAT(create_time, '%Y-%m-%d %H:%i:%s') <= DATE_FORMAT(#{dto.patrolEnd} , '%Y-%m-%d %H:%i:%s')) "+ |
|
|
"AND DATE_FORMAT(create_time, '%Y-%m-%d %H:%i:%s') <= DATE_FORMAT(#{dto.patrolEnd} , '%Y-%m-%d %H:%i:%s')) "+ |
|
|
"</if> " + |
|
|
"</if> " + |
|
|
"<if test='dto.problem != null \"\"'> " + |
|
|
"<if test='dto.problem != null and dto.problem != \"\"'> " + |
|
|
"AND lz.problem=#{dto.problem} "+ |
|
|
"AND lz.problem=#{dto.problem} "+ |
|
|
"</if> " + |
|
|
"</if> " + |
|
|
"group by adb.adcd ,lz.problem "+ |
|
|
"group by adb.adcd ,lz.problem "+ |
|
@ -74,7 +74,7 @@ public interface DfRecordMapper extends BaseMapper<DfRecord> { |
|
|
"<if test='dto.adcdQx != null and dto.adcdQx != \"\"'> "+ |
|
|
"<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}, '%') "+ |
|
|
"left join att_dike_base base on base.dike_code=hj.dike_code and base.adcd like concat(#{dto.adcdQx}, '%') "+ |
|
|
"</if>"+ |
|
|
"</if>"+ |
|
|
"<if test='dto.handleStatus != null \"\"'> " + |
|
|
"<if test='dto.handleStatus != null and dto.handleStatus != \"\"'> " + |
|
|
"AND hj.handle_status=#{dto.handleStatus} "+ |
|
|
"AND hj.handle_status=#{dto.handleStatus} "+ |
|
|
"</if> " + |
|
|
"</if> " + |
|
|
"where 1=1 "+ |
|
|
"where 1=1 "+ |
|
@ -82,7 +82,7 @@ public interface DfRecordMapper extends BaseMapper<DfRecord> { |
|
|
"AND (DATE_FORMAT(create_time, '%Y-%m-%d %H:%i:%s') >= DATE_FORMAT(#{dto.patrolStart} , '%Y-%m-%d %H:%i:%s') "+ |
|
|
"AND (DATE_FORMAT(create_time, '%Y-%m-%d %H:%i:%s') >= DATE_FORMAT(#{dto.patrolStart} , '%Y-%m-%d %H:%i:%s') "+ |
|
|
"AND DATE_FORMAT(create_time, '%Y-%m-%d %H:%i:%s') <= DATE_FORMAT(#{dto.patrolEnd} , '%Y-%m-%d %H:%i:%s')) "+ |
|
|
"AND DATE_FORMAT(create_time, '%Y-%m-%d %H:%i:%s') <= DATE_FORMAT(#{dto.patrolEnd} , '%Y-%m-%d %H:%i:%s')) "+ |
|
|
"</if> " + |
|
|
"</if> " + |
|
|
"<if test='dto.problem != null \"\"'> " + |
|
|
"<if test='dto.problem != null and dto.problem != \"\"'> "+ |
|
|
"AND lz.problem=#{dto.problem} "+ |
|
|
"AND lz.problem=#{dto.problem} "+ |
|
|
"</if> " + |
|
|
"</if> " + |
|
|
"group by adb.adcd ,lz.handle_status "+ |
|
|
"group by adb.adcd ,lz.handle_status "+ |
|
|