|
|
@ -25,12 +25,14 @@ import org.springframework.beans.BeanUtils;
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
import org.springframework.util.CollectionUtils;
|
|
|
|
import org.springframework.util.CollectionUtils;
|
|
|
|
|
|
|
|
import org.springframework.util.StringUtils;
|
|
|
|
|
|
|
|
|
|
|
|
import java.math.BigDecimal;
|
|
|
|
import java.math.BigDecimal;
|
|
|
|
import java.util.ArrayList;
|
|
|
|
import java.util.ArrayList;
|
|
|
|
import java.util.Date;
|
|
|
|
import java.util.Date;
|
|
|
|
import java.util.List;
|
|
|
|
import java.util.List;
|
|
|
|
import java.util.Map;
|
|
|
|
import java.util.Map;
|
|
|
|
|
|
|
|
import java.util.stream.Collectors;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* @Description : 保存裁片工单包装条码工步
|
|
|
|
* @Description : 保存裁片工单包装条码工步
|
|
|
@ -83,6 +85,11 @@ public class MesWorkOrderCutPackageSnSaveStepService extends BaseStepService {
|
|
|
|
// 从上下文中取出成品列表
|
|
|
|
// 从上下文中取出成品列表
|
|
|
|
List<MesWorkOrderCutDetailModel> workOrderCutFgDataContextList = productionDispatchContextStepService.getMesWorkOrderCutFgDataContext(reqBean);
|
|
|
|
List<MesWorkOrderCutDetailModel> workOrderCutFgDataContextList = productionDispatchContextStepService.getMesWorkOrderCutFgDataContext(reqBean);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//搜集裁片工单号
|
|
|
|
|
|
|
|
//List<String> filterList = equipVariableCollectContextList.stream().filter(o -> (null != o)).map(MesEquipVariableCollectContext::getEquipVariableValue).collect(Collectors.toList());
|
|
|
|
|
|
|
|
//List<String> workOrderCutNoList = filterList.stream().filter(o -> (!StringUtils.isEmpty(o) && !o.equals(productionProcessContext.getFinishCode()))).distinct().collect(Collectors.toList());
|
|
|
|
|
|
|
|
//String cutWorkOrderNo = workOrderCutNoList.stream().findFirst().get();
|
|
|
|
|
|
|
|
|
|
|
|
if (CollectionUtils.isEmpty(workOrderCutFgDataContextList))
|
|
|
|
if (CollectionUtils.isEmpty(workOrderCutFgDataContextList))
|
|
|
|
stepExpSendMsgAndThrowEx(reqBean, resultBean.writeDbLog(), "缺失裁片工单箱条码配置信息!");
|
|
|
|
stepExpSendMsgAndThrowEx(reqBean, resultBean.writeDbLog(), "缺失裁片工单箱条码配置信息!");
|
|
|
|
|
|
|
|
|
|
|
|