生成终检过程检
This commit is contained in:
parent
3df1cef7dd
commit
7ba7b7e0a9
@ -31,7 +31,10 @@ import com.chanko.yunxi.mes.module.heli.dal.mysql.taskdispatch.TaskDispatchMappe
|
||||
import com.chanko.yunxi.mes.module.heli.dal.mysql.taskreport.TaskReportMapper;
|
||||
import com.chanko.yunxi.mes.module.heli.enums.*;
|
||||
import com.chanko.yunxi.mes.module.heli.manager.CrossOrderManager;
|
||||
import com.chanko.yunxi.mes.module.heli.service.pgmaster.PgMasterService;
|
||||
import com.chanko.yunxi.mes.module.heli.service.serialnumber.SerialNumberService;
|
||||
import com.chanko.yunxi.mes.module.heli.service.zjbgmasterline.ZjBgMasterLineService;
|
||||
import com.chanko.yunxi.mes.module.heli.service.zjpgmaster.ZjPgMasterService;
|
||||
import com.chanko.yunxi.mes.module.system.dal.dataobject.user.AdminUserDO;
|
||||
import com.chanko.yunxi.mes.module.system.service.user.AdminUserService;
|
||||
import org.apache.commons.lang3.SerializationUtils;
|
||||
@ -84,7 +87,10 @@ public class TaskDispatchServiceImpl implements TaskDispatchService {
|
||||
private FpUserDetailMapper fpUserDetailMapper;
|
||||
@Resource
|
||||
private PlanMapper planMapper;
|
||||
|
||||
@Resource
|
||||
private ZjPgMasterService zjPgMasterService;
|
||||
@Resource
|
||||
private PgMasterService pgMasterService;
|
||||
@Override
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public Long createTaskDispatch(TaskDispatchSaveReqVO createReqVO) {
|
||||
@ -470,6 +476,11 @@ public class TaskDispatchServiceImpl implements TaskDispatchService {
|
||||
PlanDO planDO = planMapper.selectById(taskDispatchDO.getTaskId());
|
||||
planDO.setStatus(3);
|
||||
planMapper.updateBatch(planDO);
|
||||
if(taskDispatchDO.getDispatchType().equals("ASSEMBLE")){
|
||||
zjPgMasterService.insertZjList(planDO.getId(),planDO.getProjectId());
|
||||
} else if (taskDispatchDO.getDispatchType().equals("PRODUCTION")) {
|
||||
pgMasterService.insertPgList(planDO.getId(),planDO.getProjectId());
|
||||
}
|
||||
}
|
||||
}
|
||||
taskDispatchDetailMapper.updateById(taskDispatchDetailDO);
|
||||
|
Loading…
Reference in New Issue
Block a user