anderx 5 years ago
parent
commit
5f98a31e25
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/main/java/com/goafanti/common/mapper/TOrderTaskMapper.xml

+ 2 - 1
src/main/java/com/goafanti/common/mapper/TOrderTaskMapper.xml

@@ -1512,7 +1512,8 @@ ifnull(ttm.party_amount,0) partyAmount,a.commodity_price commodityPrice,a.outsou
   
    <select id="selectOrderTaskListCount" resultType="java.lang.Integer">
   	select  count(*) from t_order_task a  left join t_order_new e on a.order_no=e.order_no
-    left join admin g on e.salesman_id=g.id left join department h on g.department_id=h.id where e.delete_sign in (0,2,3)  and e.order_status in (2,4) 
+  	left join user f on e.buyer_id=f.id left join admin g on e.salesman_id=g.id 
+  	left join department h on g.department_id=h.id where e.delete_sign in (0,2,3)  and e.order_status in (2,4) 
     and a.outsource= #{outsource,jdbcType=INTEGER}
    <if test="role == 0 ">
     and a.task_receiver= #{aid,jdbcType=VARCHAR}