Ver Fonte

同比环比查询171、173表调整2

jichaobo há 3 anos atrás
pai
commit
462be53f0c

+ 3 - 3
fiveep-persistence/src/main/resources/mapper/mysql/HtAnalogDataMapper.xml

@@ -1499,13 +1499,13 @@
                 and c.data_area = #{dataArea}
             </if>
         </where>
-        <if test="groupTypr != 0">
+        <if test="groupTypr == 0">
             GROUP BY a.dataTime,a.deviceName
         </if>
-        <if test="groupTypr != 1">
+        <if test="groupTypr == 1">
             GROUP BY a.freezingTime,a.deviceName
         </if>
-        <if test="groupTypr != 2">
+        <if test="groupTypr == 2">
             GROUP BY freezingTimes,a.deviceName
         </if>
     </select>