高血糖、高血压调查问卷

This commit is contained in:
xiezhijun
2021-06-24 00:52:28 +08:00
parent 836fe20bf0
commit fb96fa6cec
8 changed files with 164 additions and 68 deletions

View File

@ -111,7 +111,11 @@ public class SysCustomerHealthyServiceImpl implements ISysCustomerHealthyService
*/
@Override
public int updateSysCustomerHealthy(SysCustomerHealthy sysCustomerHealthy){
return sysCustomerHealthyMapper.updateSysCustomerHealthy(sysCustomerHealthy);
int rows = sysCustomerHealthyMapper.updateSysCustomerHealthy(sysCustomerHealthy);
if(rows > 0){
rows = sysCustomerHealthyExtendedMapper.updateSysCustomerHealthyExtended(sysCustomerHealthy.getHealthyExtend());
}
return rows;
}
/**

View File

@ -557,7 +557,7 @@
</resultMap>
<select id="getHealthyExtendedByHealthyId" parameterType="Long" resultMap="HealthyExtendedResult">
select waist, hipline, eat_fruits_message, long_eat_drug_message, blood_sugar_message, depressed_state_message, blood_pressure_message, anxiety_state_message from sys_customer_healthy_extended where del_flag = 0 and healthy_id = #{id} limit 1
select id, healthy_id, waist, hipline, eat_fruits_message, long_eat_drug_message, blood_sugar_message, depressed_state_message, blood_pressure_message, anxiety_state_message from sys_customer_healthy_extended where del_flag = 0 and healthy_id = #{id} limit 1
</select>
</mapper>