|
|
|
@ -25,6 +25,7 @@ import com.foreverwin.mesnac.meapi.dto.WorkCenterDto;
|
|
|
|
|
import com.foreverwin.mesnac.meapi.model.*;
|
|
|
|
|
import com.foreverwin.mesnac.meapi.service.*;
|
|
|
|
|
import com.foreverwin.mesnac.production.mapper.SfcCrossMapper;
|
|
|
|
|
import com.foreverwin.mesnac.production.mapper.SfcDataAssembleMapper;
|
|
|
|
|
import com.foreverwin.mesnac.production.model.LoadInventory;
|
|
|
|
|
import com.foreverwin.mesnac.production.service.LoadInventoryService;
|
|
|
|
|
import com.foreverwin.mesnac.production.service.PodTemplateService;
|
|
|
|
@ -75,6 +76,8 @@ public class PodTemplateServiceImpl implements PodTemplateService {
|
|
|
|
|
@Autowired
|
|
|
|
|
private BomComponentService bomComponentService;
|
|
|
|
|
@Autowired
|
|
|
|
|
private SfcDataAssembleMapper sfcDataAssembleMapper;
|
|
|
|
|
@Autowired
|
|
|
|
|
private InspectionTaskService inspectionTaskService;
|
|
|
|
|
@Autowired
|
|
|
|
|
private InspectionItemService inspectionItemService;
|
|
|
|
@ -260,6 +263,16 @@ public class PodTemplateServiceImpl implements PodTemplateService {
|
|
|
|
|
throw new BaseException("自检任务不合格,不能完成请检查");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
//是否装配完成
|
|
|
|
|
List<Map<String, Object>> assembleList = sfcDataAssembleMapper.querySfcAssemble(HandleEnum.SFC_DISPATCH.getHandle(site,dispatchNo));
|
|
|
|
|
if (assembleList!=null&&assembleList.size()>0){
|
|
|
|
|
for (Map<String,Object> objectMap:assembleList){
|
|
|
|
|
String isAssemble= (String) objectMap.get("IS_ASSEMBLE");
|
|
|
|
|
if (!isAssemble.equals("GREEN")){
|
|
|
|
|
throw new BaseException("未装配完成");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
//物料消耗
|
|
|
|
|
materialConsumption(site, operation, HandleEnum.SFC.getHandle(site, sfc), stepId, resrce);
|
|
|
|
|
try {
|
|
|
|
|