!295 更新健康信息备注优化

Merge pull request !295 from 德仔/xzj
This commit is contained in:
德仔 2021-06-25 03:45:42 +00:00 committed by Gitee
commit c6afa9b542

View File

@ -112,7 +112,7 @@ public class SysCustomerHealthyServiceImpl implements ISysCustomerHealthyService
@Override
public int updateSysCustomerHealthy(SysCustomerHealthy sysCustomerHealthy){
int rows = sysCustomerHealthyMapper.updateSysCustomerHealthy(sysCustomerHealthy);
if(rows > 0){
if(rows > 0 && sysCustomerHealthy.getHealthyExtend() != null && sysCustomerHealthy.getHealthyExtend().getId() != null){
rows = sysCustomerHealthyExtendedMapper.updateSysCustomerHealthyExtended(sysCustomerHealthy.getHealthyExtend());
}
return rows;