|
|
@ -68,8 +68,6 @@ public class PodTemplateServiceImpl implements PodTemplateService {
|
|
|
|
@Autowired
|
|
|
|
@Autowired
|
|
|
|
private SfcService sfcService;
|
|
|
|
private SfcService sfcService;
|
|
|
|
@Autowired
|
|
|
|
@Autowired
|
|
|
|
private IntegrationLogService integrationLogService;
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
|
|
|
|
private RouterService routerService;
|
|
|
|
private RouterService routerService;
|
|
|
|
@Autowired
|
|
|
|
@Autowired
|
|
|
|
private ItemService itemService;
|
|
|
|
private ItemService itemService;
|
|
|
@ -84,19 +82,25 @@ public class PodTemplateServiceImpl implements PodTemplateService {
|
|
|
|
@Autowired
|
|
|
|
@Autowired
|
|
|
|
private OperationService operationService;
|
|
|
|
private OperationService operationService;
|
|
|
|
@Autowired
|
|
|
|
@Autowired
|
|
|
|
|
|
|
|
private SfcHoldLogService sfcHoldLogService;
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
|
|
|
|
private CustomFieldsService customFieldsService;
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
private BomComponentService bomComponentService;
|
|
|
|
private BomComponentService bomComponentService;
|
|
|
|
@Autowired
|
|
|
|
@Autowired
|
|
|
|
|
|
|
|
private LoadInventoryService loadInventoryService;
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
private SfcDataAssembleMapper sfcDataAssembleMapper;
|
|
|
|
private SfcDataAssembleMapper sfcDataAssembleMapper;
|
|
|
|
@Autowired
|
|
|
|
@Autowired
|
|
|
|
private InspectionTaskService inspectionTaskService;
|
|
|
|
private InspectionTaskService inspectionTaskService;
|
|
|
|
@Autowired
|
|
|
|
@Autowired
|
|
|
|
private InspectionItemService inspectionItemService;
|
|
|
|
private InspectionItemService inspectionItemService;
|
|
|
|
@Autowired
|
|
|
|
@Autowired
|
|
|
|
private SfcDispatchCommonService sfcDispatchCommonService;
|
|
|
|
private IntegrationLogService integrationLogService;
|
|
|
|
@Autowired
|
|
|
|
|
|
|
|
private LoadInventoryService loadInventoryService;
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
@Autowired
|
|
|
|
private SfcHoldLogService sfcHoldLogService;
|
|
|
|
private SfcDispatchCommonService sfcDispatchCommonService;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public Map<String, Object> resrceEnter(WorkCenterDto workCenterDto) {
|
|
|
|
public Map<String, Object> resrceEnter(WorkCenterDto workCenterDto) {
|
|
|
@ -315,9 +319,12 @@ public class PodTemplateServiceImpl implements PodTemplateService {
|
|
|
|
paramMap.put("CATEGORY", Constants.INSPECTION_TYPE_P);
|
|
|
|
paramMap.put("CATEGORY", Constants.INSPECTION_TYPE_P);
|
|
|
|
inspectionTaskService.createTask(paramMap);
|
|
|
|
inspectionTaskService.createTask(paramMap);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
|
|
|
|
String special = customFieldsService.getCustomFieldsValue(currentRevisionRef.getHandle(), "SPECIAL");
|
|
|
|
paramMap.put("CATEGORY", Constants.INSPECTION_TYPE_P);
|
|
|
|
paramMap.put("CATEGORY", Constants.INSPECTION_TYPE_P);
|
|
|
|
|
|
|
|
if (StringUtil.isBlank(special)|| !special.equals("N")){
|
|
|
|
inspectionTaskService.createNewTask(paramMap);
|
|
|
|
inspectionTaskService.createNewTask(paramMap);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
//首件创建
|
|
|
|
//首件创建
|
|
|
|
inspectionItemDetails = inspectionItemService.selectQualityInspection(sfc, operation, stepId, Constants.INSPECTION_TYPE_S);
|
|
|
|
inspectionItemDetails = inspectionItemService.selectQualityInspection(sfc, operation, stepId, Constants.INSPECTION_TYPE_S);
|
|
|
|
if (inspectionItemDetails.size() > 0 && inspectionItemDetails.get(0) != null) {
|
|
|
|
if (inspectionItemDetails.size() > 0 && inspectionItemDetails.get(0) != null) {
|
|
|
|