Quellcode durchsuchen

+ 告警数据对接

chen.cheng vor 1 Monat
Ursprung
Commit
6248d0d07b
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      ems/ems-core/src/main/resources/mapper/ems/ElecMeterHMapper.xml

+ 1 - 1
ems/ems-core/src/main/resources/mapper/ems/ElecMeterHMapper.xml

@@ -243,7 +243,7 @@
         SUM(use_elec_cost) use_elec_cost
         from adm_elec_meter_h aemh
         where `date` like concat(#{startRecTime}, '%')
-        <if test="areaCode != null and areaCode != ''">and aemh.area_code = #{areaCode}</if>
+        <if test="areaCode != null and areaCode != '' and areaCode !='-1'">and aemh.area_code = #{areaCode}</if>
     </select>
 
     <select id="qryTimeIndexElecMeterByDay" resultMap="ElecMeterHResult">