| | |
| | | and pro.id = #{dto.projectId} |
| | | </if> |
| | | </select> |
| | | <select id="getList" resultType="cn.gistack.sm.sg.DO.SgProjectRolePersonV0"> |
| | | SELECT |
| | | DISTINCT |
| | | sgc.role_id as roleId, |
| | | pro.id as projectId, |
| | | pro.project_name, |
| | | ro.role_name |
| | | -- d.id as device_id, |
| | | -- d.device_name |
| | | , sppc.user_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.blade_user bu on sppc.user_id = bu.id |
| | | where 1=1 and pro.id = #{dto.projectId} |
| | | </select> |
| | | </mapper> |