护理员APP查询个人信息接口修改

This commit is contained in:
纪寒 2023-12-06 16:28:38 +08:00
parent 880a33db55
commit 37bf823f0b

View File

@ -398,21 +398,21 @@
nsp.create_by, nsp.create_by,
nsp.create_time, nsp.create_time,
nsp.update_by, nsp.update_by,
nsp.update_time, nsp.update_time
nspc.id certificateId, -- nspc.id certificateId,
nspc.certificate_name, -- nspc.certificate_name,
nspc.certificate_url, -- nspc.certificate_url,
nspc.sort -- nspc.sort
FROM FROM
nurse_station_person nsp nurse_station_person nsp
LEFT JOIN sys_user su ON su.phonenumber = nsp.phone LEFT JOIN sys_user su ON su.phonenumber = nsp.phone
LEFT JOIN nurse_station_person_certificate nspc ON nspc.nurse_station_person_id = nsp.id -- LEFT JOIN nurse_station_person_certificate nspc ON nspc.nurse_station_person_id = nsp.id
<where> <where>
<if test="nursePersonId != null and nursePersonId != ''"> <if test="nursePersonId != null and nursePersonId != ''">
and nsp.id = #{nursePersonId} and nsp.id = #{nursePersonId}
</if> </if>
and su.del_flag = 0 and su.del_flag = 0
</where> </where>
ORDER BY nspc.sort -- ORDER BY nspc.sort
</select> </select>
</mapper> </mapper>