|
@@ -14,7 +14,8 @@ import java.util.List;
|
|
|
@MyBatisMapper
|
|
|
public interface RoleMapper extends BaseMapper<Role> {
|
|
|
|
|
|
- @Select("select r.id, r.code, r.name from role r left join user_role ur " +
|
|
|
+ @Select("select r.id, r.code, r.name, r.company_id as companyId " +
|
|
|
+ "from role r left join user_role ur " +
|
|
|
"on r.id = ur.role_id " +
|
|
|
"where ur.user_id = #{userId} " +
|
|
|
"and r.code = #{roleCode}")
|