|
|
|
@ -93,6 +93,7 @@ public class OpenOrderServiceImpl implements IOpenOrderService {
|
|
|
|
|
private final ITrunklineCarsLoadScanService trunklineCarsLoadScanService; |
|
|
|
|
private final IBasicdataStoreContactClient basicdataStoreContactClient; |
|
|
|
|
private final IAsyncService asyncService; |
|
|
|
|
private final ICarsLoadAsyncService carsLoadAsyncService; |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public IPage<TrunklineAdvanceVO> advancePageList(AdvanceDTO advanceDTO) { |
|
|
|
@ -619,7 +620,6 @@ public class OpenOrderServiceImpl implements IOpenOrderService {
|
|
|
|
|
|
|
|
|
|
//队列处理包件补数据
|
|
|
|
|
|
|
|
|
|
// sendRabbitMessageLoadScanData(JSONUtil.parseArray(advanceIds));
|
|
|
|
|
carsLoadService.sendRabbitMessageOpenOrder(advanceIds, waybillId); |
|
|
|
|
|
|
|
|
|
Map<String,Object> map = new HashMap<>(); |
|
|
|
@ -1062,7 +1062,7 @@ public class OpenOrderServiceImpl implements IOpenOrderService {
|
|
|
|
|
|
|
|
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
|
|
@Override |
|
|
|
|
public R<List<TrunklineAdvanceEntity>> openLabelHasPacakage(Long warehouseId, String warehouseName, MultipartFile file) throws IOException { |
|
|
|
|
public R openLabelHasPacakage(Long warehouseId, String warehouseName, MultipartFile file) throws IOException { |
|
|
|
|
if (Objects.isNull(file)) { |
|
|
|
|
log.warn("##################openLabelHasPacakage: 文件不存在"); |
|
|
|
|
return R.fail(405, "文件不存在"); |
|
|
|
@ -1352,7 +1352,13 @@ public class OpenOrderServiceImpl implements IOpenOrderService {
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
return R.data(advanceEntityList); |
|
|
|
|
if(!CollUtil.isEmpty(advanceEntityList)){ |
|
|
|
|
carsLoadAsyncService.sendRabbitMessageLoadScanData(advanceEntityList); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
int successNum = advanceDetailEntities.size(); |
|
|
|
|
|
|
|
|
|
return R.success("成功处理包件"+successNum+"件"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public int findFirstDigitIndex(String str) { |
|
|
|
@ -1367,7 +1373,7 @@ public class OpenOrderServiceImpl implements IOpenOrderService {
|
|
|
|
|
|
|
|
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
|
|
@Override |
|
|
|
|
public R<List<TrunklineAdvanceEntity>> importCustomizedOuPai(Long warehouseId, String warehouseName, MultipartFile file) throws IOException { |
|
|
|
|
public R importCustomizedOuPai(Long warehouseId, String warehouseName, MultipartFile file) throws IOException { |
|
|
|
|
if (Objects.isNull(file)) { |
|
|
|
|
log.warn("##################importCustomizedOuPai: 文件不存在"); |
|
|
|
|
return R.fail(405, "文件不存在"); |
|
|
|
@ -1619,13 +1625,18 @@ public class OpenOrderServiceImpl implements IOpenOrderService {
|
|
|
|
|
|
|
|
|
|
log.info("################本次耗时 " + (end - start) + "ms"); |
|
|
|
|
|
|
|
|
|
int size = advanceDetailEntities.size(); |
|
|
|
|
|
|
|
|
|
if(!CollUtil.isEmpty(advanceEntityList)){ |
|
|
|
|
carsLoadAsyncService.sendRabbitMessageLoadScanData(advanceEntityList); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
return R.data(advanceEntityList); |
|
|
|
|
return R.success("成功导入"+size+"条"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
|
|
@Override |
|
|
|
|
public R<List<TrunklineAdvanceEntity>> importStandardOuPai(Long warehouseId, String warehouseName, MultipartFile file) throws IOException { |
|
|
|
|
public R importStandardOuPai(Long warehouseId, String warehouseName, MultipartFile file) throws IOException { |
|
|
|
|
if (Objects.isNull(file)) { |
|
|
|
|
log.warn("##################importStandardOuPai: 文件不存在"); |
|
|
|
|
return R.fail(405, "文件不存在"); |
|
|
|
@ -1907,10 +1918,15 @@ public class OpenOrderServiceImpl implements IOpenOrderService {
|
|
|
|
|
comlist.add(fromCpFirstReq); |
|
|
|
|
} |
|
|
|
|
CompletableFuture.allOf(comlist.toArray(new CompletableFuture[0])).join(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if(!CollUtil.isEmpty(advanceEntityList)){ |
|
|
|
|
carsLoadAsyncService.sendRabbitMessageLoadScanData(advanceEntityList); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
return R.data(advanceEntityList); |
|
|
|
|
int successNum = advanceDetailEntities.size(); |
|
|
|
|
|
|
|
|
|
return R.success("成功导入"+successNum+"条"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@ -2206,7 +2222,7 @@ public class OpenOrderServiceImpl implements IOpenOrderService {
|
|
|
|
|
|
|
|
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
|
|
@Override |
|
|
|
|
public R<List<TrunklineAdvanceEntity>> importOrderNoPackage(Long warehouseId, String warehouseName, String warehouseCode, MultipartFile file) throws IOException { |
|
|
|
|
public R importOrderNoPackage(Long warehouseId, String warehouseName, String warehouseCode, MultipartFile file) throws IOException { |
|
|
|
|
if (Objects.isNull(file)) { |
|
|
|
|
log.warn("##################importOrderNoPackage: 文件不存在"); |
|
|
|
|
return R.fail(405, "文件不存在"); |
|
|
|
@ -2293,7 +2309,9 @@ public class OpenOrderServiceImpl implements IOpenOrderService {
|
|
|
|
|
}); |
|
|
|
|
advanceService.saveBatch(list); |
|
|
|
|
|
|
|
|
|
return R.data(list); |
|
|
|
|
int successNum = list.size(); |
|
|
|
|
|
|
|
|
|
return R.success("成功导入"+successNum+"件"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|