소스 검색

排除已结单但是没有维修方式的数据

ouyj 2 달 전
부모
커밋
c22fae08a6
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      ygtx-gxt/src/main/resources/mapper/gxt/GxtRepairOrderMapper.xml

+ 1 - 1
ygtx-gxt/src/main/resources/mapper/gxt/GxtRepairOrderMapper.xml

@@ -1068,7 +1068,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
           AND t.occur_time IS NOT NULL
           AND (
             -- 条件1: repair_method为空
-            t.repair_method IS NULL
+            (t.repair_method IS NULL AND t.work_order_status NOT IN ('completed', 'archived'))
             OR
             -- 条件2: repair_method不为空且满足特定条件
             -- 处理方式为正常维修