|
|
@@ -72,7 +72,7 @@ public class ProjectDistributionAsyncService {
|
|
|
TOrderNewBo order = tOrderNewMapper.getSaleIdByOno(t.getOrderNo());
|
|
|
orderNewService.pushGeneralSendNoticeAndEmail(aids, NoticeStatus.ORDER_TASK_TO.getCode(),order, TokenManager.getAdminId(),0, taskId);
|
|
|
//处理项目统计表
|
|
|
- TTaskMid dtails = tTaskMidMapper.getDtails(taskId);
|
|
|
+ TTaskMid details = tTaskMidMapper.getDtails(taskId);
|
|
|
if (type ==0){
|
|
|
//设置催款触发
|
|
|
orderNewService.pushOrderDun(tn);
|
|
|
@@ -110,14 +110,14 @@ public class ProjectDistributionAsyncService {
|
|
|
restrictProjectMapper.insertSelective(newRP);
|
|
|
}
|
|
|
}
|
|
|
- dtails.setDispatchCount(t.getCommodityQuantity());
|
|
|
- dtails.setStockCount(t.getCommodityQuantity());
|
|
|
+ details.setDispatchCount(t.getCommodityQuantity());
|
|
|
+ details.setStockCount(t.getCommodityQuantity());
|
|
|
}
|
|
|
//如果不相等就切换
|
|
|
- if (!dtails.getDutyDep().equals(a.getDepartmentId())){
|
|
|
- dtails.setDutyDep(a.getDepartmentId());
|
|
|
+ if (!details.getDutyDep().equals(a.getDepartmentId())){
|
|
|
+ details.setDutyDep(a.getDepartmentId());
|
|
|
}
|
|
|
- tTaskMidMapper.updateByTid(dtails);
|
|
|
+ tTaskMidMapper.updateByTid(details);
|
|
|
//处理订单信息
|
|
|
checkProjiectAllocation(t.getOrderNo());
|
|
|
pushTaskChange(TokenManager.getAdminId(), taskReceiverId, type, t.getOrderNo());
|