| 
															
																@@ -393,7 +393,7 @@ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																     <select id="MonitorDataQualityReportByDay" resultMap="MonitorDataChartReportMap"> 
															 | 
															
															 | 
															
																     <select id="MonitorDataQualityReportByDay" resultMap="MonitorDataChartReportMap"> 
															 | 
														
													
												
													
														
															| 
															 | 
															
																         SELECT 
															 | 
															
															 | 
															
																         SELECT 
															 | 
														
													
												
													
														
															| 
															 | 
															
																         r.`HOUR` AS "dateLabel", 
															 | 
															
															 | 
															
																         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", 
															 | 
															
															 | 
															
																         s.SCENE_NAME AS "deviceName", 
															 | 
														
													
												
													
														
															| 
															 | 
															
																         p.parm_type AS "attributeType", 
															 | 
															
															 | 
															
																         p.parm_type AS "attributeType", 
															 | 
														
													
												
													
														
															| 
															 | 
															
																         da.unit AS "unit", 
															 | 
															
															 | 
															
																         da.unit AS "unit", 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@@ -405,7 +405,7 @@ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																         left join sms_scene s on s.id=p.parent_scene_id 
															 | 
															
															 | 
															
																         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_attribute  da ON da.id = p.ATTRIBUTE_ID 
															 | 
														
													
												
													
														
															| 
															 | 
															
																         LEFT JOIN sms_device d ON d.id = r.DEVICE_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} 
															 | 
															
															 | 
															
																         AND r.YEAR = #{year}  and r.month=#{month}  and r.day=#{day} 
															 | 
														
													
												
													
														
															| 
															 | 
															
																         <if test="sceneIds != null and sceneIds.size()>0"> 
															 | 
															
															 | 
															
																         <if test="sceneIds != null and sceneIds.size()>0"> 
															 | 
														
													
												
													
														
															| 
															 | 
															
																             and p.PARENT_SCENE_ID in 
															 | 
															
															 | 
															
																             and p.PARENT_SCENE_ID in 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@@ -449,7 +449,7 @@ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																     <select id="MonitorDataQualityReportByMonth" resultMap="MonitorDataChartReportMap"> 
															 | 
															
															 | 
															
																     <select id="MonitorDataQualityReportByMonth" resultMap="MonitorDataChartReportMap"> 
															 | 
														
													
												
													
														
															| 
															 | 
															
																         SELECT 
															 | 
															
															 | 
															
																         SELECT 
															 | 
														
													
												
													
														
															| 
															 | 
															
																         r.`day` AS "dateLabel", 
															 | 
															
															 | 
															
																         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", 
															 | 
															
															 | 
															
																         s.SCENE_NAME AS "deviceName", 
															 | 
														
													
												
													
														
															| 
															 | 
															
																         p.parm_type AS "attributeType", 
															 | 
															
															 | 
															
																         p.parm_type AS "attributeType", 
															 | 
														
													
												
													
														
															| 
															 | 
															
																         da.unit AS "unit", 
															 | 
															
															 | 
															
																         da.unit AS "unit", 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@@ -461,7 +461,7 @@ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																         left join sms_scene s on s.id=p.parent_scene_id 
															 | 
															
															 | 
															
																         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_attribute  da ON da.id = p.ATTRIBUTE_ID 
															 | 
														
													
												
													
														
															| 
															 | 
															
																         LEFT JOIN sms_device d ON d.id = r.DEVICE_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.YEAR = #{year}  and r.month=#{month} 
															 | 
														
													
												
													
														
															| 
															 | 
															
																         <if test="sceneIds != null and sceneIds.size()>0"> 
															 | 
															
															 | 
															
																         <if test="sceneIds != null and sceneIds.size()>0"> 
															 | 
														
													
												
													
														
															| 
															 | 
															
																             and p.PARENT_SCENE_ID in 
															 | 
															
															 | 
															
																             and p.PARENT_SCENE_ID in 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@@ -505,7 +505,7 @@ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																     <select id="MonitorDataQualityReportByYear" resultMap="MonitorDataChartReportMap"> 
															 | 
															
															 | 
															
																     <select id="MonitorDataQualityReportByYear" resultMap="MonitorDataChartReportMap"> 
															 | 
														
													
												
													
														
															| 
															 | 
															
																         SELECT 
															 | 
															
															 | 
															
																         SELECT 
															 | 
														
													
												
													
														
															| 
															 | 
															
																         r.`month` AS "dateLabel", 
															 | 
															
															 | 
															
																         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", 
															 | 
															
															 | 
															
																         s.SCENE_NAME AS "deviceName", 
															 | 
														
													
												
													
														
															| 
															 | 
															
																         p.parm_type AS "attributeType", 
															 | 
															
															 | 
															
																         p.parm_type AS "attributeType", 
															 | 
														
													
												
													
														
															| 
															 | 
															
																         da.unit AS "unit", 
															 | 
															
															 | 
															
																         da.unit AS "unit", 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@@ -517,7 +517,7 @@ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																         left join sms_scene s on s.id=p.parent_scene_id 
															 | 
															
															 | 
															
																         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_attribute  da ON da.id = p.ATTRIBUTE_ID 
															 | 
														
													
												
													
														
															| 
															 | 
															
																         LEFT JOIN sms_device d ON d.id = r.DEVICE_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 
															 | 
															
															 | 
															
																         AND r.YEAR = #{year} and d.ENABLE_STATE = 1  and d.`STATUS`= 1 
															 | 
														
													
												
													
														
															| 
															 | 
															
																         <if test="sceneIds != null and sceneIds.size()>0"> 
															 | 
															
															 | 
															
																         <if test="sceneIds != null and sceneIds.size()>0"> 
															 | 
														
													
												
													
														
															| 
															 | 
															
																             and p.PARENT_SCENE_ID in 
															 | 
															
															 | 
															
																             and p.PARENT_SCENE_ID in 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@@ -1665,7 +1665,7 @@ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																     <select id="MonitorDataQualityReport" resultMap="MonitorDataChartReportMap"> 
															 | 
															
															 | 
															
																     <select id="MonitorDataQualityReport" resultMap="MonitorDataChartReportMap"> 
															 | 
														
													
												
													
														
															| 
															 | 
															
																         SELECT 
															 | 
															
															 | 
															
																         SELECT 
															 | 
														
													
												
													
														
															| 
															 | 
															
																         r.`day` AS "dateLabel", 
															 | 
															
															 | 
															
																         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", 
															 | 
															
															 | 
															
																         s.SCENE_NAME AS "deviceName", 
															 | 
														
													
												
													
														
															| 
															 | 
															
																         p.parm_type AS "attributeType", 
															 | 
															
															 | 
															
																         p.parm_type AS "attributeType", 
															 | 
														
													
												
													
														
															| 
															 | 
															
																         da.unit AS "unit", 
															 | 
															
															 | 
															
																         da.unit AS "unit", 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@@ -1677,7 +1677,7 @@ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																         left join sms_scene s on s.id=p.parent_scene_id 
															 | 
															
															 | 
															
																         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_attribute  da ON da.id = p.ATTRIBUTE_ID 
															 | 
														
													
												
													
														
															| 
															 | 
															
																         LEFT JOIN sms_device d ON d.id = r.DEVICE_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 "> 
															 | 
															
															 | 
															
																         <if test="startTime != null and endTime != null "> 
															 | 
														
													
												
													
														
															| 
															 | 
															
																             and r.COLLECT_DATE BETWEEN #{startTime} AND #{endTime} 
															 | 
															
															 | 
															
																             and r.COLLECT_DATE BETWEEN #{startTime} AND #{endTime} 
															 | 
														
													
												
													
														
															| 
															 | 
															
																         </if> 
															 | 
															
															 | 
															
																         </if> 
															 |