|
|
|
@ -819,7 +819,6 @@ public class InterfaceServiceImpl implements InterfaceService {
|
|
|
|
|
LocalDateTime now = LocalDateTime.now();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
List<PrintLog> printLogList = new ArrayList<>();
|
|
|
|
|
//循环处理 物料批次
|
|
|
|
|
for (int i = 0; i < itemBatchDtoList.size(); i++) {
|
|
|
|
|
ItemBatchDto itemBatchDto = itemBatchDtoList.get(i);
|
|
|
|
@ -867,7 +866,6 @@ public class InterfaceServiceImpl implements InterfaceService {
|
|
|
|
|
itemBatch.setCreateUser(Constants.SITE_ADMIN);
|
|
|
|
|
itemBatch.setCreatedDateTime(now);
|
|
|
|
|
itemBatchService.save(itemBatch);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//打印模板参数
|
|
|
|
|
List<LabelPrintDto> labelPrintDtoList = new ArrayList<>();
|
|
|
|
@ -882,7 +880,6 @@ public class InterfaceServiceImpl implements InterfaceService {
|
|
|
|
|
labelPrintDto.setLabel(inventory);
|
|
|
|
|
labelPrintDtoList.add(labelPrintDto);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//记录打印数据
|
|
|
|
|
PrintLog printLog = new PrintLog();
|
|
|
|
|
printLog.setHandle(UUID.randomUUID().toString());
|
|
|
|
@ -897,12 +894,12 @@ public class InterfaceServiceImpl implements InterfaceService {
|
|
|
|
|
printLog.setPrintNum(0);
|
|
|
|
|
printLog.setCreateUser("SITE_ADMIN");
|
|
|
|
|
printLog.setCreatedDateTime(LocalDateTime.now());
|
|
|
|
|
printLogList.add(printLog);
|
|
|
|
|
printLogService.save(printLog);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (printLogList != null && printLogList.size() > 0) {
|
|
|
|
|
printLogService.saveBatch(printLogList);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|