Browse Source

增加测试租户

master
pref_mail@163.com 8 months ago
parent
commit
49ed3200d1
  1. 15
      blade-service-api/logpm-business-conversion-api/src/main/java/com/logpm/business/entity/DistributionBusinessPreOrderEntity.java
  2. 2
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/receiver/BusinessPreOrderDataQueueHandler.java
  3. 10
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/IDistributionBusinessPreOrderServiceImpl.java

15
blade-service-api/logpm-business-conversion-api/src/main/java/com/logpm/business/entity/DistributionBusinessPreOrderEntity.java

@ -104,11 +104,7 @@ public class DistributionBusinessPreOrderEntity extends TenantEntity {
@ApiModelProperty(value = "包条码")
private String orderPackageCode;
@ApiModelProperty(value = "货区信息")
private String cargoTitle;
@ApiModelProperty(value = "货架信息")
private String shelfTitle;
/**
* 货位信息
*/
@ -210,18 +206,7 @@ public class DistributionBusinessPreOrderEntity extends TenantEntity {
@ApiModelProperty(value = "包件状态")
private String orderPackageStatus;
@ApiModelProperty(value = "包件冻结状态")
private String orderPackageFreezeStatus;
@ApiModelProperty(value = "包件冻结状态")
private String orderPackageReservationStatus;
@ApiModelProperty(value = "备货状态")
private String orderPackageStockupStatus;
@ApiModelProperty(value = "上架状态")
private String orderPackageGroundingStatus;
@ApiModelProperty(value = "经销商名称")
private String dealerName;

2
blade-service/logpm-distribution/src/main/java/com/logpm/distribution/receiver/BusinessPreOrderDataQueueHandler.java

@ -145,6 +145,8 @@ public class BusinessPreOrderDataQueueHandler {
for (DistributionBusinessPreOrderEntity distributionBusinessPreOrderEntity : list) {
for (DistributionBusinessPreOrderEntity businessPreOrderEntity : dataResult) {
businessPreOrderEntity.setTenantId(tenant.getTenantId());
if (businessPreOrderEntity.getStockArticleId().equals(distributionBusinessPreOrderEntity.getStockArticleId())) {
// 找到订单

10
blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/IDistributionBusinessPreOrderServiceImpl.java

@ -208,6 +208,16 @@ public class IDistributionBusinessPreOrderServiceImpl extends BaseServiceImpl<Di
private void buildDistributionParcelListEntity(DistributionBusinessPreOrderEntity distributionBusinessPreOrderEntity) {
DistributionParcelListEntity distributionParcelListEntity = BeanUtil.copy(distributionBusinessPreOrderEntity, DistributionParcelListEntity.class);
distributionParcelListEntity.setId(null);
distributionParcelListEntity.setOrderPackageFreezeStatus("10");
distributionParcelListEntity.setOrderPackageStatus("20");
distributionParcelListEntity.setOrderPackageLoadingStatus("10");
distributionParcelListEntity.setOrderPackageReservationStatus("10");
distributionParcelListEntity.setOrderPackageGroundingStatus("10");
distributionParcelListEntity.setOrderPackageStockupStatus("10");
distributionParcelListService.save(distributionParcelListEntity);
DistributionStockArticleEntity stockArticleEntity = distributionStockArticleService.getById(distributionParcelListEntity.getStockArticleId());
//增加

Loading…
Cancel
Save