| | |
| | | import org.springblade.modules.farmplant.entity.FarmPlant; |
| | | import org.springblade.modules.farmplant.service.FarmPlantService; |
| | | import org.springblade.modules.farmplant.vo.FarmPlantVO; |
| | | import org.springblade.modules.farmplant.vo.StrainVO; |
| | | import org.springblade.modules.lang.entity.Land; |
| | | import org.springblade.modules.lang.service.ILandService; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.validation.Valid; |
| | | import java.text.DecimalFormat; |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | |
| | | return R.data(farmplantService.getFarmPlantStatistics(Condition.getPage(query),farmPlantVO)); |
| | | } |
| | | |
| | | /** |
| | | * 农产品列表 |
| | | * @param farm 农产品对象 |
| | | * @return |
| | | */ |
| | | @GetMapping("/strain-tree") |
| | | public R strainTree(FarmPlantVO farm){ |
| | | return R.data(farmplantService.strainTree(farm)); |
| | | } |
| | | |
| | | } |