소스 검색

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

jichaobo 3 년 전
부모
커밋
462be53f0c
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      fiveep-persistence/src/main/resources/mapper/mysql/HtAnalogDataMapper.xml

+ 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>