|
|
|
@ -62,6 +62,9 @@ public class MesWorkOrderCutService extends BaseMesService<MesWorkOrderCut> impl
|
|
|
|
|
@Autowired
|
|
|
|
|
private MesLabelTemplateParamRepository labelTemplateParamRepository;
|
|
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
|
private IMesPrintedSnLogRepository printedSnLogRepository;
|
|
|
|
|
|
|
|
|
|
protected void setPackQueryBean(MesWorkOrderCut bean, DdlPackBean packBean) {
|
|
|
|
|
DdlPreparedPack.getStringLikerPack(bean.getCutWorkOrderNo(), MesExtConstWords.CUT_WORK_ORDER_NO, packBean);
|
|
|
|
|
DdlPreparedPack.getStringLikerPack(bean.getCutCode(), MesExtConstWords.CUT_CODE, packBean);
|
|
|
|
@ -344,15 +347,28 @@ public class MesWorkOrderCutService extends BaseMesService<MesWorkOrderCut> impl
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
List<MesPrintedSnLog> printedSnLogList = new ArrayList<>();
|
|
|
|
|
workOrderCutDbList.forEach(o -> {
|
|
|
|
|
o.setPrintStatus(MesExtEnumUtil.PRINT_STATUS.PRINTED.getValue());
|
|
|
|
|
o.setPrintTime(TimeTool.getNowTime(true));
|
|
|
|
|
ConvertBean.serviceModelUpdate(o, userName);
|
|
|
|
|
o.setSystemSyncStatus(CommonEnumUtil.FALSE);
|
|
|
|
|
|
|
|
|
|
MesPrintedSnLog printedSnLog = new MesPrintedSnLog();
|
|
|
|
|
printedSnLog.setOrganizeCode(organizeCode);
|
|
|
|
|
printedSnLog.setCutWorkOrderNo(o.getCutWorkOrderNo());
|
|
|
|
|
printedSnLog.setBarcode(o.getCutWorkOrderNo());
|
|
|
|
|
printedSnLog.setProductDate(TimeTool.getNowTime(MesExtConstWords.DATE_FORMAT));
|
|
|
|
|
ConvertBean.serviceModelInitialize(printedSnLog, userName);
|
|
|
|
|
printedSnLogList.add(printedSnLog);
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
workOrderCutRepository.saveAll(workOrderCutDbList);
|
|
|
|
|
|
|
|
|
|
printedSnLogRepository.saveAll(printedSnLogList);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return resultMapList;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|