zhubaomin
2025-04-07 e67870fff62635cd14beb0d5988f08aeef4b22fa
pipIrr-platform/pipIrr-web/pipIrr-web-remote/src/main/java/com/dy/pipIrrRemote/allRound/Ar4RemoteCtrl.java
@@ -3,9 +3,8 @@
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;
@@ -25,7 +24,7 @@
 * @Description
 */
@Slf4j
@Tag(name = "有关远程操作信息的综合", description = "有关远程操作信息的综合")
@Tag(name = "取水口综合信息之相关监测数据", description = "取水口综合信息之相关监测数据")
@RestController
@RequestMapping(path = "ar4Remote")
@SuppressWarnings("unchecked")//java版本越高,对泛型约束越严,所以配置SuppressWarnings("unchecked")
@@ -40,25 +39,25 @@
    /**
     * 综合信息
     * 取水口基本信息
     * @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);
    }
}