| | |
| | | |
| | | import com.ruoyi.common.core.domain.R; |
| | | import com.ruoyi.common.core.web.page.PageInfo; |
| | | import com.ruoyi.management.api.feignClient.ManagementClient; |
| | | import com.ruoyi.study.domain.*; |
| | | import com.ruoyi.study.dto.SubjectDTO; |
| | | import com.ruoyi.study.dto.SubjectQuery; |
| | |
| | | private ITStoryService storyService; |
| | | @Autowired |
| | | private ITStudyService studyService; |
| | | |
| | | |
| | | @PostMapping("/subjectList") |
| | | @ApiOperation(value = "列表查询", tags = {"题目管理"}) |
| | |
| | | TSubject byId = subjectService.getById(id); |
| | | byId.setState(state); |
| | | subjectService.updateById(byId); |
| | | if (state == 3){ |
| | | subjectService.removeById(byId); |
| | | } |
| | | return R.ok("编辑成功"); |
| | | } |
| | | } |