高血糖、高血压调查问卷
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -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>
|
Reference in New Issue
Block a user