解决计量单位更新的bug

This commit is contained in:
季圣华
2021-12-01 23:53:45 +08:00
parent 5df31c1e45
commit 95561f8b86
3 changed files with 20 additions and 0 deletions

View File

@@ -120,6 +120,12 @@ public class UnitService {
try{
parseNameByUnit(unit);
result=unitMapper.updateByPrimaryKeySelective(unit);
if(unit.getRatioTwo()==null) {
unitMapperEx.updateRatioTwoById(unit.getId());
}
if(unit.getRatioThree()==null) {
unitMapperEx.updateRatioThreeById(unit.getId());
}
logService.insertLog("计量单位",
new StringBuffer(BusinessConstants.LOG_OPERATION_TYPE_EDIT).append(unit.getName()).toString(), request);
}catch(Exception e){