|
@@ -78,9 +78,6 @@ public class ExamPlanController extends BaseSystemController {
|
|
public Object add(HttpServletRequest request, ExamPlanDto examPlanDto) throws Exception {
|
|
public Object add(HttpServletRequest request, ExamPlanDto examPlanDto) throws Exception {
|
|
User user = super.getCachedUser(request);
|
|
User user = super.getCachedUser(request);
|
|
examPlanDto.setCreator(user);
|
|
examPlanDto.setCreator(user);
|
|
- if (Objects.nonNull(examPlanDto.getName()) && examPlanDto.getName().length() > 32) {
|
|
|
|
- throw new RuntimeException("名称不能超过32个字符");
|
|
|
|
- }
|
|
|
|
return examPlanService.save(examPlanDto);
|
|
return examPlanService.save(examPlanDto);
|
|
}
|
|
}
|
|
|
|
|