录入采购、销售、零售单据的时候自动更新对应商品的价格

This commit is contained in:
季圣华
2022-09-18 18:51:36 +08:00
parent a3e58fe757
commit d52dc4d06e
2 changed files with 28 additions and 1 deletions

View File

@@ -312,7 +312,7 @@ public class MaterialExtendService {
MaterialExtend materialExtend = JSONObject.parseObject(obj.toJSONString(), MaterialExtend.class);
int result=0;
try{
result = materialExtendMapper.insertSelective(materialExtend);
result = materialExtendMapper.updateByPrimaryKeySelective(materialExtend);
}catch(Exception e){
JshException.writeFail(logger, e);
}