anderx 1 год назад
Родитель
Сommit
7f5b6b6116
1 измененных файлов с 4 добавлено и 1 удалено
  1. 4 1
      src/main/java/com/goafanti/common/mapper/UserMidMapper.xml

+ 4 - 1
src/main/java/com/goafanti/common/mapper/UserMidMapper.xml

@@ -736,6 +736,9 @@
     left join t_order_task c on a.order_no =c.order_no and c.main =1
     left join user_mid b2 on a.buyer_id=b2.uid
     left join t_order_task e on a.order_no =e.order_no and e.split_status in (0,2)
+    <if test="liabilitiesDepId !=null">
+      left join admin e2 on e.task_receiver=e2.id
+    </if>
     left join t_task_mid e3 on e.id=e3.tid
     left join t_task_member ttm on e.id =ttm.tid
     <if test="dunType !=null">
@@ -783,7 +786,7 @@
       and a.total_amount &gt;= 40
     </if>
     <if test="depId !=null">
-      and a3.id = #{depId}
+      and a.order_dep = #{depId}
     </if>
     <if test="liabilitiesDepId !=null">
       and e2.department_id = #{liabilitiesDepId}