|
|
@@ -461,8 +461,8 @@ public class CmsGoodsDonSpecServiceImpl extends ServiceImpl<GoodsDonSpecMapper,
|
|
|
List<Integer> specIdsList = Jsons.parseList(sku.getSpecIds(), Integer.class);
|
|
|
if (specIdsList.contains(dbNode.getId())) {
|
|
|
if (isUpdateTitle.get()) {
|
|
|
- sku.setSpecJson(sku.getSpecJson().replaceAll(dbNode.getValue(), e.getValue()));
|
|
|
- sku.setSpecVal(sku.getSpecVal().replaceAll(dbNode.getValue(), e.getValue()));
|
|
|
+ sku.setSpecJson(StrUtil.replace(sku.getSpecJson(), dbNode.getValue(), e.getValue()));
|
|
|
+ sku.setSpecVal(StrUtil.replace(sku.getSpecVal(), dbNode.getValue(), e.getValue()));
|
|
|
}
|
|
|
if (isUpdatePrice.get()) {
|
|
|
sku.setPrice(sku.getPrice().subtract(dbNode.getPrice()).add(e.getPrice()));
|