| | |
| | | @ResponseBody |
| | | public AjaxResult addStudySet(@RequestBody AddStudySetDTO dto) { |
| | | System.err.println("后台"+dto); |
| | | if(dto.getGame().getAnswerCount()>dto.getGame().getSubjectIds().split(",").length){ |
| | | return AjaxResult.error("选择题目数量不足"); |
| | | if(dto.getGame().getCount()>dto.getGame().getSubjectIds().split(",").length){ |
| | | return AjaxResult.error("超级听力选择题目数量不足"); |
| | | } |
| | | if(dto.getGame().getAnswerCount()>dto.getGame().getSubjectIdsOne().split(",").length){ |
| | | return AjaxResult.error("超级记忆选择题目数量不足"); |
| | | } |
| | | R<Object> objectR = studyClient.addStudySet(dto); |
| | | int code = objectR.getCode(); |