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

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

parent cb6c0c32
......@@ -83,7 +83,7 @@ public class InnerController implements IBaseController {
}
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);
return JsonResult.buildSuccessResult("", userIdAndPhoneMap);
}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