anderx 1 год назад
Родитель
Сommit
13e2d9b562
1 измененных файлов с 12 добавлено и 0 удалено
  1. 12 0
      src/main/java/com/goafanti/common/mapper/TOrderNewMapper.xml

+ 12 - 0
src/main/java/com/goafanti/common/mapper/TOrderNewMapper.xml

@@ -1069,6 +1069,18 @@ left join department d on o.order_dep = d.id   left join t_order_mid a on o.orde
 
         </if>
       </if>
+        <if test="manageType==1">
+          and toprc.max_process  in (1,2,3,4,5)
+          <if test="maxProcessStatus =0">
+            and toprc.max_process  in (1,2,3)
+          </if>
+          <if test="maxProcessStatus =1">
+            and toprc.max_process  in (5)
+          </if>
+          <if test="maxProcessStatus =1">
+            and toprc.max_process  in (4)
+          </if>
+        </if>
     </if>
     <if test="specially ==7">
       and a.process_status > 5