|
|
|
@ -266,6 +266,28 @@ public class PodTemplateServiceImpl implements PodTemplateService {
|
|
|
|
|
sfcCrossService.completeAction(site, currentRevisionRef.getHandle(), resrce, sfcServiceById.getHandle(), qty);
|
|
|
|
|
//更改派工单状态
|
|
|
|
|
sfcDispatchCommonService.updateSfcDispatchStatus(site, CommonMethods.getUser(), dispatchNo, DispatchStatusEnum.COMPLETE.getCode());
|
|
|
|
|
//专检创建
|
|
|
|
|
Map<String, Object> paramMap=new HashMap<>();
|
|
|
|
|
paramMap.put("SFC",sfc);
|
|
|
|
|
paramMap.put("SHOP_ORDER",StringUtil.trimHandle(sfcServiceById.getShopOrderBo()));
|
|
|
|
|
paramMap.put("OPERATION",operation);
|
|
|
|
|
paramMap.put("STEP_ID",stepId);
|
|
|
|
|
String workShopBo = commonService.getWorkShopBo(HandleEnum.RESOURCE.getHandle(site, resrce));
|
|
|
|
|
paramMap.put("WORK_CENTER",StringUtil.trimHandle(workShopBo));
|
|
|
|
|
paramMap.put("RESRCE",resrce);
|
|
|
|
|
paramMap.put("SFC_DISPATCH_DETAIL_BO",HandleEnum.SFC_DISPATCH.getHandle(site,dispatchNo));
|
|
|
|
|
|
|
|
|
|
inspectionItemDetails = inspectionItemService.selectQualityInspection(sfc,operation, stepId, Constants.INSPECTION_TYPE_P);
|
|
|
|
|
if (inspectionItemDetails.size() > 0 && inspectionItemDetails.get(0) != null) {
|
|
|
|
|
paramMap.put("CATEGORY",Constants.INSPECTION_TYPE_P);
|
|
|
|
|
inspectionTaskService.createTask(paramMap);
|
|
|
|
|
}
|
|
|
|
|
//首件创建
|
|
|
|
|
inspectionItemDetails = inspectionItemService.selectQualityInspection(sfc,operation, stepId, Constants.INSPECTION_TYPE_S);
|
|
|
|
|
if (inspectionItemDetails.size() > 0 && inspectionItemDetails.get(0) != null) {
|
|
|
|
|
paramMap.put("CATEGORY",Constants.INSPECTION_TYPE_S);
|
|
|
|
|
inspectionTaskService.createTask(paramMap);
|
|
|
|
|
}
|
|
|
|
|
//报工
|
|
|
|
|
sendErp(sfc, stepId, qty);
|
|
|
|
|
} catch (Exception e) {
|
|
|
|
|