anderx 4 anni fa
parent
commit
bc22192ed6

+ 6 - 0
src/main/java/com/goafanti/common/mapper/TOrderTaskMapper.xml

@@ -2083,6 +2083,9 @@ left join department de on x.department_id=de.id left join business_category bc
     left join business_category e on d.cid =e.id
     left join department f on b.order_dep =f.id
     where check_status =1
+    <if test="aid !=null">
+    and b.salesman_id = #{aid}
+    </if>
     <if test="name !=null">
     and c.buyer_name like concat('%',#{name},'%')
     </if>
@@ -2111,6 +2114,9 @@ left join department de on x.department_id=de.id left join business_category bc
     left join business_category e on d.cid =e.id
     left join department f on b.order_dep =f.id
     where check_status =1
+    <if test="aid !=null">
+    and b.salesman_id = #{aid}
+    </if>
     <if test="name !=null">
     and c.buyer_name like concat('%',#{name},'%')
     </if>

+ 1 - 0
src/main/java/com/goafanti/order/service/impl/OrderProjectServiceImpl.java

@@ -1027,6 +1027,7 @@ public class OrderProjectServiceImpl extends BaseMybatisDao<TOrderTaskMapper> im
 		if (in.getContractNo()!=null) map.put("contartNo", in.getContractNo());
 		if (in.getPname()!=null) map.put("pname", in.getPname());
 		if (in.getDepId()!=null) map.put("depId", in.getDepId());
+		map.put("aid", TokenManager.getAdminId());
 		return (Pagination<OutProjectCheck>)findPage("selectProjectCheck", "countProjectCheck", map, in.getPageNo(), in.getPageSize());
 	}