/** * Copyright 2018 人人开源 https://www.renren.io *

* This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. *

* This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. *

* You should have received a copy of the GNU General Public License * along with this program. If not, see . */ package com.epmet.dao; import com.epmet.commons.mybatis.dao.BaseDao; import com.epmet.commons.tools.utils.Result; import com.epmet.dto.UserRoleDTO; import com.epmet.dto.form.GetRoleKeyListFormDTO; import com.epmet.dto.form.UserRoleFormDTO; import com.epmet.dto.result.UserRoleResultDTO; import com.epmet.entity.UserRoleEntity; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Param; import java.util.List; /** * 用户角色关系表 * * @author generator generator@elink-cn.com * @since v1.0.0 2020-03-30 */ @Mapper public interface UserRoleDao extends BaseDao { /** * @Description 根据用户Id、来源app、客户Id查询用户角色 * @Param userRoleFormDTO * @return UserRoleResultDTO * @Author wangc * @Date 2020.03.30 15:35 **/ List getUserRoleInfo(UserRoleFormDTO userRoleFormDTO); /** * @Description 根据用户Id、网格Id、客户Id查询用户角色key列表 * @param userRoleFormDTO * @return List * @author wangc * @date 2020.05.22 19:44 **/ List getUserRoleList(UserRoleFormDTO userRoleFormDTO); /** * 根据用户ID,查询用户所属角色: 多种身份 * * @param userId * @return java.util.List * @Author zhangyong * @Date 14:24 2020-07-23 **/ List getUserRoleInfoByUserId(@Param("userId") String userId); /** * @param formDTO * @return * @Author sun * @Description 居民端-查询用户角色key列表 **/ List selectUserRoleKeyList(GetRoleKeyListFormDTO formDTO); }