法规清单-update

This commit is contained in:
wangzhijiang
2022-05-30 10:41:39 +08:00
parent 4f68733643
commit 993e47ba48
@@ -1386,10 +1386,7 @@ public class ProjectLawsInventoryEOServiceImpl extends ServiceImpl<ProjectLawsIn
if(StringUtils.equals(operatorType,OperatorTypeEnum.UPDATE_STATUS.getValue())){
ProjectLawsInventoryEO projectLawsInventoryEO = JSONObject.parseObject(jsonObject.toString(), ProjectLawsInventoryEO.class);
//this.baseMapper.updateById(projectLawsInventoryEO);
QueryWrapper<ProjectLawsInventoryEO> lawsInventoryUpdateWrapper = new QueryWrapper<>();
lawsInventoryUpdateWrapper.lambda().eq(ProjectLawsInventoryEO::getId,projectLawsInventoryEO.getId());
this.baseMapper.update(projectLawsInventoryEO,lawsInventoryUpdateWrapper);
this.baseMapper.updateById(projectLawsInventoryEO);
}
if(StringUtils.equals(operatorType,OperatorTypeEnum.ADD.getValue())){