|
|
@ -35,7 +35,7 @@ public interface DfCheckingProblemV2Mapper extends BaseMapper<DfCheckingProblemV |
|
|
|
|
|
|
|
|
|
|
|
@Select("<script> " + |
|
|
|
"select DATE_FORMAT(create_time, '%Y-%m-%d') as myData,count(*) as mySum from bs_sgc_df_xcqx where 1=1 " + |
|
|
|
"select DATE_FORMAT(create_time, '%Y-%m-%d') as myDate,count(*) as mySum from bs_sgc_df_xcqx where 1=1 " + |
|
|
|
"<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 != \"\"'>" + |
|
|
@ -50,7 +50,7 @@ public interface DfCheckingProblemV2Mapper extends BaseMapper<DfCheckingProblemV |
|
|
|
|
|
|
|
|
|
|
|
@Select("<script> " + |
|
|
|
"select problem_level as level,count(*) as mySum from bs_sgc_df_xcqx where 1=1 " + |
|
|
|
"select DATE_FORMAT(create_time, '%Y-%m-%d') as myDate,count(*) as mySum from bs_sgc_df_xcqx where 1=1 " + |
|
|
|
"<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 != \"\"'>" + |
|
|
@ -59,13 +59,13 @@ public interface DfCheckingProblemV2Mapper extends BaseMapper<DfCheckingProblemV |
|
|
|
"<if test='category != null'>" + |
|
|
|
"and category = #{category.value} " + |
|
|
|
"</if>" + |
|
|
|
"group by problem_level " + |
|
|
|
"group by DATE_FORMAT(create_time, '%Y-%m-%d') " + |
|
|
|
"</script>") |
|
|
|
List<CountDateDto> countLevel(@Param("data") ObjectStatisticQueDto sp, @Param("category") PatrolMaintenanceCategory category); |
|
|
|
|
|
|
|
|
|
|
|
@Select("<script> " + |
|
|
|
"select DATE_FORMAT(create_time, '%Y-%m-%d') as myData,count(*) as mySum from bs_sgc_df_xcqx where 1=1 " + |
|
|
|
"select DATE_FORMAT(create_time, '%Y-%m-%d') as myDate,count(*) as mySum from bs_sgc_df_xcqx 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.code != null and data.code != \"\"'>" + |
|
|
|