外协工序

master
philip 3 years ago
parent 4c74324b99
commit f41e22a9a8

@ -486,7 +486,7 @@ public class ProdReadyTaskServiceImpl extends ServiceImpl<ProdReadyTaskMapper, P
labelPrintDto.setBlankingSize(sfcDispatchDto.getBlankingSize()); labelPrintDto.setBlankingSize(sfcDispatchDto.getBlankingSize());
// 是否主观件 :辅料类型是9则为主观件 // 是否主观件 :辅料类型是9则为主观件
String accessory_type = customFieldsMapper.selectCustomFieldsValue(selectCurrent.getHandle(), "ACCESSORY_TYPE"); String accessory_type = customFieldsMapper.selectCustomFieldsValue(selectCurrent.getHandle(), "ACCESSORY_TYPE");
if ("9".equals(accessory_type)){ if (StringUtil.notBlank(accessory_type)&&"9".equals(accessory_type)){
labelPrintDto.setMainPart(true); labelPrintDto.setMainPart(true);
}else{ }else{
labelPrintDto.setMainPart(false); labelPrintDto.setMainPart(false);

@ -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) {

Loading…
Cancel
Save