|
|
@ -30,6 +30,12 @@ public interface WarningMapper extends BaseMapper<DeviceCheckingRecordView> { |
|
|
|
"<if test='sp.adcd != null and sp.adcd != \"\"'>" + |
|
|
|
"AND adcd like concat(#{sp.adcd},'%') " + |
|
|
|
"</if>" + |
|
|
|
"<if test='sp.objTypes != null and sp.objTypes.size() > 0'>" + |
|
|
|
"AND TYPE in " + |
|
|
|
"<foreach collection='sp.objTypes' item='item' open='(' separator=',' close=')'>" + |
|
|
|
"#{item}" + |
|
|
|
"</foreach>" + |
|
|
|
"</if>" + |
|
|
|
"GROUP BY CODE" + |
|
|
|
"</script>") |
|
|
|
IPage<WarningStatisticDto.Statistic> statisticByCode(Page<WarningStatisticDto.Statistic> page, @Param("sp") WarningStatisticQueDto sp); |
|
|
@ -53,6 +59,12 @@ public interface WarningMapper extends BaseMapper<DeviceCheckingRecordView> { |
|
|
|
"<if test='sp.code != null and sp.code != \"\"'>" + |
|
|
|
"AND CODE = #{sp.code} " + |
|
|
|
"</if>" + |
|
|
|
"<if test='sp.objTypes != null and sp.objTypes.size() > 0'>" + |
|
|
|
"AND TYPE in " + |
|
|
|
"<foreach collection='sp.objTypes' item='item' open='(' separator=',' close=')'>" + |
|
|
|
"#{item}" + |
|
|
|
"</foreach>" + |
|
|
|
"</if>" + |
|
|
|
"GROUP BY WARNING_TYPE" + |
|
|
|
"</script>") |
|
|
|
IPage<WarningStatisticDto.Statistic> statisticByWarningType(Page<WarningStatisticDto.Statistic> page, @Param("sp") WarningStatisticQueDto sp); |
|
|
|