|
|
@@ -769,7 +769,7 @@ public class ProductBaseServiceImpl extends ServiceImpl<ProductBaseMapper, Produ
|
|
|
|
|
|
// 映射扩展字段
|
|
|
extend.setSupplierNo(bo.getSupplierNo());
|
|
|
- extend.setPromotionTitle(extend.getPromotionTitle());
|
|
|
+ extend.setPromotionTitle(bo.getPromotionTitle());
|
|
|
extend.setInvoiceName(bo.getInvoiceName());
|
|
|
extend.setSpecificationsCode(bo.getSpecificationsCode());
|
|
|
extend.setInvoiceSpecs(bo.getInvoiceSpecs());
|
|
|
@@ -804,7 +804,7 @@ public class ProductBaseServiceImpl extends ServiceImpl<ProductBaseMapper, Produ
|
|
|
priceInventory.setMemberPrice(bo.getMemberPrice());
|
|
|
priceInventory.setMinSellingPrice(bo.getMinSellingPrice());
|
|
|
priceInventory.setPurchasingPrice(bo.getPurchasingPrice());
|
|
|
- priceInventory.setMaxPurchasePrice(bo.getEstimatedPurchasePrice());
|
|
|
+ priceInventory.setMaxPurchasePrice(bo.getMaxPurchasePrice());
|
|
|
priceInventory.setCurrency(bo.getCurrency());
|
|
|
priceInventory.setTaxRate(bo.getTaxRate());
|
|
|
priceInventory.setMinOrderQuantity(bo.getMinOrderQuantity());
|
|
|
@@ -889,8 +889,12 @@ public class ProductBaseServiceImpl extends ServiceImpl<ProductBaseMapper, Produ
|
|
|
// 如果没有传价格相关信息,不做任何操作
|
|
|
if (bo.getMarketPrice() == null && bo.getMemberPrice() == null &&
|
|
|
bo.getMinSellingPrice() == null && bo.getPurchasingPrice() == null &&
|
|
|
- bo.getEstimatedPurchasePrice() == null && bo.getTotalInventory() == null &&
|
|
|
- bo.getNowInventory() == null && bo.getVirtualInventory() == null) {
|
|
|
+ bo.getMaxPurchasePrice() == null && bo.getTotalInventory() == null &&
|
|
|
+ bo.getNowInventory() == null && bo.getVirtualInventory() == null &&
|
|
|
+ bo.getTaxRate() == null && bo.getTaxationId() == null &&
|
|
|
+ bo.getSupplyPrice() == null && bo.getSupplyValidityPeriod() == null &&
|
|
|
+ bo.getSupplyPostStatus() == null
|
|
|
+ ) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
@@ -903,7 +907,7 @@ public class ProductBaseServiceImpl extends ServiceImpl<ProductBaseMapper, Produ
|
|
|
if (bo.getPurchasingPrice() != null) existing.setPurchasingPrice(bo.getPurchasingPrice());
|
|
|
if (bo.getTaxRate() != null) existing.setTaxRate(bo.getTaxRate());
|
|
|
if (bo.getTaxationId() != null) existing.setTaxationId(bo.getTaxationId());
|
|
|
- if (bo.getEstimatedPurchasePrice() != null) existing.setMaxPurchasePrice(bo.getEstimatedPurchasePrice());
|
|
|
+ if (bo.getMaxPurchasePrice() != null) existing.setMaxPurchasePrice(bo.getMaxPurchasePrice());
|
|
|
if(bo.getTotalInventory() != null) existing.setTotalInventory(bo.getVirtualInventory()+existing.getNowInventory());
|
|
|
if(bo.getNowInventory() != null) existing.setNowInventory(bo.getNowInventory());
|
|
|
if(bo.getVirtualInventory() != null) existing.setVirtualInventory(bo.getVirtualInventory());
|