src/main/resources/mybatis/doublePrevention/TrHiddenDangerCheckPointMapper.xml
@@ -131,6 +131,9 @@ sum(case when trouble_type_name = 'B级隐患' then 1 else 0 end) B, sum(case when trouble_type_name = 'C级隐患' then 1 else 0 end) C from tr_hidden_danger_check_point WHERE register_create_time >= #{spiDataReqBO.startTime} and #{spiDataReqBO.endTime} >= register_create_time and whether_danger = 1 WHERE YEAR(register_create_time) = #{spiDataReqBO.year} <if test="spiDataReqBO.month != null and spiDataReqBO.month != ''"> AND MONTH(register_create_time) = #{spiDataReqBO.month} </if> </select> </mapper>