xuhy
2025-09-29 6ccace7e64bed880f9b8ecbc581e80c2616a6aa2
ruoyi-admin/src/main/java/com/ruoyi/web/controller/api/TMajorController.java
@@ -43,7 +43,7 @@
     */
    //@PreAuthorize("@ss.hasPermi('system:major:list')")
    @ApiOperation(value = "专业管理分页列表", response = TMajorQuery.class)
    @PostMapping(value = "/api/t-division-team/pageList")
    @PostMapping(value = "/api/t-major/pageList")
    public R<PageInfo<TMajor>> pageList(@RequestBody String param) {
        TMajorQuery query = JSON.parseObject(param, TMajorQuery.class);
        return R.ok(majorService.pageList(query));
@@ -55,7 +55,7 @@
    //@PreAuthorize("@ss.hasPermi('system:major:add')")
    @Log(title = "专业管理信息-新增专业管理", businessType = BusinessType.INSERT)
    @ApiOperation(value = "添加专业管理",response = TMajor.class)
    @PostMapping(value = "/api/t-division-team/add")
    @PostMapping(value = "/api/t-major/add")
    public R<Boolean> add(@RequestBody String param) {
        TMajor dto = JSON.parseObject(param,TMajor.class);
        if(majorService.isExit(dto)){
@@ -71,7 +71,7 @@
    //@PreAuthorize("@ss.hasPermi('system:major:edit')")
    @Log(title = "专业管理信息-修改专业管理", businessType = BusinessType.UPDATE)
    @ApiOperation(value = "修改专业管理")
    @PostMapping(value = "/api/t-division-team/update")
    @PostMapping(value = "/api/t-major/update")
    public R<Boolean> update(@RequestBody String param) {
        TMajor dto = JSON.parseObject(param,TMajor.class);
        if(majorService.isExit(dto)){
@@ -86,7 +86,7 @@
     */
    //@PreAuthorize("@ss.hasPermi('system:major:detail')")
    @ApiOperation(value = "查看专业管理详情")
    @GetMapping(value = "/open/t-division-team/getDetailById")
    @GetMapping(value = "/open/t-major/getDetailById")
    public R<TMajor> getDetailById(@RequestParam String id) {
        TMajor equipment = majorService.getById(id);
        return R.ok(equipment);
@@ -98,7 +98,7 @@
    //@PreAuthorize("@ss.hasPermi('system:major:delete')")
    @Log(title = "专业管理信息-删除专业管理", businessType = BusinessType.DELETE)
    @ApiOperation(value = "删除专业管理")
    @DeleteMapping(value = "/open/t-division-team/deleteById")
    @DeleteMapping(value = "/open/t-major/deleteById")
    public R<Boolean> deleteById(@RequestParam String id) {
        return R.ok(majorService.removeById(id));
    }
@@ -109,7 +109,7 @@
    //@PreAuthorize("@ss.hasPermi('system:major:delete')")
    @Log(title = "专业管理信息-删除专业管理", businessType = BusinessType.DELETE)
    @ApiOperation(value = "批量删除专业管理")
    @DeleteMapping(value = "/open/t-division-team/deleteByIds")
    @DeleteMapping(value = "/open/t-major/deleteByIds")
    public R<Boolean> deleteByIds(@RequestBody List<String> ids) {
        return R.ok(majorService.removeByIds(ids));
    }