|
@@ -189,7 +189,13 @@ public class InventoryFinishedOrderServiceImpl extends ServiceImpl<InventoryFini
|
|
|
// 生成入库单
|
|
|
for (OutboundOrder outboundOrder : outboundOrderMap.values()) {
|
|
|
Date outboundTime = outboundOrder.getOutboundTime();
|
|
|
- Long format = Long.parseLong(DateUtil.format(outboundTime, "MMddHH"));
|
|
|
+ int num;
|
|
|
+ if (Objects.equals("T007", outboundOrder.getStorageCode())) {
|
|
|
+ num = 33;
|
|
|
+ } else {
|
|
|
+ num = 66;
|
|
|
+ }
|
|
|
+ Long format = Long.parseLong(DateUtil.format(outboundTime, num + "MMddHH"));
|
|
|
if (codeMap.get(format) != null) {
|
|
|
continue;
|
|
|
}
|
|
@@ -201,12 +207,6 @@ public class InventoryFinishedOrderServiceImpl extends ServiceImpl<InventoryFini
|
|
|
|
|
|
// 生成单号,后四位生成规则,取系统单号 dd01
|
|
|
// 生成e10入库单号后四位,当前天数+num 防止与bom入库导出单号重复
|
|
|
- int num;
|
|
|
- if (Objects.equals("T007", outboundOrder.getStorageCode())) {
|
|
|
- num = 30;
|
|
|
- } else {
|
|
|
- num = 60;
|
|
|
- }
|
|
|
int day = DateUtil.dayOfMonth(outboundTime);
|
|
|
int hour = DateUtil.hour(outboundTime, true);
|
|
|
int codeNum = Integer.parseInt((day + num) + String.format("%02d", hour));
|
|
@@ -245,7 +245,13 @@ public class InventoryFinishedOrderServiceImpl extends ServiceImpl<InventoryFini
|
|
|
if (outboundOrder == null || skuSpec == null) {
|
|
|
return inOutStorageBomErpExportVo;
|
|
|
}
|
|
|
- inOutStorageBomErpExportVo.setCode(codeMap.get(Long.parseLong(DateUtil.format(outboundOrder.getOutboundTime(), "MMddHH"))));
|
|
|
+ int num;
|
|
|
+ if (Objects.equals("T007", outboundOrder.getStorageCode())) {
|
|
|
+ num = 33;
|
|
|
+ } else {
|
|
|
+ num = 66;
|
|
|
+ }
|
|
|
+ inOutStorageBomErpExportVo.setCode(codeMap.get(Long.parseLong(DateUtil.format(outboundOrder.getOutboundTime(), num + "MMddHH"))));
|
|
|
OrderInfo orderInfo = orderInfoMap.get(outboundOrder.getOrderWlnCode());
|
|
|
if (orderInfo == null) {
|
|
|
return inOutStorageBomErpExportVo;
|