| | |
| | | <select id="selectByUserId" resultType="cn.gistack.sm.sg.DO.SgProjectPersonConfigDO"> |
| | | select * from YWXT.SG_PROJECT_PERSON_CONFIG where USER_ID = #{userId} |
| | | </select> |
| | | <select id="getRoleList" resultType="java.lang.String"> |
| | | SELECT |
| | | <!-- pro.id, |
| | | pro.project_name, |
| | | sgc.gx_device_type as deviceType, |
| | | d.id as deviceId, --> |
| | | sgc.role_id as roleId |
| | | 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 |
| | | where 1=1 |
| | | <if test="dto.projectId != null"> |
| | | and pro.id = #{dto.projectId} |
| | | </if> |
| | | </select> |
| | | </mapper> |