Commit b4560207 authored by Shen's avatar Shen

1. api查询问题修复

parent 5103f830
......@@ -25,14 +25,14 @@
<select id="getOrgUserByUserId" resultType="io.hmit.dto.OrgUserInfoDTO">
SELECT tu.id, tu.username, tu.mobile, po.name, po.icon, po.description, po.service_area
FROM tb_user tu, pension_organization_user pou, pension_organization po
WHERE tu.id = pou.user_id AND po.id = pou.organization_id AND tu.id = #{userId};
WHERE tu.id = pou.service_id AND po.id = pou.organization_id AND tu.id = #{userId};
</select>
<select id="getServiceUserByUserId" resultType="io.hmit.dto.ServiceUserInfoDTO">
SELECT tu.id, tu.username, tu.mobile, tu.gender, tu.address_area, tu.address, tu.birthday,
po.id AS orgId, po.name AS orgName, po.service_area
FROM tb_user tu, pension_organization_user pou, pension_organization po
WHERE tu.id = pou.user_id AND po.id = pou.organization_id AND tu.id = #{userId};
WHERE tu.id = pou.service_id AND po.id = pou.organization_id AND tu.id = #{userId};
</select>
<select id="getUserRoleInfo" resultType="io.hmit.modules.serviceOrder.dto.UserRoleInfoDTO">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment