更新健康信息备注优化

This commit is contained in:
xiezhijun 2021-06-25 11:39:36 +08:00
parent b24571fe40
commit 3db6a07910

@ -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;