Compare commits
2 Commits
2900d77967
...
07c63f3910
| Author | SHA1 | Date |
|---|---|---|
|
|
07c63f3910 | |
|
|
3c05712b9c |
|
|
@ -37,7 +37,9 @@ public class HealthPersonInfoServiceImpl implements IHealthPersonInfoService {
|
||||||
@Override
|
@Override
|
||||||
public HealthPersonInfo selectHealthPersonInfoById(Long id) {
|
public HealthPersonInfo selectHealthPersonInfoById(Long id) {
|
||||||
HealthPersonInfo vo=healthPersonInfoMapper.selectHealthPersonInfoById(id);
|
HealthPersonInfo vo=healthPersonInfoMapper.selectHealthPersonInfoById(id);
|
||||||
vo.setMobile(SM4EncryptUtils.sm4Decrypt(vo.getMobile()==null?"":vo.getMobile()));
|
if(vo!=null){
|
||||||
|
vo.setMobile(SM4EncryptUtils.sm4Decrypt(vo.getMobile()==null?"":vo.getMobile()));
|
||||||
|
}
|
||||||
return vo;
|
return vo;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -25,6 +25,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
<result property="createTime" column="create_time" />
|
<result property="createTime" column="create_time" />
|
||||||
<result property="updateBy" column="update_by" />
|
<result property="updateBy" column="update_by" />
|
||||||
<result property="updateTime" column="update_time" />
|
<result property="updateTime" column="update_time" />
|
||||||
|
<result property="orgFullName" column="dept_name" />
|
||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
<sql id="selectHealthPersonInfoVo">
|
<sql id="selectHealthPersonInfoVo">
|
||||||
|
|
@ -135,7 +136,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
c.heart_rate,
|
c.heart_rate,
|
||||||
c.blood_oxygen,
|
c.blood_oxygen,
|
||||||
c.uric_acid,
|
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_name ORDER BY d.chronic_id desc) AS chronic_names,
|
||||||
GROUP_CONCAT(d.chronic_id ORDER BY d.chronic_id desc) AS chronic_ids
|
GROUP_CONCAT(d.chronic_id ORDER BY d.chronic_id desc) AS chronic_ids
|
||||||
from sys_user a
|
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_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_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 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
|
where a.user_id = #{userId} and hc.chronic_id is not null
|
||||||
group by a.user_id,
|
group by a.user_id,
|
||||||
a.user_name,
|
a.user_name,
|
||||||
|
|
@ -177,7 +179,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
c.heart_rate,
|
c.heart_rate,
|
||||||
c.blood_oxygen,
|
c.blood_oxygen,
|
||||||
c.uric_acid,
|
c.uric_acid,
|
||||||
c.blood_pressure
|
c.blood_pressure,sd.dept_id
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<insert id="insertHealthPersonInfo" parameterType="com.bonus.canteen.core.health.domain.HealthPersonInfo">
|
<insert id="insertHealthPersonInfo" parameterType="com.bonus.canteen.core.health.domain.HealthPersonInfo">
|
||||||
|
|
|
||||||
|
|
@ -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="medicalMechanism != null and medicalMechanism != ''"> and medical_mechanism = #{medicalMechanism}</if>
|
||||||
<if test="medicalTemplateId != null "> and medical_template_id = #{medicalTemplateId}</if>
|
<if test="medicalTemplateId != null "> and medical_template_id = #{medicalTemplateId}</if>
|
||||||
</where>
|
</where>
|
||||||
|
order by create_time desc
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectHealthPersonMedicalReportById" parameterType="Long" resultMap="HealthPersonMedicalReportResult">
|
<select id="selectHealthPersonMedicalReportById" parameterType="Long" resultMap="HealthPersonMedicalReportResult">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue