记得上下班打卡 | git大法好,push需谨慎

Commit 18206875 authored by zhanggb's avatar zhanggb

fix:添加入场人+上限;

parent 00e83554
...@@ -92,6 +92,10 @@ public class AdamEntersController { ...@@ -92,6 +92,10 @@ public class AdamEntersController {
if (any.isPresent()) { if (any.isPresent()) {
return ResponseDto.failure(ErrorMapping.get("10019")); return ResponseDto.failure(ErrorMapping.get("10019"));
} }
if (vos.size() >= 10) {
return ResponseDto.failure(ErrorMapping.get("10025"));
}
} }
String entersId = adamEntersService.add(parameter); String entersId = adamEntersService.add(parameter);
......
...@@ -28,6 +28,7 @@ ...@@ -28,6 +28,7 @@
10022=头像不合规 10022=头像不合规
10023=背景图不合规 10023=背景图不合规
10024=该账号已被主动注销 10024=该账号已被主动注销
10025=入场人已达上限
10101=姓名或身份证件号无效 10101=姓名或身份证件号无效
......
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