|  |  |  | 
|---|
|  |  |  | import com.dy.common.aop.SsoAop; | 
|---|
|  |  |  | import com.dy.common.webUtil.BaseResponse; | 
|---|
|  |  |  | import com.dy.common.webUtil.BaseResponseUtils; | 
|---|
|  |  |  | import com.dy.common.webUtil.QueryResultVo; | 
|---|
|  |  |  | import com.dy.common.webUtil.ResultCodeMsg; | 
|---|
|  |  |  | import com.dy.pipIrrGlobal.VoAllRound.VoArIntakeRemote; | 
|---|
|  |  |  | import com.dy.pipIrrGlobal.voAllRound.VoArIntakeRemote; | 
|---|
|  |  |  | import io.swagger.v3.oas.annotations.Operation; | 
|---|
|  |  |  | import io.swagger.v3.oas.annotations.media.Content; | 
|---|
|  |  |  | import io.swagger.v3.oas.annotations.media.Schema; | 
|---|
|  |  |  | 
|---|
|  |  |  | * @Description | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Slf4j | 
|---|
|  |  |  | @Tag(name = "有关远程操作信息的综合", description = "有关远程操作信息的综合") | 
|---|
|  |  |  | @Tag(name = "取水口综合信息之相关监测数据", description = "取水口综合信息之相关监测数据") | 
|---|
|  |  |  | @RestController | 
|---|
|  |  |  | @RequestMapping(path = "ar4Remote") | 
|---|
|  |  |  | @SuppressWarnings("unchecked")//java版本越高,对泛型约束越严,所以配置SuppressWarnings("unchecked") | 
|---|
|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 综合信息 | 
|---|
|  |  |  | * 取水口基本信息 | 
|---|
|  |  |  | * @return 所有片区数据 | 
|---|
|  |  |  | * 取水口监测数据 | 
|---|
|  |  |  | * @return | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Operation(summary = "综合信息", description = "取水口基本信息") | 
|---|
|  |  |  | @Operation(summary = "综合信息", description = "取水口监测数据") | 
|---|
|  |  |  | @ApiResponses(value = { | 
|---|
|  |  |  | @ApiResponse( | 
|---|
|  |  |  | responseCode = ResultCodeMsg.RsCode.SUCCESS_CODE, | 
|---|
|  |  |  | description = "取水口基本信息(BaseResponse.content:QueryResultVo{})", | 
|---|
|  |  |  | description = "取水口监测数据(BaseResponse.content:VoArIntakeRemote{})", | 
|---|
|  |  |  | content = {@Content(mediaType = MediaType.APPLICATION_JSON_VALUE, | 
|---|
|  |  |  | schema = @Schema(implementation = VoArIntakeRemote.class))} | 
|---|
|  |  |  | ) | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | @GetMapping(path = "intakeInfo") | 
|---|
|  |  |  | @SsoAop() | 
|---|
|  |  |  | public BaseResponse<QueryResultVo<VoArIntakeRemote>> intakeInfo(Long intakeId) { | 
|---|
|  |  |  | public BaseResponse<VoArIntakeRemote> intakeInfo(Long intakeId) { | 
|---|
|  |  |  | if (intakeId == null || intakeId.longValue() == 0L) { | 
|---|
|  |  |  | return BaseResponseUtils.buildException("取水口id不能为空"); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | QueryResultVo<VoArIntakeRemote> res = this.sv.intakeInfo(intakeId); | 
|---|
|  |  |  | VoArIntakeRemote res = this.sv.intakeInfo(intakeId); | 
|---|
|  |  |  | return BaseResponseUtils.buildSuccess(res); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|