Browse Source

增加订单收货单位修改

dist.1.3.0
汤建军 7 months ago
parent
commit
9a8c2a1e7b
  1. 10
      blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/entity/DistributionStockArticleEntity.java
  2. 5
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/controller/DistributionStockArticleController.java

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

@ -475,6 +475,8 @@ public class DistributionStockArticleEntity extends TenantEntity {
String consigneePerson = distributionStockArticleEntity.getConsigneePerson();
String consigneeMobile = distributionStockArticleEntity.getConsigneeMobile();
String consigneeAddress = distributionStockArticleEntity.getConsigneeAddress();
String consigneeUnit = distributionStockArticleEntity.getConsigneeUnit();
String mallName = distributionStockArticleEntity.getMallName();
StringBuilder stringBuilder = new StringBuilder();
boolean nameFlag = ObjectUtil.equals(this.customerName, customerName);
@ -501,6 +503,14 @@ public class DistributionStockArticleEntity extends TenantEntity {
if(!consigneeAddressFlag){
stringBuilder.append("运单收货地址:["+this.consigneeAddress+"]修改为["+consigneeAddress+"];");
}
boolean consigneeUnitFlag = ObjectUtil.equals(this.consigneeUnit, consigneeUnit);
if(!consigneeUnitFlag){
stringBuilder.append("运单收货单位:["+this.consigneeUnit+"]修改为["+consigneeUnit+"];");
}
boolean mallNameFlag = ObjectUtil.equals(this.mallName, mallName);
if(!mallNameFlag){
stringBuilder.append("运单收货单位:["+this.mallName+"]修改为["+mallName+"];");
}
return stringBuilder.toString();
}

5
blade-service/logpm-distribution/src/main/java/com/logpm/distribution/controller/DistributionStockArticleController.java

@ -391,10 +391,13 @@ public class DistributionStockArticleController extends BladeController {
newStockArticle.setConsigneePerson(consigneePerson);
newStockArticle.setConsigneeMobile(stockArticleEntity.getConsigneeMobile());
newStockArticle.setConsigneeAddress(stockArticleEntity.getConsigneeAddress());
}else{
}else if (StringUtil.isNotBlank(customerName)){
newStockArticle.setCustomerName(customerName);
newStockArticle.setCustomerTelephone(stockArticleEntity.getCustomerTelephone());
newStockArticle.setCustomerAddress(stockArticleEntity.getCustomerAddress());
}else {
newStockArticle.setMallName(customerName);
newStockArticle.setConsigneeUnit(customerName);
}
String content = oldStockArticle.compareCustomerInfo(newStockArticle);
if(StringUtil.isNotBlank(content)){

Loading…
Cancel
Save