小bug 修复
This commit is contained in:
@@ -37,7 +37,7 @@ public class CourseSociologyController {
|
||||
@RequestMapping("/addCourseSociology")
|
||||
public R addCourseSociology(@RequestBody CourseSociologyEntity courseSociologyEntity){
|
||||
courseSociologyService.save(courseSociologyEntity);
|
||||
return R.ok();
|
||||
return R.ok().put("sociology",courseSociologyEntity);
|
||||
}
|
||||
|
||||
@RequestMapping("/delCourseSociology")
|
||||
@@ -69,8 +69,12 @@ public class CourseSociologyController {
|
||||
|
||||
@RequestMapping("/unbindCourseAndSociology")
|
||||
public R unbindCourseAndSociology(@RequestBody CourseToSociologyEntity courseToSociologyEntity){
|
||||
courseToSociologyService.removeById(courseToSociologyEntity.getId());
|
||||
return R.ok();
|
||||
boolean b = courseToSociologyService.removeById(courseToSociologyEntity.getId());
|
||||
if(b){
|
||||
return R.ok();
|
||||
}else {
|
||||
return R.error("error");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user