|
@@ -1,6 +1,7 @@
|
|
|
package com.kexun.controller;
|
|
|
|
|
|
|
|
|
+import com.alibaba.fastjson.JSON;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
import com.github.pagehelper.PageHelper;
|
|
@@ -55,8 +56,10 @@ public class FieldDefineController {
|
|
|
|
|
|
@RequestMapping("/fieldListNew")
|
|
|
@ResponseBody
|
|
|
- public Result findAll(@RequestParam int pageNum){
|
|
|
- int pageSize = 10;
|
|
|
+ public Result findAll(@RequestBody String json){
|
|
|
+ JSONObject req = JSON.parseObject(json);
|
|
|
+ int pageNum = req.getIntValue("pageNum");
|
|
|
+ int pageSize = req.getIntValue("pageSize");
|
|
|
PageHelper.startPage(pageNum, pageSize);//设置分页信息
|
|
|
List<FieldDefineEntity> list = fieldDefineService.selectPage();
|
|
|
|
|
@@ -78,8 +81,10 @@ public class FieldDefineController {
|
|
|
|
|
|
@RequestMapping("/fieldListBase")
|
|
|
@ResponseBody
|
|
|
- public Result fieldListBase(@RequestParam int pageNum){
|
|
|
- int pageSize = 10;
|
|
|
+ public Result fieldListBase(@RequestBody String json){
|
|
|
+ JSONObject req = JSON.parseObject(json);
|
|
|
+ int pageNum = req.getIntValue("pageNum");
|
|
|
+ int pageSize = req.getIntValue("pageSize");
|
|
|
PageHelper.startPage(pageNum, pageSize);//设置分页信息
|
|
|
List<FieldDefineEntity> list = fieldDefineService.selectPage();
|
|
|
|
|
@@ -95,8 +100,10 @@ public class FieldDefineController {
|
|
|
|
|
|
@RequestMapping("/fieldListDerive")
|
|
|
@ResponseBody
|
|
|
- public Result fieldListDerive(@RequestParam int pageNum){
|
|
|
- int pageSize = 10;
|
|
|
+ public Result fieldListDerive(@RequestBody String json){
|
|
|
+ JSONObject req = JSON.parseObject(json);
|
|
|
+ int pageNum = req.getIntValue("pageNum");
|
|
|
+ int pageSize = req.getIntValue("pageSize");
|
|
|
PageHelper.startPage(pageNum, pageSize);//设置分页信息
|
|
|
|
|
|
List<FieldDefineEntity> list2 = fieldDefineService.selectPage2();
|