소스 검색

录像诊断查询条件缺陷

jiawuxian 1 년 전
부모
커밋
3bd360fa23
1개의 변경된 파일5개의 추가작업 그리고 2개의 파일을 삭제
  1. 5 2
      soc-modules/soc-modules-iot/src/main/resources/mapper/IotDvrChannelMapper.xml

+ 5 - 2
soc-modules/soc-modules-iot/src/main/resources/mapper/IotDvrChannelMapper.xml

@@ -84,8 +84,11 @@
         <if test="pageDto.integrityState!=null">
             and vic.status=#{pageDto.integrityState}
         </if>
-        <if test="pageDto.daysState!=null">
-            and vdc.status=#{pageDto.daysState}
+        <if test="pageDto.daysState==0">
+            and vdc.plan_days=vdc.real_days
+        </if>
+        <if test="pageDto.daysState==1">
+            and vdc.plan_days!=vdc.real_days
         </if>
         <if test="pageDto.diagnosisState!=null">
             and vdr.is_alarm=#{pageDto.diagnosisState}