Browse Source

1.增加在库订单 仓库ID 和包件上的仓库ID

dev-warehouse
pref_mail@163.com 2 years ago
parent
commit
d29e60eb0a
  1. 3
      blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/entity/DistributionParcelListEntity.java
  2. 6
      blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/entity/DistributionStockArticleEntity.java
  3. 1
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionStockArticleServiceImpl.java
  4. 8
      blade-service/logpm-factory/src/main/java/com/logpm/factory/pan/service/impl/PanFactoryDataServiceImpl.java

3
blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/entity/DistributionParcelListEntity.java

@ -70,6 +70,9 @@ public class DistributionParcelListEntity extends TenantEntity {
*/ */
@ApiModelProperty(value = "仓库") @ApiModelProperty(value = "仓库")
private String warehouse; private String warehouse;
@ApiModelProperty(value = "仓库ID")
private Long warehouseId;
/** /**
* 状态 * 状态
*/ */

6
blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/entity/DistributionStockArticleEntity.java

@ -120,6 +120,12 @@ public class DistributionStockArticleEntity extends TenantEntity {
@ApiModelProperty(value = "仓库") @ApiModelProperty(value = "仓库")
private String warehouse; private String warehouse;
/**
* 仓库ID
*/
@ApiModelProperty(value = "仓库ID")
private Long warehouseId;
@TableField(exist = false) @TableField(exist = false)
private String stateName; private String stateName;
@TableField(exist = false) @TableField(exist = false)

1
blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionStockArticleServiceImpl.java

@ -248,6 +248,7 @@ public class DistributionStockArticleServiceImpl extends BaseServiceImpl<Distrib
distributionStockListEntity.setServiceNumber("服务号"); //服务号 distributionStockListEntity.setServiceNumber("服务号"); //服务号
distributionStockListEntity.setDescriptionGoods(distributionStockArticleEntity.getDescriptionGoods()); //货物名称 distributionStockListEntity.setDescriptionGoods(distributionStockArticleEntity.getDescriptionGoods()); //货物名称
distributionStockListEntity.setCargoNumber("货物编号"); //货物编号 distributionStockListEntity.setCargoNumber("货物编号"); //货物编号
distributionStockListEntity.setWarehouse(Long.parseLong( distributionStockArticleEntity.getWarehouse()) ); //仓库 distributionStockListEntity.setWarehouse(Long.parseLong( distributionStockArticleEntity.getWarehouse()) ); //仓库
distributionStockListEntity.setMarketId(Long.parseLong("456456465")); //商场 distributionStockListEntity.setMarketId(Long.parseLong("456456465")); //商场
distributionStockListEntity.setCargoUnit("货物单位"); //货物单位 distributionStockListEntity.setCargoUnit("货物单位"); //货物单位

8
blade-service/logpm-factory/src/main/java/com/logpm/factory/pan/service/impl/PanFactoryDataServiceImpl.java

@ -348,7 +348,9 @@ public class PanFactoryDataServiceImpl implements IPanFactoryDataService {
Map<String, String> supplyData = advanceDetailClient.getSupplyData(unitNo); Map<String, String> supplyData = advanceDetailClient.getSupplyData(unitNo);
String destinationWarehouse = supplyData.get("destinationWarehouse");//目的仓名称 String destinationWarehouse = supplyData.get("destinationWarehouse");//目的仓名称
String takeCompany = supplyData.get("takeCompany"); String takeCompany = supplyData.get("takeCompany");
// 查询数据对应的仓库名称
BasicdataWarehouseEntity basicdataWarehouseEntity = basicdataWarehouseClient.findByName(destinationWarehouse); BasicdataWarehouseEntity basicdataWarehouseEntity = basicdataWarehouseClient.findByName(destinationWarehouse);
//判断新系统是否有这条订单数据 //判断新系统是否有这条订单数据
@ -363,7 +365,10 @@ public class PanFactoryDataServiceImpl implements IPanFactoryDataService {
distributionStockArticleEntity.setOrderSelfNumbering(orderSelfNum); distributionStockArticleEntity.setOrderSelfNumbering(orderSelfNum);
distributionStockArticleEntity.setMallName(takeCompany); distributionStockArticleEntity.setMallName(takeCompany);
distributionStockArticleEntity.setDescriptionGoods(advanceEntity.getFirstPackName()); distributionStockArticleEntity.setDescriptionGoods(advanceEntity.getFirstPackName());
distributionStockArticleEntity.setWarehouse(destinationWarehouse); distributionStockArticleEntity.setWarehouse(destinationWarehouse);
distributionStockArticleEntity.setWarehouseId(distributionStockArticleEntity.getId());
distributionStockArticleEntity.setWarehouseEntryTime(date); distributionStockArticleEntity.setWarehouseEntryTime(date);
distributionStockArticleEntity.setTotalNumber(total); distributionStockArticleEntity.setTotalNumber(total);
distributionStockArticleEntity.setHandQuantity(0); distributionStockArticleEntity.setHandQuantity(0);
@ -433,10 +438,13 @@ public class PanFactoryDataServiceImpl implements IPanFactoryDataService {
DistributionParcelListEntity entity = new DistributionParcelListEntity(); DistributionParcelListEntity entity = new DistributionParcelListEntity();
BeanUtil.copyProperties(vo,entity); BeanUtil.copyProperties(vo,entity);
entity.setConditions(1); entity.setConditions(1);
entity.setWarehouse(distributionStockArticleEntity.getWarehouse());
entity.setWarehouseId(distributionStockArticleEntity.getId());
entity.setStockArticleId(id); entity.setStockArticleId(id);
// 绑定部门--仓库 // 绑定部门--仓库
entity.setCreateDept(Long.parseLong(basicdataWarehouseEntity.getDepartment())); entity.setCreateDept(Long.parseLong(basicdataWarehouseEntity.getDepartment()));
entity.setCreateUser(1123598821738675201L); entity.setCreateUser(1123598821738675201L);
entity.setTenantId(TenantNum.HUITONGCODE);
boolean b = distributionParcelListClient.add(entity); boolean b = distributionParcelListClient.add(entity);
if(!b){ if(!b){
logger.warn("#################handleDataToPlatform: 保存包件信息失败 orderSelfNum={}",orderSelfNum); logger.warn("#################handleDataToPlatform: 保存包件信息失败 orderSelfNum={}",orderSelfNum);

Loading…
Cancel
Save