add store
This commit is contained in:
@@ -3,8 +3,8 @@ package com.imyeyu.api.modules.user.mapper;
|
||||
import com.imyeyu.api.bean.ModuleCode;
|
||||
import com.imyeyu.api.modules.user.entity.Role;
|
||||
import com.imyeyu.spring.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
@@ -15,9 +15,7 @@ import java.util.List;
|
||||
*/
|
||||
public interface RoleMapper extends BaseMapper<Role, String> {
|
||||
|
||||
List<Role> selectByIdList(List<String> idList);
|
||||
List<Role> selectByIdList(Collection<String> idList);
|
||||
|
||||
List<Role> selectByModuleCodeAndCodeList(@Param("moduleCode") ModuleCode moduleCode, @Param("codeList") List<String> codeList);
|
||||
|
||||
List<Role> selectByModuleCode(@Param("moduleCode") ModuleCode moduleCode);
|
||||
List<Role> selectByModuleCode(ModuleCode moduleCode);
|
||||
}
|
||||
|
||||
@@ -4,6 +4,7 @@ import com.imyeyu.api.modules.user.entity.User;
|
||||
import com.imyeyu.spring.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Select;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
@@ -32,5 +33,5 @@ public interface UserMapper extends BaseMapper<User, String> {
|
||||
* @param idList 用户 ID 列表
|
||||
* @return 用户列表
|
||||
*/
|
||||
List<User> listByIdList(List<String> idList);
|
||||
List<User> listByIdList(Collection<String> idList);
|
||||
}
|
||||
|
||||
@@ -2,7 +2,9 @@ package com.imyeyu.api.modules.user.mapper;
|
||||
|
||||
import com.imyeyu.api.modules.user.entity.UserRole;
|
||||
import com.imyeyu.spring.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
@@ -15,5 +17,7 @@ public interface UserRoleMapper extends BaseMapper<UserRole, String> {
|
||||
|
||||
void createBatch(List<UserRole> userRoleList);
|
||||
|
||||
List<UserRole> selectByUserIdList(@Param("userIdList") Collection<String> userIdList);
|
||||
|
||||
void deleteByRoleIdList(String userId, List<String> roleIdList);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user