src/main/resources/mapper/AlarmInspectionMapper.xml
@@ -68,5 +68,11 @@ and ai.station_id = bgp.station_id and bg.baoji_group_id = bgp.baoji_group_id and ai.station_id = #{stationId} <if test="inspectionType == 1"> and ai.alm_level = 1 </if> <if test="inspectionType == 2"> and ai.alm_level != 1 </if> </select> </mapper>