New file |
| | |
| | | package com.dy.pipIrrRemote.allRound; |
| | | |
| | | 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 io.swagger.v3.oas.annotations.Operation; |
| | | import io.swagger.v3.oas.annotations.media.Content; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import io.swagger.v3.oas.annotations.responses.ApiResponse; |
| | | import io.swagger.v3.oas.annotations.responses.ApiResponses; |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.http.MediaType; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | /** |
| | | * @Author: liurunyu |
| | | * @Date: 2025/1/14 16:59 |
| | | * @Description |
| | | */ |
| | | @Slf4j |
| | | @Tag(name = "æå
³è¿ç¨æä½ä¿¡æ¯ç综å", description = "æå
³è¿ç¨æä½ä¿¡æ¯ç综å") |
| | | @RestController |
| | | @RequestMapping(path = "ar4Remote") |
| | | @SuppressWarnings("unchecked")//javaçæ¬è¶é«ï¼å¯¹æ³å约æè¶ä¸¥ï¼æä»¥é
ç½®SuppressWarnings("unchecked") |
| | | public class Ar4RemoteCtrl { |
| | | |
| | | private Ar4RemoteSv sv; |
| | | |
| | | @Autowired |
| | | private void setSv(Ar4RemoteSv sv) { |
| | | this.sv = sv; |
| | | } |
| | | |
| | | /** |
| | | * 综åä¿¡æ¯ |
| | | * åæ°´å£åºæ¬ä¿¡æ¯ |
| | | * @return ææçåºæ°æ® |
| | | */ |
| | | @Operation(summary = "综åä¿¡æ¯", description = "åæ°´å£åºæ¬ä¿¡æ¯") |
| | | @ApiResponses(value = { |
| | | @ApiResponse( |
| | | responseCode = ResultCodeMsg.RsCode.SUCCESS_CODE, |
| | | description = "åæ°´å£åºæ¬ä¿¡æ¯ï¼BaseResponse.content:QueryResultVo{}ï¼", |
| | | content = {@Content(mediaType = MediaType.APPLICATION_JSON_VALUE, |
| | | schema = @Schema(implementation = VoArIntakeRemote.class))} |
| | | ) |
| | | }) |
| | | @GetMapping(path = "intakeInfo") |
| | | @SsoAop() |
| | | public BaseResponse<QueryResultVo<VoArIntakeRemote>> intakeInfo(Long intakeId) { |
| | | if (intakeId == null || intakeId.longValue() == 0L) { |
| | | return BaseResponseUtils.buildException("åæ°´å£idä¸è½ä¸ºç©º"); |
| | | } |
| | | QueryResultVo<VoArIntakeRemote> res = this.sv.intakeInfo(intakeId); |
| | | return BaseResponseUtils.buildSuccess(res); |
| | | } |
| | | } |