| | |
| | | |
| | | |
| | | /** |
| | | * 查询种养记录列表(不分页) |
| | | * @param farmPlant |
| | | * @return |
| | | */ |
| | | @GetMapping("/getFarmPlantList") |
| | | public R getFarmPlantList(FarmPlantVO farmPlant) { |
| | | return R.data(farmplantService.getFarmPlantList(farmPlant)); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 分页统计 |
| | | */ |
| | | @GetMapping("/pageCount") |
| | |
| | | */ |
| | | @GetMapping("/pagePalnt") |
| | | public R pagePalnt(FarmPlantVO farmPlant, Query query) { |
| | | int i = farmplantService.selectCount(); |
| | | int i = farmplantService.selectCount(farmPlant); |
| | | IPage<FarmPlantVO> pages = farmplantService.selectFarmPlantPage(Condition.getPage(query), farmPlant); |
| | | Map map = new HashMap<>(); |
| | | map.put("num", i); |