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