Commit 0c126d5d authored by Java-刘 彧阳's avatar Java-刘 彧阳

限制批量查询用户的条数,最多500条

parent cb6c0c32
...@@ -83,7 +83,7 @@ public class InnerController implements IBaseController { ...@@ -83,7 +83,7 @@ public class InnerController implements IBaseController {
} }
List<Long> userIds = JSONObject.parseObject(userIdsString, new TypeReference<List<Long>>() { List<Long> userIds = JSONObject.parseObject(userIdsString, new TypeReference<List<Long>>() {
}); });
if(CollectionUtils.isNotEmpty(userIds) && userIds.size()<=500) { if(!CollectionUtils.isEmpty(userIds) && userIds.size()<=500) {
Map<Long, String> userIdAndPhoneMap = userService.findPhoneByIdsInDb(userIds); Map<Long, String> userIdAndPhoneMap = userService.findPhoneByIdsInDb(userIds);
return JsonResult.buildSuccessResult("", userIdAndPhoneMap); return JsonResult.buildSuccessResult("", userIdAndPhoneMap);
}else { }else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment