Browse Source

项目派单修改

anderx 3 years ago
parent
commit
6fc8901391

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

@@ -822,7 +822,7 @@
     left join department g on e.order_dep=g.id left join user h on e.buyer_id=h.id left join business_project i on a.commodity_id=i.id
     left join business_category c on i.cid=c.id left join admin d on a.task_receiver=d.id
     left join t_task_member ttm on a.id=ttm.tid left join t_task_mid tm on a.id=tm.tid
-    where a.super_id is null   and  a.order_no= #{orderNo,jdbcType=VARCHAR}
+    where a.super_id is null   and a.process_status in (0,3) and  a.order_no= #{orderNo,jdbcType=VARCHAR}
     <if test="splitStatus !=null">
       <if test="splitStatus  &lt; 3">
         and a.split_status= #{splitStatus}

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

@@ -202,7 +202,7 @@ public class OrderProjectServiceImpl extends BaseMybatisDao<TOrderTaskMapper> im
 	}
 
 	private void projectDistributionPushUserMid(TOrderNew tn) {
-		if (tn.getProcessStatus()==4){
+		if (tn.getProcessStatus()==ProcessStatus.YPZXSGLY.getCode()){
 			UserMid um=new UserMid();
 			String taskNames=userMidMapper.getUserTaskNames(tn.getBuyerId());
 			UserMid use=userMidMapper.getUserDtails(tn.getBuyerId());