|
@@ -348,10 +348,14 @@ public class ProductInfoServiceImpl extends ServiceImpl<ProductInfoMapper, Produ
|
|
|
if (ObjectUtil.isEmpty(productInfo)) {
|
|
|
throw new ServiceException("无法查询到改产品的产品信息,产品id" + productInfoDto.getId());
|
|
|
}
|
|
|
+
|
|
|
ProductInfoEhsdJson productInfoEhsdJson = JSONObject.parseObject(productInfo.getEhsdJson(), ProductInfoEhsdJson.class);
|
|
|
productInfoEhsdJson.setPrice(newProductInfoEhsdJson.getPrice());
|
|
|
+ productInfoEhsdJson.setCurrency(newProductInfoEhsdJson.getCurrency());
|
|
|
productInfoEhsdJson.setCostPrice(newProductInfoEhsdJson.getCostPrice());
|
|
|
+ productInfoEhsdJson.setCostCurrency(newProductInfoEhsdJson.getCostCurrency());
|
|
|
productInfoEhsdJson.setNetWeight(newProductInfoEhsdJson.getNetWeight());
|
|
|
+
|
|
|
productInfo.setRemark(productInfoDto.getRemark());
|
|
|
productInfo.setEhsdJson(JSONObject.toJSONString(productInfoEhsdJson,JSONWriter.Feature.WriteLongAsString));
|
|
|
this.updateById(productInfo);
|