| | |
| | | -- d.id as device_id, |
| | | -- d.device_name |
| | | , sppc.user_id |
| | | , sppc.id |
| | | , bu.real_name as userName |
| | | FROM |
| | | ywxt.sg_project_info pro |
| | | LEFT JOIN ywxt.sg_device d ON pro.id = d.program_id |
| | | Left JOIN ywxt.sg_gx_config sgc ON d.device_type = sgc.gx_device_type |
| | | left join ywxt.blade_role ro on ro.id = sgc.role_id |
| | | left join ywxt.sg_project_person_config sppc on sppc.rold_id = sgc.role_id |
| | | left join ywxt.sg_project_person_config sppc on sgc.role_id = sppc.rold_id and sppc.program_id = pro.id |
| | | left join ywxt.blade_user bu on sppc.user_id = bu.id |
| | | where 1=1 and pro.id = #{dto.projectId} |
| | | </select> |
| | | <select id="getUserByRole" resultType="java.util.Map"> |
| | | select id,real_name as realName from ywxt.blade_user where role_id = #{roleId} |
| | | </select> |
| | | </mapper> |