Просмотр исходного кода

法务模块列表订单BUG修复

anderx лет назад: 4
Родитель
Сommit
13bdcf219e
1 измененных файлов с 6 добавлено и 4 удалено
  1. 6 4
      src/main/java/com/goafanti/common/mapper/TOrderMidMapper.xml

+ 6 - 4
src/main/java/com/goafanti/common/mapper/TOrderMidMapper.xml

@@ -416,12 +416,13 @@
     <if test="shiro == 2">
       left join admin c on a.salesman_id =c.id
     </if>
+    where 1=1 and a.delete_sign in (0,2)
     <if test="type==1 or type==2 or type==3">
-      where b.legal_affairs =1
+      and b.legal_affairs =1
       and b.legal_affairs_type = (#{type}-1)
     </if>
     <if test="type==0">
-      where b.order_receivables >0
+      and b.order_receivables >0
     </if>
     <if test="status != null">
       and b.legal_affairs_status = #{status}
@@ -474,12 +475,13 @@
     <if test="shiro == 2">
       left join admin c on a.salesman_id =c.id
     </if>
+    where 1=1 and a.delete_sign in (0,2)
     <if test="type==1 or type==2 or type==3">
-      where b.legal_affairs =1
+      and b.legal_affairs =1
       and b.legal_affairs_type = (#{type}-1)
     </if>
     <if test="type==0">
-      where b.order_receivables >0
+      and b.order_receivables >0
     </if>
     <if test="status != null">
       and b.legal_affairs_status = #{status}