Compare commits

...

2 Commits

Author SHA1 Message Date
skjia 07c63f3910 Merge branch 'master' of http://192.168.0.75:3000/bonus/Bonus-Cloud-JYY-Smart-Canteen 2025-07-18 15:53:57 +08:00
skjia 3c05712b9c jsk bug修改 2025-07-18 15:53:41 +08:00
3 changed files with 8 additions and 3 deletions

View File

@ -37,7 +37,9 @@ public class HealthPersonInfoServiceImpl implements IHealthPersonInfoService {
@Override
public HealthPersonInfo selectHealthPersonInfoById(Long id) {
HealthPersonInfo vo=healthPersonInfoMapper.selectHealthPersonInfoById(id);
if(vo!=null){
vo.setMobile(SM4EncryptUtils.sm4Decrypt(vo.getMobile()==null?"":vo.getMobile()));
}
return vo;
}

View File

@ -25,6 +25,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
<result property="orgFullName" column="dept_name" />
</resultMap>
<sql id="selectHealthPersonInfoVo">
@ -135,7 +136,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
c.heart_rate,
c.blood_oxygen,
c.uric_acid,
c.blood_pressure,
c.blood_pressure,sd.dept_name,
GROUP_CONCAT(d.chronic_name ORDER BY d.chronic_id desc) AS chronic_names,
GROUP_CONCAT(d.chronic_id ORDER BY d.chronic_id desc) AS chronic_ids
from sys_user a
@ -143,6 +144,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
left join health_person_body_record c on a.user_id = c.user_id and c.if_latest = 1
left join health_person_info_chronic d on a.user_id = d.user_id
left join health_chronic hc on d.chronic_id=hc.chronic_id
left join sys_dept sd on a.dept_id = sd.dept_id
where a.user_id = #{userId} and hc.chronic_id is not null
group by a.user_id,
a.user_name,
@ -177,7 +179,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
c.heart_rate,
c.blood_oxygen,
c.uric_acid,
c.blood_pressure
c.blood_pressure,sd.dept_id
</select>
<insert id="insertHealthPersonInfo" parameterType="com.bonus.canteen.core.health.domain.HealthPersonInfo">

View File

@ -29,6 +29,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="medicalMechanism != null and medicalMechanism != ''"> and medical_mechanism = #{medicalMechanism}</if>
<if test="medicalTemplateId != null "> and medical_template_id = #{medicalTemplateId}</if>
</where>
order by create_time desc
</select>
<select id="selectHealthPersonMedicalReportById" parameterType="Long" resultMap="HealthPersonMedicalReportResult">