|
@@ -87,14 +87,26 @@ public class FieldDefineController {
|
|
int pageSize = req.getIntValue("pageSize");
|
|
int pageSize = req.getIntValue("pageSize");
|
|
PageHelper.startPage(pageNum, pageSize);//设置分页信息
|
|
PageHelper.startPage(pageNum, pageSize);//设置分页信息
|
|
List<FieldDefineEntity> list = fieldDefineService.selectPage();
|
|
List<FieldDefineEntity> list = fieldDefineService.selectPage();
|
|
-
|
|
|
|
PageInfo pageInfo=new PageInfo(list);
|
|
PageInfo pageInfo=new PageInfo(list);
|
|
-
|
|
|
|
System.out.println(pageInfo);
|
|
System.out.println(pageInfo);
|
|
JSONObject resJson = new JSONObject();
|
|
JSONObject resJson = new JSONObject();
|
|
resJson.put("fieldListBase", pageInfo);
|
|
resJson.put("fieldListBase", pageInfo);
|
|
|
|
+ return Result.success("ok", resJson);
|
|
|
|
+ }
|
|
|
|
|
|
|
|
+ @RequestMapping("/selectFieldListBase")
|
|
|
|
+ public Result selectFieldListBase(@RequestBody String json){
|
|
|
|
+ JSONObject req = JSON.parseObject(json);
|
|
|
|
+ int pageNum = req.getIntValue("pageNum");
|
|
|
|
+ int pageSize = req.getIntValue("pageSize");
|
|
|
|
+ String nameZh = req.getString("nameZh");
|
|
|
|
|
|
|
|
+ PageHelper.startPage(pageNum, pageSize);//设置分页信息
|
|
|
|
+ List<FieldDefineEntity> list = fieldDefineService.selectBase(nameZh);
|
|
|
|
+ PageInfo pageInfo=new PageInfo(list);
|
|
|
|
+ System.out.println(pageInfo);
|
|
|
|
+ JSONObject resJson = new JSONObject();
|
|
|
|
+ resJson.put("selectFieldListBase", pageInfo);
|
|
return Result.success("ok", resJson);
|
|
return Result.success("ok", resJson);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -105,16 +117,26 @@ public class FieldDefineController {
|
|
int pageNum = req.getIntValue("pageNum");
|
|
int pageNum = req.getIntValue("pageNum");
|
|
int pageSize = req.getIntValue("pageSize");
|
|
int pageSize = req.getIntValue("pageSize");
|
|
PageHelper.startPage(pageNum, pageSize);//设置分页信息
|
|
PageHelper.startPage(pageNum, pageSize);//设置分页信息
|
|
-
|
|
|
|
List<FieldDefineEntity> list2 = fieldDefineService.selectPage2();
|
|
List<FieldDefineEntity> list2 = fieldDefineService.selectPage2();
|
|
-
|
|
|
|
PageInfo pageInfo2=new PageInfo(list2);
|
|
PageInfo pageInfo2=new PageInfo(list2);
|
|
-
|
|
|
|
- System.out.println(pageInfo2);
|
|
|
|
JSONObject resJson = new JSONObject();
|
|
JSONObject resJson = new JSONObject();
|
|
-
|
|
|
|
resJson.put("fieldListDerive", pageInfo2);
|
|
resJson.put("fieldListDerive", pageInfo2);
|
|
|
|
+ return Result.success("ok", resJson);
|
|
|
|
+ }
|
|
|
|
|
|
|
|
+ @RequestMapping("/selectFieldListDerive")
|
|
|
|
+ public Result selectFieldListDerive(@RequestBody String json){
|
|
|
|
+ JSONObject req = JSON.parseObject(json);
|
|
|
|
+ int pageNum = req.getIntValue("pageNum");
|
|
|
|
+ int pageSize = req.getIntValue("pageSize");
|
|
|
|
+ String nameZh = req.getString("nameZh");
|
|
|
|
+
|
|
|
|
+ PageHelper.startPage(pageNum, pageSize);//设置分页信息
|
|
|
|
+ List<FieldDefineEntity> list = fieldDefineService.selectDerive(nameZh);
|
|
|
|
+ PageInfo pageInfo=new PageInfo(list);
|
|
|
|
+ System.out.println(pageInfo);
|
|
|
|
+ JSONObject resJson = new JSONObject();
|
|
|
|
+ resJson.put("selectFieldListDerive", pageInfo);
|
|
return Result.success("ok", resJson);
|
|
return Result.success("ok", resJson);
|
|
}
|
|
}
|
|
/**
|
|
/**
|