首页 > TAG信息列表 > userInfoList
c# GroupBy分组 去重
/// <summary>/// 根据 RoleID And SectionStr 获取 UserInfoList/// </summary>/// <returns></returns>public ActionResult GetUserDataByRoleAndSection(UserInfoViewModel viewModel){ IList<UserInfo> userinfolist = _service.GetUserByRole线程池的使用示例-批量查询
1.使用countDown 1 public Map<Long, User> batchQueryUserInfo(List<Long> userIds) { 2 List<List<Long>> userIdPartitions = Lists.partition(userIds, 50); 3 List<User> userList = new ArrayList<>(); 4 5 CountMybatis Plus 查询方法记录
@Test public void contextLoads() { } @Autowired private UserInfoMapper userInfoMapper; /** * 普通查询 */ @Test public void selectById() { UserInfo userInfo = userInfoMapper.selectById(123); System.out.println(userInfo); } /** * 批量查询 */