| | |
| | | @RequestMapping("/base/tStory") |
| | | public class TStoryController { |
| | | @Autowired |
| | | private ITStudyAnswerService studyAnswerService; |
| | | @Autowired |
| | | private ITStudyInductionService studyInductionService; |
| | | @Autowired |
| | | private ITStudyLookService studyLookService; |
| | | @Autowired |
| | | private ITStudyListenService studyListenService; |
| | | @Autowired |
| | | private ITStudyPairService studyPairService; |
| | | @Autowired |
| | | private ITGameService gameService; |
| | | @Autowired |
| | | private ITStoryListenService storyListenService; |
| | | @Autowired |
| | | private ITSubjectService subjectService; |
| | | @Autowired |
| | | private ITStoryService storyService; |
| | | @Autowired |
| | | private ITStudyService studyService; |
| | | @Autowired |
| | | private ITStoryService service; |
| | | @PostMapping("/storyList") |
| | |
| | | // @ApiOperation(value = "编辑", tags = {"故事管理"}) |
| | | public R update(@RequestBody StoryDTO dto) { |
| | | TStory tSubject = new TStory(); |
| | | R<Object> week = getObjectR(dto.getId()); |
| | | if (week != null) return week; |
| | | // R<Object> week = getObjectR(dto.getId()); |
| | | // if (week != null) return week; |
| | | BeanUtils.copyProperties(dto,tSubject); |
| | | service.updateById(tSubject); |
| | | return R.ok("编辑成功"); |
| | |
| | | for (String s : split) { |
| | | if (s.equals(String.valueOf(id))) { |
| | | Integer week = tStudyListen.getWeek(); |
| | | return R.fail("操作失败,当前题目在" + "周目" + week + "、" + "听故事" + "、" + "框架记忆中使用"); |
| | | return R.failUpdate("操作失败,当前题目在" + "周目" + week + "、" + "听故事" + "、" + "框架记忆中使用"); |
| | | } |
| | | } |
| | | for (String s : split1) { |
| | | if (s.equals(String.valueOf(id))) { |
| | | Integer week = tStudyListen.getWeek(); |
| | | return R.fail("操作失败,当前题目在" + "周目" + week + "、" + "听故事" + "、" + "看图配音中使用"); |
| | | return R.failUpdate("操作失败,当前题目在" + "周目" + week + "、" + "听故事" + "、" + "看图配音中使用"); |
| | | } |
| | | } |
| | | } |