|
@@ -37,7 +37,7 @@ import io.swagger.annotations.ApiOperation;
|
|
|
@Api(value = "高校控制器", tags = {"高校管理"})
|
|
@Api(value = "高校控制器", tags = {"高校管理"})
|
|
|
@RequiredArgsConstructor(onConstructor_ = @Autowired)
|
|
@RequiredArgsConstructor(onConstructor_ = @Autowired)
|
|
|
@RestController
|
|
@RestController
|
|
|
-@RequestMapping("/modules.user/school")
|
|
|
|
|
|
|
+@RequestMapping("/user/school")
|
|
|
public class SchoolController extends BaseController {
|
|
public class SchoolController extends BaseController {
|
|
|
|
|
|
|
|
private final ISchoolService iSchoolService;
|
|
private final ISchoolService iSchoolService;
|
|
@@ -46,7 +46,7 @@ public class SchoolController extends BaseController {
|
|
|
* 查询高校列表
|
|
* 查询高校列表
|
|
|
*/
|
|
*/
|
|
|
@ApiOperation("查询高校列表")
|
|
@ApiOperation("查询高校列表")
|
|
|
- @PreAuthorize("@ss.hasPermi('modules.user:school:list')")
|
|
|
|
|
|
|
+ @PreAuthorize("@ss.hasPermi('user:school:list')")
|
|
|
@GetMapping("/list")
|
|
@GetMapping("/list")
|
|
|
public TableDataInfo<SchoolVo> list(SchoolQueryBo bo) {
|
|
public TableDataInfo<SchoolVo> list(SchoolQueryBo bo) {
|
|
|
startPage();
|
|
startPage();
|
|
@@ -57,7 +57,7 @@ public class SchoolController extends BaseController {
|
|
|
/**
|
|
/**
|
|
|
* 导出高校列表
|
|
* 导出高校列表
|
|
|
*/
|
|
*/
|
|
|
- @ApiOperation("导出高校列表")
|
|
|
|
|
|
|
+/* @ApiOperation("导出高校列表")
|
|
|
@PreAuthorize("@ss.hasPermi('modules.user:school:export')")
|
|
@PreAuthorize("@ss.hasPermi('modules.user:school:export')")
|
|
|
@Log(title = "高校", businessType = BusinessType.EXPORT)
|
|
@Log(title = "高校", businessType = BusinessType.EXPORT)
|
|
|
@GetMapping("/export")
|
|
@GetMapping("/export")
|
|
@@ -65,13 +65,13 @@ public class SchoolController extends BaseController {
|
|
|
List<SchoolVo> list = iSchoolService.queryList(bo);
|
|
List<SchoolVo> list = iSchoolService.queryList(bo);
|
|
|
ExcelUtil<SchoolVo> util = new ExcelUtil<SchoolVo>(SchoolVo.class);
|
|
ExcelUtil<SchoolVo> util = new ExcelUtil<SchoolVo>(SchoolVo.class);
|
|
|
return util.exportExcel(list, "高校");
|
|
return util.exportExcel(list, "高校");
|
|
|
- }
|
|
|
|
|
|
|
+ }*/
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 获取高校详细信息
|
|
* 获取高校详细信息
|
|
|
*/
|
|
*/
|
|
|
@ApiOperation("获取高校详细信息")
|
|
@ApiOperation("获取高校详细信息")
|
|
|
- @PreAuthorize("@ss.hasPermi('modules.user:school:query')")
|
|
|
|
|
|
|
+ @PreAuthorize("@ss.hasPermi('user:school:query')")
|
|
|
@GetMapping("/{id}")
|
|
@GetMapping("/{id}")
|
|
|
public AjaxResult<SchoolVo> getInfo(@PathVariable("id" ) Long id) {
|
|
public AjaxResult<SchoolVo> getInfo(@PathVariable("id" ) Long id) {
|
|
|
return AjaxResult.success(iSchoolService.queryById(id));
|
|
return AjaxResult.success(iSchoolService.queryById(id));
|
|
@@ -81,7 +81,7 @@ public class SchoolController extends BaseController {
|
|
|
* 新增高校
|
|
* 新增高校
|
|
|
*/
|
|
*/
|
|
|
@ApiOperation("新增高校")
|
|
@ApiOperation("新增高校")
|
|
|
- @PreAuthorize("@ss.hasPermi('modules.user:school:add')")
|
|
|
|
|
|
|
+ @PreAuthorize("@ss.hasPermi('user:school:add')")
|
|
|
@Log(title = "高校", businessType = BusinessType.INSERT)
|
|
@Log(title = "高校", businessType = BusinessType.INSERT)
|
|
|
@PostMapping()
|
|
@PostMapping()
|
|
|
public AjaxResult<Void> add(@RequestBody SchoolAddBo bo) {
|
|
public AjaxResult<Void> add(@RequestBody SchoolAddBo bo) {
|
|
@@ -92,9 +92,9 @@ public class SchoolController extends BaseController {
|
|
|
* 修改高校
|
|
* 修改高校
|
|
|
*/
|
|
*/
|
|
|
@ApiOperation("修改高校")
|
|
@ApiOperation("修改高校")
|
|
|
- @PreAuthorize("@ss.hasPermi('modules.user:school:edit')")
|
|
|
|
|
|
|
+ @PreAuthorize("@ss.hasPermi('user:school:edit')")
|
|
|
@Log(title = "高校", businessType = BusinessType.UPDATE)
|
|
@Log(title = "高校", businessType = BusinessType.UPDATE)
|
|
|
- @PutMapping()
|
|
|
|
|
|
|
+ @PostMapping("/edit")
|
|
|
public AjaxResult<Void> edit(@RequestBody SchoolEditBo bo) {
|
|
public AjaxResult<Void> edit(@RequestBody SchoolEditBo bo) {
|
|
|
return toAjax(iSchoolService.updateByEditBo(bo) ? 1 : 0);
|
|
return toAjax(iSchoolService.updateByEditBo(bo) ? 1 : 0);
|
|
|
}
|
|
}
|
|
@@ -102,11 +102,11 @@ public class SchoolController extends BaseController {
|
|
|
/**
|
|
/**
|
|
|
* 删除高校
|
|
* 删除高校
|
|
|
*/
|
|
*/
|
|
|
- @ApiOperation("删除高校")
|
|
|
|
|
|
|
+ /* @ApiOperation("删除高校")
|
|
|
@PreAuthorize("@ss.hasPermi('modules.user:school:remove')")
|
|
@PreAuthorize("@ss.hasPermi('modules.user:school:remove')")
|
|
|
@Log(title = "高校" , businessType = BusinessType.DELETE)
|
|
@Log(title = "高校" , businessType = BusinessType.DELETE)
|
|
|
@DeleteMapping("/{ids}")
|
|
@DeleteMapping("/{ids}")
|
|
|
public AjaxResult<Void> remove(@PathVariable Long[] ids) {
|
|
public AjaxResult<Void> remove(@PathVariable Long[] ids) {
|
|
|
return toAjax(iSchoolService.deleteWithValidByIds(Arrays.asList(ids), true) ? 1 : 0);
|
|
return toAjax(iSchoolService.deleteWithValidByIds(Arrays.asList(ids), true) ? 1 : 0);
|
|
|
- }
|
|
|
|
|
|
|
+ }*/
|
|
|
}
|
|
}
|