|
@@ -1,6 +1,7 @@
|
|
package com.koobietech.eas.controller;
|
|
package com.koobietech.eas.controller;
|
|
|
|
|
|
import com.github.pagehelper.PageHelper;
|
|
import com.github.pagehelper.PageHelper;
|
|
|
|
+import com.koobietech.eas.common.result.JsonPageResult;
|
|
import com.koobietech.eas.common.result.JsonResult;
|
|
import com.koobietech.eas.common.result.JsonResult;
|
|
import com.koobietech.eas.common.result.PageData;
|
|
import com.koobietech.eas.common.result.PageData;
|
|
import com.koobietech.eas.mbg.model.EasSysDepartment;
|
|
import com.koobietech.eas.mbg.model.EasSysDepartment;
|
|
@@ -23,11 +24,11 @@ public class EasDepartmentController {
|
|
|
|
|
|
@PostMapping("/query")
|
|
@PostMapping("/query")
|
|
@Operation(summary = "查询部门" , description = "根据参数查询基本信息")
|
|
@Operation(summary = "查询部门" , description = "根据参数查询基本信息")
|
|
- public JsonResult query(@RequestBody EasSysDepartment department,
|
|
|
|
- @RequestParam Integer pageNum, @RequestParam Integer pageSize ) {
|
|
|
|
|
|
+ public JsonPageResult query(@RequestBody EasSysDepartment department,
|
|
|
|
+ @RequestParam Integer pageNum, @RequestParam Integer pageSize ) {
|
|
PageHelper.startPage(pageNum, pageSize);
|
|
PageHelper.startPage(pageNum, pageSize);
|
|
PageData ret = easDepartmentService.query(department);
|
|
PageData ret = easDepartmentService.query(department);
|
|
- return JsonResult.data(ret);
|
|
|
|
|
|
+ return JsonPageResult.data(ret);
|
|
}
|
|
}
|
|
|
|
|
|
@PostMapping("/add")
|
|
@PostMapping("/add")
|