|
|
@ -31,7 +31,6 @@ import com.foreverwin.mesnac.production.mapper.SfcCrossMapper;
|
|
|
|
import com.foreverwin.mesnac.production.mapper.SfcDataAssembleMapper;
|
|
|
|
import com.foreverwin.mesnac.production.mapper.SfcDataAssembleMapper;
|
|
|
|
import com.foreverwin.mesnac.production.model.LoadInventory;
|
|
|
|
import com.foreverwin.mesnac.production.model.LoadInventory;
|
|
|
|
import com.foreverwin.mesnac.production.model.SfcHoldLog;
|
|
|
|
import com.foreverwin.mesnac.production.model.SfcHoldLog;
|
|
|
|
import com.foreverwin.mesnac.production.model.WorkShopTransfer;
|
|
|
|
|
|
|
|
import com.foreverwin.mesnac.production.service.*;
|
|
|
|
import com.foreverwin.mesnac.production.service.*;
|
|
|
|
import com.foreverwin.modular.core.exception.BaseException;
|
|
|
|
import com.foreverwin.modular.core.exception.BaseException;
|
|
|
|
import com.foreverwin.modular.core.meext.MEServices;
|
|
|
|
import com.foreverwin.modular.core.meext.MEServices;
|
|
|
@ -90,8 +89,6 @@ public class PodTemplateServiceImpl implements PodTemplateService {
|
|
|
|
private LoadInventoryService loadInventoryService;
|
|
|
|
private LoadInventoryService loadInventoryService;
|
|
|
|
@Autowired
|
|
|
|
@Autowired
|
|
|
|
private SfcHoldLogService sfcHoldLogService;
|
|
|
|
private SfcHoldLogService sfcHoldLogService;
|
|
|
|
@Autowired
|
|
|
|
|
|
|
|
private WorkShopTransferService workShopTransferService;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public Map<String, Object> resrceEnter(WorkCenterDto workCenterDto) {
|
|
|
|
public Map<String, Object> resrceEnter(WorkCenterDto workCenterDto) {
|
|
|
@ -208,9 +205,8 @@ public class PodTemplateServiceImpl implements PodTemplateService {
|
|
|
|
String dispatchNo = sfcDto.getDispatchNo();
|
|
|
|
String dispatchNo = sfcDto.getDispatchNo();
|
|
|
|
Sfc sfcServiceById = sfcService.getById(HandleEnum.SFC.getHandle(site, sfc));
|
|
|
|
Sfc sfcServiceById = sfcService.getById(HandleEnum.SFC.getHandle(site, sfc));
|
|
|
|
BigDecimal qty = new BigDecimal(sfcServiceById.getQty().toString());
|
|
|
|
BigDecimal qty = new BigDecimal(sfcServiceById.getQty().toString());
|
|
|
|
WorkShopTransfer transfer = workShopTransferService.sfcEnter(sfc, "OUT");
|
|
|
|
|
|
|
|
String isOutSource = transfer.getIsOutSource();
|
|
|
|
if (!operation.equals("WX_6106GX")){
|
|
|
|
if (StringUtil.isBlank(isOutSource)||!isOutSource.equals(Constants.STATUS_Y)){
|
|
|
|
|
|
|
|
//是否有互检检验项目
|
|
|
|
//是否有互检检验项目
|
|
|
|
List<InspectionItemDetail> inspectionItemDetails = inspectionItemService.selectQualityInspection(sfc, operation, stepId, Constants.INSPECTION_TYPE_H);
|
|
|
|
List<InspectionItemDetail> inspectionItemDetails = inspectionItemService.selectQualityInspection(sfc, operation, stepId, Constants.INSPECTION_TYPE_H);
|
|
|
|
if (inspectionItemDetails.size() > 0 && inspectionItemDetails.get(0) != null) {
|
|
|
|
if (inspectionItemDetails.size() > 0 && inspectionItemDetails.get(0) != null) {
|
|
|
@ -264,9 +260,7 @@ public class PodTemplateServiceImpl implements PodTemplateService {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
BigDecimal workHour=BigDecimal.ZERO;
|
|
|
|
BigDecimal workHour=BigDecimal.ZERO;
|
|
|
|
BigDecimal qty = new BigDecimal(sfcServiceById.getQty().toString());
|
|
|
|
BigDecimal qty = new BigDecimal(sfcServiceById.getQty().toString());
|
|
|
|
WorkShopTransfer transfer = workShopTransferService.sfcEnter(sfc, "OUT");
|
|
|
|
if (!operation.equals("WX_6106GX")) {
|
|
|
|
String isOutSource = transfer.getIsOutSource();
|
|
|
|
|
|
|
|
if (StringUtil.isBlank(isOutSource)||!isOutSource.equals(Constants.STATUS_Y)) {
|
|
|
|
|
|
|
|
//是否有自检检验项目
|
|
|
|
//是否有自检检验项目
|
|
|
|
List<InspectionItemDetail> inspectionItemDetails = inspectionItemService.selectQualityInspection(sfc, operation, stepId, Constants.INSPECTION_TYPE_Z);
|
|
|
|
List<InspectionItemDetail> inspectionItemDetails = inspectionItemService.selectQualityInspection(sfc, operation, stepId, Constants.INSPECTION_TYPE_Z);
|
|
|
|
if (inspectionItemDetails.size() > 0 && inspectionItemDetails.get(0) != null) {
|
|
|
|
if (inspectionItemDetails.size() > 0 && inspectionItemDetails.get(0) != null) {
|
|
|
|