| | |
| | | return R.data(pages); |
| | | } |
| | | |
| | | |
| | | @GetMapping("/strainCount") |
| | | @ApiOperationSupport(order = 3) |
| | | @ApiOperation(value = "分页", notes = "传入farmProductStock") |
| | | public R<IPage<FarmProductStockVO>> strainCount(FarmProductStockVO farmProductStock, Query query) { |
| | | IPage<FarmProductStockVO> pages = farmProductStockService.selectFarmProductStockPagesCount(Condition.getPage(query), farmProductStock); |
| | | return R.data(pages); |
| | | } |
| | | |
| | | /** |
| | | * 自定义分页 |
| | | */ |
| | |
| | | return R.data(cssum); |
| | | } |
| | | |
| | | @GetMapping("/getByLandId") |
| | | public R getByLandId(String strainId,String landId){ |
| | | FarmProductStock farmProductStock = farmProductStockService.selectBy2Id(strainId,landId); |
| | | return R.data(farmProductStock); |
| | | } |
| | | |
| | | } |