|
|
|
@ -1,5 +1,6 @@ |
|
|
|
|
package com.cjy.traceability.module.traceability.controller.admin.husbandry; |
|
|
|
|
|
|
|
|
|
import com.cjy.traceability.module.traceability.controller.admin.agricultural.vo.AgriculturalRespVO; |
|
|
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
|
import javax.annotation.Resource; |
|
|
|
|
import org.springframework.validation.annotation.Validated; |
|
|
|
@ -92,4 +93,11 @@ public class HusbandryController { |
|
|
|
|
BeanUtils.toBean(list, HusbandryRespVO.class)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@GetMapping("/selectList") |
|
|
|
|
@Operation(summary = "获得农事-农资对应农事下拉框") |
|
|
|
|
public CommonResult<List<HusbandryRespVO>> getHusbandryList() { |
|
|
|
|
List<HusbandryRespVO> list = husbandryService.getHusbandrylList(); |
|
|
|
|
return success(BeanUtils.toBean(list, HusbandryRespVO.class)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |