Browse Source

bug修复

lihui007 4 years ago
parent
commit
9a203d7965
1 changed files with 8 additions and 8 deletions
  1. 8 8
      sms_water/src/main/resources/mapper/MonitorDataReportMapper.xml

+ 8 - 8
sms_water/src/main/resources/mapper/MonitorDataReportMapper.xml

@@ -393,7 +393,7 @@
     <select id="MonitorDataQualityReportByDay" resultMap="MonitorDataChartReportMap">
         SELECT
         r.`HOUR` AS "dateLabel",
-        if(p.parm_type=7,'PH',if(p.parm_type=11,'余氯','浊度')) as  "attributeName",
+        if(p.parm_type=8,'PH',if(p.parm_type=11,'余氯','浊度')) as  "attributeName",
         s.SCENE_NAME AS "deviceName",
         p.parm_type AS "attributeType",
         da.unit AS "unit",
@@ -405,7 +405,7 @@
         left join sms_scene s on s.id=p.parent_scene_id
         left join sms_device_attribute  da ON da.id = p.ATTRIBUTE_ID
         LEFT JOIN sms_device d ON d.id = r.DEVICE_ID
-        WHERE p.`STATUS`= 1 and p.parm_type in (7,11,9) and d.ENABLE_STATE = 1  and d.`STATUS`= 1
+        WHERE p.`STATUS`= 1 and p.parm_type in (8,11,10) and d.ENABLE_STATE = 1  and d.`STATUS`= 1
         AND r.YEAR = #{year}  and r.month=#{month}  and r.day=#{day}
         <if test="sceneIds != null and sceneIds.size()>0">
             and p.PARENT_SCENE_ID in
@@ -449,7 +449,7 @@
     <select id="MonitorDataQualityReportByMonth" resultMap="MonitorDataChartReportMap">
         SELECT
         r.`day` AS "dateLabel",
-        if(p.parm_type=7,'PH',if(p.parm_type=11,'余氯','浊度')) as  "attributeName",
+        if(p.parm_type=8,'PH',if(p.parm_type=11,'余氯','浊度')) as  "attributeName",
         s.SCENE_NAME AS "deviceName",
         p.parm_type AS "attributeType",
         da.unit AS "unit",
@@ -461,7 +461,7 @@
         left join sms_scene s on s.id=p.parent_scene_id
         left join sms_device_attribute  da ON da.id = p.ATTRIBUTE_ID
         LEFT JOIN sms_device d ON d.id = r.DEVICE_ID
-        WHERE p.`STATUS`= 1 and p.parm_type in (7,11,9) and d.ENABLE_STATE = 1  and d.`STATUS`= 1
+        WHERE p.`STATUS`= 1 and p.parm_type in (8,11,10) and d.ENABLE_STATE = 1  and d.`STATUS`= 1
         AND r.YEAR = #{year}  and r.month=#{month}
         <if test="sceneIds != null and sceneIds.size()>0">
             and p.PARENT_SCENE_ID in
@@ -505,7 +505,7 @@
     <select id="MonitorDataQualityReportByYear" resultMap="MonitorDataChartReportMap">
         SELECT
         r.`month` AS "dateLabel",
-        if(p.parm_type=7,'PH',if(p.parm_type=11,'余氯','浊度')) as  "attributeName",
+        if(p.parm_type=8,'PH',if(p.parm_type=11,'余氯','浊度')) as  "attributeName",
         s.SCENE_NAME AS "deviceName",
         p.parm_type AS "attributeType",
         da.unit AS "unit",
@@ -517,7 +517,7 @@
         left join sms_scene s on s.id=p.parent_scene_id
         left join sms_device_attribute  da ON da.id = p.ATTRIBUTE_ID
         LEFT JOIN sms_device d ON d.id = r.DEVICE_ID
-        WHERE p.`STATUS`= 1 and p.parm_type in (7,11,9)
+        WHERE p.`STATUS`= 1 and p.parm_type in (8,11,10)
         AND r.YEAR = #{year} and d.ENABLE_STATE = 1  and d.`STATUS`= 1
         <if test="sceneIds != null and sceneIds.size()>0">
             and p.PARENT_SCENE_ID in
@@ -1665,7 +1665,7 @@
     <select id="MonitorDataQualityReport" resultMap="MonitorDataChartReportMap">
         SELECT
         r.`day` AS "dateLabel",
-        if(p.parm_type=7,'PH',if(p.parm_type=11,'余氯','浊度')) as  "attributeName",
+        if(p.parm_type=8,'PH',if(p.parm_type=11,'余氯','浊度')) as  "attributeName",
         s.SCENE_NAME AS "deviceName",
         p.parm_type AS "attributeType",
         da.unit AS "unit",
@@ -1677,7 +1677,7 @@
         left join sms_scene s on s.id=p.parent_scene_id
         left join sms_device_attribute  da ON da.id = p.ATTRIBUTE_ID
         LEFT JOIN sms_device d ON d.id = r.DEVICE_ID
-        WHERE p.`STATUS`= 1 and p.parm_type in (7,11,9) and d.ENABLE_STATE = 1  and d.`STATUS`= 1
+        WHERE p.`STATUS`= 1 and p.parm_type in (8,11,10) and d.ENABLE_STATE = 1  and d.`STATUS`= 1
         <if test="startTime != null and endTime != null ">
             and r.COLLECT_DATE BETWEEN #{startTime} AND #{endTime}
         </if>