| | |
| | | IPage<LandVO> pages = landService.selectLandPage(Condition.getPage(query), land); |
| | | return R.data(pages); |
| | | } |
| | | /** |
| | | * 根据品种id查询对应地块(农产品库存) |
| | | */ |
| | | @GetMapping("/selcetByStrainId") |
| | | public R selcetByStrainId(String strainId,String farmId) { |
| | | List<Land> list = landService.selectByStrainId(strainId,farmId); |
| | | return R.data(list); |
| | | } |
| | | |
| | | /** |
| | | * 根据品种id查询对应地块(种养品种) |
| | | */ |
| | | @GetMapping("/getByStrainIdFarmId") |
| | | public R getByStrainIdFarmId(LandVO land) { |
| | | List<Land> list = landService.getByStrainIdFarmId(land); |
| | | return R.data(list); |
| | | } |
| | | |
| | | /** |
| | | * 新增 地块表 |
| | |
| | | return R.data(map); |
| | | } |
| | | |
| | | /** |
| | | * 查询统计地块是否有轮廓(是否有圈出区域) |
| | | * @param land |
| | | * @return |
| | | */ |
| | | @GetMapping("/getLandIsAreaStatistic") |
| | | public R getLandIsAreaStatistic(LandVO land){ |
| | | return R.data(landService.getLandIsAreaStatistic(land)); |
| | | } |
| | | |
| | | } |