You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
687 B
26 lines
687 B
2 months ago
|
package com.water.watersys.mapper;
|
||
|
|
||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||
|
import com.water.watersys.model.domain.RoleSys;
|
||
|
import org.apache.ibatis.annotations.Mapper;
|
||
|
import org.apache.ibatis.annotations.Select;
|
||
|
|
||
|
import java.util.List;
|
||
|
|
||
|
/**
|
||
|
* @author mac
|
||
|
* @description 针对表【role_sys】的数据库操作Mapper
|
||
|
* @createDate 2025-04-13 10:57:50
|
||
|
* @Entity generator.domain.RoleSys
|
||
|
*/
|
||
|
@Mapper
|
||
|
public interface RoleSysMapper extends BaseMapper<RoleSys> {
|
||
|
|
||
|
@Select("select b.id, b.role_name from user_role_sys a left join role_sys b on a.role_id = b.id where a.user_id = #{loginId}")
|
||
|
List<RoleSys> getRoleList(Object loginId);
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
|