[新增] 权限申请流程 及 工作台的接口 开发完毕
This commit is contained in:
@@ -1,14 +1,13 @@
|
||||
package com.adc.da.sys.dao.mysql;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.adc.da.sys.vo.UserRoleVO;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import com.adc.da.base.dao.BaseDao;
|
||||
import com.adc.da.sys.entity.RoleEO;
|
||||
import com.adc.da.sys.entity.UserRoleEO;
|
||||
import com.adc.da.sys.vo.UserRoleVO;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* <br>
|
||||
@@ -116,4 +115,6 @@ public interface RoleEODao extends BaseDao<RoleEO> {
|
||||
IPage<UserRoleVO> getUserInfoPageByRoleId(IPage page,String roleId);
|
||||
|
||||
Long getUserCountByRoleId(@Param("roleId") String roleId);
|
||||
|
||||
List<RoleEO> selectByuserId(@Param("userId") String userId);
|
||||
}
|
||||
|
||||
@@ -316,6 +316,12 @@
|
||||
<select id="getpidByMenuId" parameterType="string" resultType="string">
|
||||
select parent_id from ts_menu where id=#{id}
|
||||
</select>
|
||||
<select id="selectByuserId" resultType="com.adc.da.sys.entity.RoleEO">
|
||||
SELECT * from ts_Role r
|
||||
LEFT JOIN tr_user_role ur on r.id = ur.role_id
|
||||
where r.del_flag = 0
|
||||
and ur.user_id =#{userId}
|
||||
</select>
|
||||
|
||||
|
||||
</mapper>
|
||||
|
||||
Reference in New Issue
Block a user