|
@@ -6,6 +6,7 @@ import com.ym.mec.biz.dal.dao.EmployeeDao;
|
|
|
import com.ym.mec.biz.dal.entity.Employee;
|
|
|
import com.ym.mec.biz.dal.enums.GroupType;
|
|
|
import com.ym.mec.biz.dal.page.PracticeGroupQueryInfo;
|
|
|
+import com.ym.mec.biz.service.CourseScheduleEvaluateService;
|
|
|
import com.ym.mec.biz.service.GroupClassService;
|
|
|
import com.ym.mec.biz.service.PracticeGroupService;
|
|
|
import com.ym.mec.common.controller.BaseController;
|
|
@@ -41,6 +42,8 @@ public class PracticeGroupManageController extends BaseController {
|
|
|
private EmployeeDao employeeDao;
|
|
|
@Autowired
|
|
|
private GroupClassService groupService;
|
|
|
+ @Autowired
|
|
|
+ private CourseScheduleEvaluateService courseScheduleEvaluateService;
|
|
|
|
|
|
@ApiOperation(value = "全查询")
|
|
|
@GetMapping("/queryAll")
|
|
@@ -111,4 +114,18 @@ public class PracticeGroupManageController extends BaseController {
|
|
|
}
|
|
|
return succeed(practiceGroupService.findPracticeGroupReviews(queryInfo));
|
|
|
}
|
|
|
+
|
|
|
+ @ApiOperation(value = "课程组评论列表")
|
|
|
+ @GetMapping("getGroupReviews")
|
|
|
+ @PreAuthorize("@pcs.hasPermissions('practiceGroupManage/getGroupReviews')")
|
|
|
+ public Object getGroupReviews(Integer groupId) {
|
|
|
+ return succeed(courseScheduleEvaluateService.findByGroupId(groupId));
|
|
|
+ }
|
|
|
+
|
|
|
+ @ApiOperation(value = "评论详情")
|
|
|
+ @GetMapping("getReviewsInfo")
|
|
|
+ @PreAuthorize("@pcs.hasPermissions('practiceGroupManage/getReviewsInfo')")
|
|
|
+ public Object getReviewsInfo(Integer id) {
|
|
|
+ return succeed(courseScheduleEvaluateService.findById(id));
|
|
|
+ }
|
|
|
}
|