|
|
|
@ -207,7 +207,9 @@ public class CaseController {
|
|
|
|
|
} else {
|
|
|
|
|
if ("管理员".equals(source) || source.equals(sysCaseQuestion.getSource())) {
|
|
|
|
|
topicAndCourseMapper.deleteByPrimaryKey(sysTopicAndCourses.get(0).getId());
|
|
|
|
|
caseQuestionMapper.deleteByPrimaryKey(sysCaseQuestion.getCaseId());
|
|
|
|
|
|
|
|
|
|
sysCaseQuestion.setUnmountStatus(true);
|
|
|
|
|
caseQuestionMapper.updateByPrimaryKeySelective(sysCaseQuestion);
|
|
|
|
|
return new ResultEntity<>(HttpStatus.OK, "删除成功!");
|
|
|
|
|
} else {
|
|
|
|
|
return new ResultEntity<>(HttpStatus.BAD_REQUEST, "权限不足!");
|
|
|
|
|