|
@@ -17,18 +17,20 @@ import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
+import java.util.ArrayList;
|
|
|
+import java.util.Arrays;
|
|
|
import java.util.List;
|
|
|
|
|
|
/**
|
|
|
* 教育类型Controller
|
|
|
- *
|
|
|
+ *
|
|
|
* @author ruoyi
|
|
|
* @date 2021-10-08
|
|
|
*/
|
|
|
@Api(value = "教育类型控制器", tags = {"教育类型管理"})
|
|
|
@RequiredArgsConstructor(onConstructor_ = @Autowired)
|
|
|
@RestController
|
|
|
-@RequestMapping("/course/educationType")
|
|
|
+@RequestMapping("/app/common/course/educationType")
|
|
|
public class CourseEducationTypeController extends BaseController {
|
|
|
|
|
|
private final ICourseEducationTypeService iCourseEducationTypeService;
|
|
@@ -37,9 +39,9 @@ public class CourseEducationTypeController extends BaseController {
|
|
|
* 查询教育类型列表
|
|
|
*/
|
|
|
@ApiOperation("查询教育类型列表")
|
|
|
- @PreAuthorize("@ss.hasPermi('course:type:list')")
|
|
|
@GetMapping("/list")
|
|
|
public TableDataInfo<CourseEducationTypeVo> list(CourseEducationTypeQueryBo bo) {
|
|
|
+ bo.setStatus(new ArrayList<Integer>(Arrays.asList(1)));
|
|
|
startPage();
|
|
|
List<CourseEducationTypeVo> list = iCourseEducationTypeService.queryList(bo);
|
|
|
return getDataTable(list);
|