| | |
| | | return R.data(pages); |
| | | } |
| | | |
| | | /** |
| | | * 首页秧苗产品总和 |
| | | */ |
| | | @GetMapping("/strainCountYM") |
| | | public R<IPage<FarmPlantVO>> strainCountYM(FarmPlantVO farmPlant, Query query) { |
| | | IPage<FarmPlantVO> pages = farmplantService.selectFarmPlantPageCountYM(Condition.getPage(query), farmPlant); |
| | | return R.data(pages); |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | |
| | | @GetMapping("/getFarmPlantList") |
| | | public R getFarmPlantList(FarmPlantVO farmPlant) { |
| | | return R.data(farmplantService.getFarmPlantList(farmPlant)); |
| | | } |
| | | |
| | | /** |
| | | * 查询种养记录列表(秧苗)(不分页) |
| | | * @param farmPlant |
| | | * @return |
| | | */ |
| | | @GetMapping("/getFarmPlantYMList") |
| | | public R getFarmPlantYMList(FarmPlantVO farmPlant) { |
| | | return R.data(farmplantService.getFarmPlantYMList(farmPlant)); |
| | | } |
| | | |
| | | |
| | |
| | | //直播 |
| | | record.setType("11"); |
| | | } |
| | | if(farmPlant.getPlantingWay().equals("2")){ |
| | | //秧苗 |
| | | record.setType("13"); |
| | | } |
| | | record.setLandId(farmPlant.getLandId()); |
| | | record.setOperator(farmPlant.getCreateUser()); |
| | | record.setContent("品种: " + farmPlant.getVarieties()); |