|  |  |  | 
|---|
|  |  |  | import com.dy.pipIrrGlobal.voLargeScreen.VoCurrentInfo; | 
|---|
|  |  |  | import com.dy.pipIrrGlobal.voLargeScreen.VoMonitorInfo; | 
|---|
|  |  |  | import com.dy.pipIrrGlobal.voMd.VoCrops; | 
|---|
|  |  |  | import com.dy.pipIrrGlobal.voMd.VoCropsSimple; | 
|---|
|  |  |  | import com.dy.pipIrrGlobal.voMd.VoEt0Simple; | 
|---|
|  |  |  | import com.dy.pipIrrGlobal.voSpecial.VoTopXClient; | 
|---|
|  |  |  | import com.dy.pipIrrGlobal.voSpecial.VoTopXIntake; | 
|---|
|  |  |  | import io.swagger.v3.oas.annotations.Operation; | 
|---|
|  |  |  | 
|---|
|  |  |  | responseCode = ResultCodeMsg.RsCode.SUCCESS_CODE, | 
|---|
|  |  |  | description = "得到所有作物(BaseResponse.content:[VoTopXIntake{}])", | 
|---|
|  |  |  | content = {@Content(mediaType = MediaType.APPLICATION_JSON_VALUE, | 
|---|
|  |  |  | schema = @Schema(implementation = VoCrops.class))} | 
|---|
|  |  |  | schema = @Schema(implementation = VoCropsSimple.class))} | 
|---|
|  |  |  | ) | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | @GetMapping(path = "allCropts") | 
|---|
|  |  |  | @SsoAop() | 
|---|
|  |  |  | public BaseResponse<List<VoCrops>> allCropts(){ | 
|---|
|  |  |  | List<VoCrops> res = this.sv.allCropts(); | 
|---|
|  |  |  | public BaseResponse<List<VoCropsSimple>> allCropts(){ | 
|---|
|  |  |  | List<VoCropsSimple> res = this.sv.allCropts(); | 
|---|
|  |  |  | return BaseResponseUtils.buildSuccess(res); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | responseCode = ResultCodeMsg.RsCode.SUCCESS_CODE, | 
|---|
|  |  |  | description = "一个作物一周内的蒸腾量(BaseResponse.content:[VoTopXIntake{}])", | 
|---|
|  |  |  | content = {@Content(mediaType = MediaType.APPLICATION_JSON_VALUE, | 
|---|
|  |  |  | schema = @Schema(implementation = MdEt0.class))} | 
|---|
|  |  |  | schema = @Schema(implementation = VoEt0Simple.class))} | 
|---|
|  |  |  | ) | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | @GetMapping(path = "et0InWeek") | 
|---|
|  |  |  | @SsoAop() | 
|---|
|  |  |  | public BaseResponse<List<MdEt0>> et0InWeek(Long cropId){ | 
|---|
|  |  |  | List<MdEt0> res = this.sv.et0InWeek(cropId); | 
|---|
|  |  |  | public BaseResponse<List<VoEt0Simple>> et0InWeek(Long cropId){ | 
|---|
|  |  |  | List<VoEt0Simple> res = this.sv.et0InWeek(cropId); | 
|---|
|  |  |  | return BaseResponseUtils.buildSuccess(res); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|