Browse Source

Merge remote-tracking branch 'origin/fix_bug_20231215' into fix_bug_20231215

single_db
caoyizhong 1 year ago
parent
commit
25df29ac9b
  1. 3
      blade-service-api/logpm-warehouse-api/src/main/java/com/logpm/warehouse/feign/IWarehouseTrayTypeClient.java
  2. 7
      blade-service/logpm-factory/src/main/java/com/logpm/factory/receiver/OrderStatusHandler.java
  3. 2
      blade-service/logpm-factory/src/test/java/com/logpm/factory/TestService.java
  4. 13
      blade-service/logpm-old-project/src/main/java/com/logpm/oldproject/feign/OldWaybillClient.java
  5. 5
      blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/feign/WarehouseTrayTypeClient.java

3
blade-service-api/logpm-warehouse-api/src/main/java/com/logpm/warehouse/feign/IWarehouseTrayTypeClient.java

@ -67,4 +67,7 @@ public interface IWarehouseTrayTypeClient {
void deleteZeroOrderByTrayCode(@RequestParam String orderCode, @RequestParam String palletCode, @RequestParam Long wid); void deleteZeroOrderByTrayCode(@RequestParam String orderCode, @RequestParam String palletCode, @RequestParam Long wid);
@GetMapping(API_PREFIX+"/changeTrayWarehouseInfo") @GetMapping(API_PREFIX+"/changeTrayWarehouseInfo")
void changeTrayWarehouseInfo(@RequestParam String trayCode, @RequestParam Long warehouseId); void changeTrayWarehouseInfo(@RequestParam String trayCode, @RequestParam Long warehouseId);
@GetMapping(API_PREFIX+"/trayToNull")
void trayToNull(@RequestParam String trayCode);
} }

7
blade-service/logpm-factory/src/main/java/com/logpm/factory/receiver/OrderStatusHandler.java

@ -221,7 +221,12 @@ public class OrderStatusHandler {
boolean b = warehouseTrayTypeClient.orderScanOrderPackageCode(m); boolean b = warehouseTrayTypeClient.orderScanOrderPackageCode(m);
if(!b){ if(!b){
log.warn("####################orderStatusHandler: 打托失败 unitNo={} trayCode={}",unitNo,"T"+trayId); log.warn("####################orderStatusHandler: 打托失败 unitNo={} trayCode={}",unitNo,"T"+trayId);
return; //先去空置托盘再打托
warehouseTrayTypeClient.trayToNull("T"+trayId);
boolean b1 = warehouseTrayTypeClient.orderScanOrderPackageCode(m);
if(!b1){
log.warn("####################orderStatusHandler: 二次打托失败 unitNo={} trayCode={}",unitNo,"T"+trayId);
}
} }
}else{ }else{
//有上架就上架 //有上架就上架

2
blade-service/logpm-factory/src/test/java/com/logpm/factory/TestService.java

@ -772,7 +772,7 @@ public class TestService {
public void test17(){ public void test17(){
// 解析 Excel // 解析 Excel
String file ="D:\\data\\工作文件\\slwk\\软件项目\\hyw\\新带解析数据1.2.xlsx"; String file ="D:\\data\\工作文件\\slwk\\软件项目\\hyw\\新带解析数据1.3.xlsx";
EasyExcel.read(file, OrderStatusLogMode.class, new OrderStatusLogListener()).sheet("Sheet1").doRead(); EasyExcel.read(file, OrderStatusLogMode.class, new OrderStatusLogListener()).sheet("Sheet1").doRead();

13
blade-service/logpm-old-project/src/main/java/com/logpm/oldproject/feign/OldWaybillClient.java

@ -41,14 +41,19 @@ public class OldWaybillClient implements IOldWaybillClient {
@Override @Override
public R waybillDataHandler(String waybillId, String waybillNo) { public R waybillDataHandler(String waybillId, String waybillNo) {
try {
// 更加运单ID查询系统数据 // 更加运单ID查询系统数据
log.info("##################pushOldSystemSignInfo: 请求老系统接口 start waybillId {},waybillNo {}", waybillId, waybillNo); log.info("##################pushOldSystemSignInfo: 请求老系统接口 start waybillId {},waybillNo {}", waybillId, waybillNo);
WayBillEntity byWaybillId = wayBillService.getByWaybillId(Integer.parseInt(waybillId)); WayBillEntity byWaybillId = wayBillService.getByWaybillId(Integer.parseInt(waybillId));
log.info(">>>>>>>>>>>>>>>>> 运单信息 {}", byWaybillId);
log.info(">>>>>>>>>>>>>>>>> 旧仓库ID 集合 {}", OldSystemDataPushConfig.getWarehourseIdList());
// 需要验证当前需要开启的数据推送仓库 // 需要验证当前需要开启的数据推送仓库 null+""
if (!OldSystemDataPushConfig.getWarehourseIdList().contains(byWaybillId.getWarehouseId() + "")) { if (!OldSystemDataPushConfig.getWarehourseIdList().contains(byWaybillId.getWarehouseId() + "")) {
log.info(">>> waybillDataHandler 当前开单仓库不是目前系统上线运行仓库 {}", byWaybillId.getWarehouseId()); log.info(">>> waybillDataHandler 当前开单仓库不是目前系统上线运行仓库 {}", byWaybillId.getWarehouseId());
return null; return null;
@ -73,16 +78,18 @@ public class OldWaybillClient implements IOldWaybillClient {
for (int i1 = 0; i1 < unitNos.size(); i1++) { for (int i1 = 0; i1 < unitNos.size(); i1++) {
String unitNo = unitNos.getString(i1); String unitNo = unitNos.getString(i1);
log.info(">>>>>>>> 保存开单推送的已入库包件 {} 保存到新系统", unitNo); log.info(">>>>>>>> 保存开单推送的已入库包件 {} 保存到新系统", unitNo);
String operationTime = DateUtil.format(new Date(), "yyyy-MM-dd hh:mm:ss"); String operationTime = DateUtil.format(new Date(), "yyyy-MM-dd hh:mm:ss");
oldSystemWaybillClient.handleDataToPlatform(unitNo, operationTime); oldSystemWaybillClient.handleDataToPlatform(unitNo, operationTime);
} }
} }
} else { } else {
// 请求失败 // 请求失败
} }
} catch (Exception e) {
log.error(">>>> 运单信息查询解析报错 ", e);
}
return null; return null;
} }

5
blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/feign/WarehouseTrayTypeClient.java

@ -89,5 +89,10 @@ public class WarehouseTrayTypeClient implements IWarehouseTrayTypeClient {
warehouseTrayTypeService.changeTrayWarehouseInfo(trayCode,warehouseId); warehouseTrayTypeService.changeTrayWarehouseInfo(trayCode,warehouseId);
} }
@Override
public void trayToNull(String trayCode) {
warehouseTrayTypeService.trayToNull(trayCode);
}
} }

Loading…
Cancel
Save