Browse Source

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

training
caoyizhong 1 year ago
parent
commit
4262fb2b81
  1. 2
      blade-service-api/logpm-warehouse-api/src/main/java/com/logpm/warehouse/entity/WarehouseWayBillDetail.java
  2. 2
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/feign/DistributionStockArticleClient.java
  3. 4
      blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/receiver/WaybillDataHandler.java
  4. 5
      blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/service/impl/WarehouseWaybillServiceImpl.java

2
blade-service-api/logpm-warehouse-api/src/main/java/com/logpm/warehouse/entity/WarehouseWayBillDetail.java

@ -13,7 +13,7 @@ public class WarehouseWayBillDetail extends BaseEntity {
/** 运单号 */
@ApiModelProperty(name = "运单号",notes = "")
private String waybillCode;
private String waybillNo;
/** 运单号id */
@ApiModelProperty(name = "运单id",notes = "")

2
blade-service/logpm-distribution/src/main/java/com/logpm/distribution/feign/DistributionStockArticleClient.java

@ -93,7 +93,7 @@ public class DistributionStockArticleClient implements IDistributionStockArticle
@Override
public DistributionStockArticleEntity findByOrderSelfNum(String waybillNo) {
QueryWrapper<DistributionStockArticleEntity> queryWrapper = new QueryWrapper<>();
queryWrapper.eq("order_self_numbering",waybillNo);
queryWrapper.eq("waybill_number",waybillNo);
return distributionStockArticleService.getOne(queryWrapper);
}

4
blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/receiver/WaybillDataHandler.java

@ -37,7 +37,11 @@ public class WaybillDataHandler {
log.info("##################waybillDataHandler: 处理开单零单数据 waybillDTO={}", waybillDTO);
if (!Objects.isNull(waybillDTO)) {
try {
warehouseWaybillService.waybillDataHandler(waybillDTO);
} catch (Exception e) {
log.error(e.getMessage());
}
} else {
log.info("##################waybillDataHandler: 处理开单零单数据 失败 WaybillNo={} ", waybillDTO.getWaybillNo());
}

5
blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/service/impl/WarehouseWaybillServiceImpl.java

@ -114,7 +114,7 @@ public class WarehouseWaybillServiceImpl extends BaseServiceImpl<WarehouseWaybil
for (WaybillDesEntity waybillDesEntity : des) {
WarehouseWayBillDetail warehouseWayBillDetail = new WarehouseWayBillDetail();
warehouseWayBillDetail.setWaybillId(waybillId);
warehouseWayBillDetail.setWaybillCode(waybillNo);
warehouseWayBillDetail.setWaybillNo(waybillNo);
warehouseWayBillDetail.setProductName(waybillDesEntity.getName());
warehouseWayBillDetail.setNum(waybillDesEntity.getNum());
warehouseWayBillDetail.setStatus(1);
@ -123,8 +123,8 @@ public class WarehouseWaybillServiceImpl extends BaseServiceImpl<WarehouseWaybil
warehouseWayBillDetail.setUpdateTime(date);
ls.add(warehouseWayBillDetail);
}
warehouseWayBillDetailService.addList(ls);
//创建在库订单
createStockArticle(warehouseWaybill);
} else {
@ -343,6 +343,7 @@ public class WarehouseWaybillServiceImpl extends BaseServiceImpl<WarehouseWaybil
/**
* 插入运单
*
* @param wayBillEntity
* @param allNum
* @return

Loading…
Cancel
Save