|
@@ -57,7 +57,7 @@ public class ClassGradeController extends BaseController {
|
|
|
* 查询班级列表
|
|
|
*/
|
|
|
@ApiOperation("查询班级列表")
|
|
|
- @PreAuthorize("@ss.hasPermi('modules.grade:grade:list')")
|
|
|
+ @PreAuthorize("@ss.hasPermi('grade:grade:list')")
|
|
|
@GetMapping("/list")
|
|
|
public TableDataInfo<ClassGradeVo> list(ClassGradeQueryBo bo) {
|
|
|
startPage();
|
|
@@ -69,7 +69,7 @@ public class ClassGradeController extends BaseController {
|
|
|
* 查询学员记录列表
|
|
|
*/
|
|
|
@ApiOperation("查询学员记录列表")
|
|
|
- @PreAuthorize("@ss.hasPermi('system:user:list')")
|
|
|
+ @PreAuthorize("@ss.hasPermi('grade:user:list')")
|
|
|
@GetMapping("/listUser")
|
|
|
public TableDataInfo<ClassGradeUserVo> list(ClassGradeUserQueryBo bo) {
|
|
|
startPage();
|
|
@@ -83,7 +83,7 @@ public class ClassGradeController extends BaseController {
|
|
|
* 查询班主任记录列表
|
|
|
*/
|
|
|
@ApiOperation("查询班主任记录列表")
|
|
|
- @PreAuthorize("@ss.hasPermi('system:sys:list')")
|
|
|
+ @PreAuthorize("@ss.hasPermi('grade:sys:list')")
|
|
|
@GetMapping("/listSys")
|
|
|
public TableDataInfo<ClassGradeSysVo> list(ClassGradeSysQueryBo bo) {
|
|
|
startPage();
|
|
@@ -95,7 +95,7 @@ public class ClassGradeController extends BaseController {
|
|
|
* 查询班级列表
|
|
|
*/
|
|
|
@ApiOperation("是否出现官方接口选择")
|
|
|
- @PreAuthorize("@ss.hasPermi('modules.grade:grade:select')")
|
|
|
+ @PreAuthorize("@ss.hasPermi('grade:grade:select')")
|
|
|
@GetMapping("/select")
|
|
|
public AjaxResult<Integer> select(ClassGradeAddBo bo) {
|
|
|
boolean tenantId = ServletUtils.getRequest().getHeader("TenantId").equals("867735392558919680");
|
|
@@ -106,7 +106,7 @@ public class ClassGradeController extends BaseController {
|
|
|
* 查询官方接口
|
|
|
*/
|
|
|
@ApiOperation("查询官方接口")
|
|
|
- @PreAuthorize("@ss.hasPermi('modules.grade:grade:list')")
|
|
|
+ @PreAuthorize("@ss.hasPermi('grade:grade:list')")
|
|
|
@GetMapping("/listInterfaceVo")
|
|
|
public TableDataInfo<ClassGradeInterfaceVo> list(ClassGradeInterfaceQueryBo bo) {
|
|
|
startPage();
|
|
@@ -131,7 +131,7 @@ public class ClassGradeController extends BaseController {
|
|
|
* 获取班级详细信息
|
|
|
*/
|
|
|
@ApiOperation("获取班级详细信息")
|
|
|
- @PreAuthorize("@ss.hasPermi('modules.grade:grade:query')")
|
|
|
+ @PreAuthorize("@ss.hasPermi('grade:grade:query')")
|
|
|
@GetMapping("/{classId}")
|
|
|
public AjaxResult<ClassGradeVo> getInfo(@PathVariable("classId") Long classId) {
|
|
|
return AjaxResult.success(iClassGradeService.queryById(classId));
|
|
@@ -141,7 +141,7 @@ public class ClassGradeController extends BaseController {
|
|
|
* 新增班级
|
|
|
*/
|
|
|
@ApiOperation("新增班级")
|
|
|
- @PreAuthorize("@ss.hasPermi('modules.grade:grade:add')")
|
|
|
+ @PreAuthorize("@ss.hasPermi('grade:grade:add')")
|
|
|
@Log(title = "班级", businessType = BusinessType.INSERT)
|
|
|
@PostMapping()
|
|
|
public AjaxResult<Void> add(@RequestBody ClassGradeAddBo bo) {
|
|
@@ -152,7 +152,7 @@ public class ClassGradeController extends BaseController {
|
|
|
* 修改班级
|
|
|
*/
|
|
|
@ApiOperation("修改班级")
|
|
|
- @PreAuthorize("@ss.hasPermi('modules.grade:grade:edit')")
|
|
|
+ @PreAuthorize("@ss.hasPermi('grade:grade:edit')")
|
|
|
@Log(title = "班级", businessType = BusinessType.UPDATE)
|
|
|
@PostMapping("/edit")
|
|
|
public AjaxResult<Void> edit(@RequestBody ClassGradeEditBo bo) {
|