|
|
@@ -485,7 +485,11 @@ public class CmsGoodsDonSpecServiceImpl extends ServiceImpl<GoodsDonSpecMapper,
|
|
|
sku.setSpecVal(StrUtil.replace(sku.getSpecVal(), dbNode.getValue(), e.getValue()));
|
|
|
}
|
|
|
if (isUpdatePrice.get()) {
|
|
|
- sku.setPrice(sku.getPrice().subtract(dbNode.getPrice()).add(e.getPrice()));
|
|
|
+ if (specIdsList.size() == 1) {
|
|
|
+ sku.setPrice(e.getPrice());
|
|
|
+ } else {
|
|
|
+ sku.setPrice(sku.getPrice().subtract(dbNode.getPrice()).add(e.getPrice()));
|
|
|
+ }
|
|
|
}
|
|
|
if (isUpdateBenefits.get()) {
|
|
|
if (StrUtil.isEmpty(e.getBenefitsList())) {
|