|  |  |  | 
|---|
|  |  |  | import com.dy.common.webUtil.BaseResponse; | 
|---|
|  |  |  | import com.dy.common.webUtil.BaseResponseUtils; | 
|---|
|  |  |  | import com.dy.common.webUtil.ResultCodeMsg; | 
|---|
|  |  |  | import com.dy.pipIrrGlobal.pojoMd.MdEt0; | 
|---|
|  |  |  | import com.dy.pipIrrGlobal.voLargeScreen.VoBaseInfo; | 
|---|
|  |  |  | 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; | 
|---|
|  |  |  | import io.swagger.v3.oas.annotations.media.Content; | 
|---|
|  |  |  | import io.swagger.v3.oas.annotations.media.Schema; | 
|---|
|  |  |  | 
|---|
|  |  |  | import org.springframework.web.bind.annotation.RestController; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import java.util.Date; | 
|---|
|  |  |  | import java.util.List; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * @Author: liurunyu | 
|---|
|  |  |  | 
|---|
|  |  |  | @GetMapping(path = "baseInfo") | 
|---|
|  |  |  | @SsoAop() | 
|---|
|  |  |  | public BaseResponse<VoBaseInfo> baseInfo() { | 
|---|
|  |  |  | VoBaseInfo res = this.sv.baseInfo(); | 
|---|
|  |  |  | return BaseResponseUtils.buildSuccess(res); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 大屏展示---基本信息 | 
|---|
|  |  |  | * @return 基本信息 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Operation(summary = "大屏展示", description = "基本信息") | 
|---|
|  |  |  | @ApiResponses(value = { | 
|---|
|  |  |  | @ApiResponse( | 
|---|
|  |  |  | responseCode = ResultCodeMsg.RsCode.SUCCESS_CODE, | 
|---|
|  |  |  | description = "基本信息(BaseResponse.content:VoBaseInfo{})", | 
|---|
|  |  |  | content = {@Content(mediaType = MediaType.APPLICATION_JSON_VALUE, | 
|---|
|  |  |  | schema = @Schema(implementation = VoBaseInfo.class))} | 
|---|
|  |  |  | ) | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | @GetMapping(path = "basicInfo") | 
|---|
|  |  |  | @SsoAop() | 
|---|
|  |  |  | public BaseResponse<VoBaseInfo> basicInfo() { | 
|---|
|  |  |  | VoBaseInfo res = this.sv.baseInfo(); | 
|---|
|  |  |  | return BaseResponseUtils.buildSuccess(res); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | 
|---|
|  |  |  | return BaseResponseUtils.buildSuccess(res); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 昨日农户用水前5名 | 
|---|
|  |  |  | * @return 数据集合 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Operation(summary = "昨日农户用水前5名", description = "昨日农户用水前5名统计") | 
|---|
|  |  |  | @ApiResponses(value = { | 
|---|
|  |  |  | @ApiResponse( | 
|---|
|  |  |  | responseCode = ResultCodeMsg.RsCode.SUCCESS_CODE, | 
|---|
|  |  |  | description = "昨日农户用水前5名统计(BaseResponse.content:[VoTopXClient{}])", | 
|---|
|  |  |  | content = {@Content(mediaType = MediaType.APPLICATION_JSON_VALUE, | 
|---|
|  |  |  | schema = @Schema(implementation = VoTopXClient.class))} | 
|---|
|  |  |  | ) | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | @GetMapping(path = "top5ClientYesterday") | 
|---|
|  |  |  | @SsoAop() | 
|---|
|  |  |  | public BaseResponse<List<VoTopXClient>> top5ClientYesterday(){ | 
|---|
|  |  |  | List<VoTopXClient> res = this.sv.top5ClientYesterday(); | 
|---|
|  |  |  | return BaseResponseUtils.buildSuccess(res); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 昨日取水口用水前5名 | 
|---|
|  |  |  | * @return 数据集合 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Operation(summary = "昨日取水口用水前5名", description = "昨日取水口用水前5名统计") | 
|---|
|  |  |  | @ApiResponses(value = { | 
|---|
|  |  |  | @ApiResponse( | 
|---|
|  |  |  | responseCode = ResultCodeMsg.RsCode.SUCCESS_CODE, | 
|---|
|  |  |  | description = "昨日取水口用水前5名统计(BaseResponse.content:[VoTopXIntake{}])", | 
|---|
|  |  |  | content = {@Content(mediaType = MediaType.APPLICATION_JSON_VALUE, | 
|---|
|  |  |  | schema = @Schema(implementation = VoTopXIntake.class))} | 
|---|
|  |  |  | ) | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | @GetMapping(path = "top5IntakeYesterday") | 
|---|
|  |  |  | @SsoAop() | 
|---|
|  |  |  | public BaseResponse<List<VoTopXIntake>> top5IntakeYesterday(){ | 
|---|
|  |  |  | List<VoTopXIntake> res = this.sv.top5IntakeYesterday(); | 
|---|
|  |  |  | return BaseResponseUtils.buildSuccess(res); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 得到所有作物 | 
|---|
|  |  |  | * @return 数据集合 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Operation(summary = "得到所有作物", description = "得到所有作物") | 
|---|
|  |  |  | @ApiResponses(value = { | 
|---|
|  |  |  | @ApiResponse( | 
|---|
|  |  |  | responseCode = ResultCodeMsg.RsCode.SUCCESS_CODE, | 
|---|
|  |  |  | description = "得到所有作物(BaseResponse.content:[VoTopXIntake{}])", | 
|---|
|  |  |  | content = {@Content(mediaType = MediaType.APPLICATION_JSON_VALUE, | 
|---|
|  |  |  | schema = @Schema(implementation = VoCropsSimple.class))} | 
|---|
|  |  |  | ) | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | @GetMapping(path = "allCropts") | 
|---|
|  |  |  | @SsoAop() | 
|---|
|  |  |  | public BaseResponse<List<VoCropsSimple>> allCropts(){ | 
|---|
|  |  |  | List<VoCropsSimple> res = this.sv.allCropts(); | 
|---|
|  |  |  | return BaseResponseUtils.buildSuccess(res); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 得到一个作物一周内的蒸腾量 | 
|---|
|  |  |  | * @return 数据集合 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Operation(summary = "一个作物一周内的蒸腾量", description = "一个作物一周内的蒸腾量") | 
|---|
|  |  |  | @ApiResponses(value = { | 
|---|
|  |  |  | @ApiResponse( | 
|---|
|  |  |  | responseCode = ResultCodeMsg.RsCode.SUCCESS_CODE, | 
|---|
|  |  |  | description = "一个作物一周内的蒸腾量(BaseResponse.content:[VoTopXIntake{}])", | 
|---|
|  |  |  | content = {@Content(mediaType = MediaType.APPLICATION_JSON_VALUE, | 
|---|
|  |  |  | schema = @Schema(implementation = VoEt0Simple.class))} | 
|---|
|  |  |  | ) | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | @GetMapping(path = "et0InWeek") | 
|---|
|  |  |  | @SsoAop() | 
|---|
|  |  |  | public BaseResponse<List<VoEt0Simple>> et0InWeek(Long cropId){ | 
|---|
|  |  |  | List<VoEt0Simple> res = this.sv.et0InWeek(cropId); | 
|---|
|  |  |  | return BaseResponseUtils.buildSuccess(res); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|