|
@ -41,7 +41,7 @@ public interface SzCheckingProblemV2Mapper extends BaseMapper<SzCheckingProblemV |
|
|
"<if test='data.startTime != null'> and create_time >= #{data.startTime} </if> " + |
|
|
"<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.endTime != null'> and create_time <= #{data.endTime} </if> " + |
|
|
"<if test='data.code != null and data.code != \"\"'>" + |
|
|
"<if test='data.code != null and data.code != \"\"'>" + |
|
|
"and dike_code = #{data.code} " + |
|
|
"and waga_code = #{data.code} " + |
|
|
"</if>" + |
|
|
"</if>" + |
|
|
"<if test='category != null'>" + |
|
|
"<if test='category != null'>" + |
|
|
"and category = #{category.value} " + |
|
|
"and category = #{category.value} " + |
|
@ -56,7 +56,7 @@ public interface SzCheckingProblemV2Mapper extends BaseMapper<SzCheckingProblemV |
|
|
"<if test='data.startTime != null'> and create_time >= #{data.startTime} </if> " + |
|
|
"<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.endTime != null'> and create_time <= #{data.endTime} </if> " + |
|
|
"<if test='data.code != null and data.code != \"\"'>" + |
|
|
"<if test='data.code != null and data.code != \"\"'>" + |
|
|
"and dike_code = #{data.code} " + |
|
|
"and waga_code = #{data.code} " + |
|
|
"</if>" + |
|
|
"</if>" + |
|
|
"<if test='category != null'>" + |
|
|
"<if test='category != null'>" + |
|
|
"and category = #{category.value} " + |
|
|
"and category = #{category.value} " + |
|
@ -71,7 +71,7 @@ public interface SzCheckingProblemV2Mapper extends BaseMapper<SzCheckingProblemV |
|
|
"<if test='data.startTime != null'> and xm.create_time >= #{data.startTime} </if> " + |
|
|
"<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.endTime != null'> and xm.create_time <= #{data.endTime} </if> " + |
|
|
"<if test='data.code != null and data.code != \"\"'>" + |
|
|
"<if test='data.code != null and data.code != \"\"'>" + |
|
|
"and dike_code = #{data.code} " + |
|
|
"and waga_code = #{data.code} " + |
|
|
"</if>" + |
|
|
"</if>" + |
|
|
"group by DATE_FORMAT(create_time, '%Y-%m-%d') " + |
|
|
"group by DATE_FORMAT(create_time, '%Y-%m-%d') " + |
|
|
"</script>") |
|
|
"</script>") |
|
|