修改案例题删除

master
xiaoCJ 3 months ago
parent b64d3ed42b
commit b421c79506

@ -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, "权限不足!");

Loading…
Cancel
Save