|
|
@@ -2,6 +2,7 @@ package com.goafanti.order.service.impl;
|
|
|
|
|
|
import com.alibaba.fastjson.JSON;
|
|
|
import com.goafanti.admin.service.DepartmentService;
|
|
|
+import com.goafanti.business.bo.InputRestrictProject;
|
|
|
import com.goafanti.common.bo.Error;
|
|
|
import com.goafanti.common.bo.*;
|
|
|
import com.goafanti.common.constant.AFTConstants;
|
|
|
@@ -132,6 +133,10 @@ public class OrderProjectServiceImpl extends BaseMybatisDao<TOrderTaskMapper> im
|
|
|
private FinanceCountMapper financeCountMapper;
|
|
|
@Autowired
|
|
|
private TOrderExamineMapper tOrderExamineMapper;
|
|
|
+ @Autowired
|
|
|
+ private RestrictProjectMapper restrictProjectMapper;
|
|
|
+ @Autowired
|
|
|
+ private UserTransferLogMapper userTransferLogMapper;
|
|
|
|
|
|
|
|
|
|
|
|
@@ -166,6 +171,22 @@ public class OrderProjectServiceImpl extends BaseMybatisDao<TOrderTaskMapper> im
|
|
|
pushUser(t, tn, date);
|
|
|
//处理客户已派项目
|
|
|
projectDistributionPushUserMid(tn);
|
|
|
+ //处理限定项目状态
|
|
|
+ RestrictProject use = restrictProjectMapper.selectByPid(new InputRestrictProject(tn.getBuyerId(), tn.getSalesmanId(), t.getCommodityId()));
|
|
|
+ if (use!=null){
|
|
|
+ RestrictProject newRP=new RestrictProject();
|
|
|
+ newRP.setId(use.getId());
|
|
|
+ newRP.setLockTime(date);
|
|
|
+ newRP.setType(2);
|
|
|
+ restrictProjectMapper.updateByPrimaryKeySelective(newRP);
|
|
|
+ UserTransferLog log=new UserTransferLog();
|
|
|
+ log.setAid(use.getAid());
|
|
|
+ log.setUid(use.getUid());
|
|
|
+ log.setPid(use.getPid());
|
|
|
+ log.setType(20);
|
|
|
+ log.setRemarks("签单触发锁定限时项目");
|
|
|
+ userTransferLogMapper.insertSelective(log);
|
|
|
+ }
|
|
|
}else if(type==1) {
|
|
|
t.setManagerId(taskReceiverId);
|
|
|
t.setConsultantId(null);
|