zhubaomin
2025-04-11 9f3c4a33279f10ed420d604765487558ab0744f0
pipIrr-platform/pipIrr-web/pipIrr-web-statistics/src/main/java/com/dy/pipIrrStatistics/special/SpecialCtrl.java
@@ -5,6 +5,7 @@
import com.dy.common.webUtil.BaseResponseUtils;
import com.dy.common.webUtil.QueryResultVo;
import com.dy.common.webUtil.ResultCodeMsg;
import com.dy.pipIrrGlobal.voSpecial.VoAbnormalCloseValve;
import com.dy.pipIrrGlobal.voSpecial.VoSteal;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.media.Content;
@@ -27,7 +28,7 @@
/**
 * @Author: liurunyu
 * @Date: 2025/2/7 13:52
 * @Description 专量统计
 * @Description 专题统计
 */
@Slf4j
@Tag(name = "专题统计", description = "专题统计")
@@ -46,7 +47,7 @@
    /**
     * 涉嫌偷水
     * @return
     * @return 数据集合
     */
    @Operation(summary = "涉嫌偷水", description = "涉嫌偷水统计")
    @ApiResponses(value = {
@@ -67,4 +68,29 @@
        return BaseResponseUtils.buildSuccess(res);
    }
    /**
     * 异常关阀
     * @return 数据集合
     */
    @Operation(summary = "异常关阀", description = "异常关阀统计")
    @ApiResponses(value = {
            @ApiResponse(
                    responseCode = ResultCodeMsg.RsCode.SUCCESS_CODE,
                    description = "异常关阀统计(BaseResponse.content:QueryResultVo{[VoSteal{}]})",
                    content = {@Content(mediaType = MediaType.APPLICATION_JSON_VALUE,
                            schema = @Schema(implementation = VoAbnormalCloseValve.class))}
            )
    })
    @GetMapping(path = "abnormalCloseValve")
    @SsoAop()
    public BaseResponse<QueryResultVo<List<VoAbnormalCloseValve>>> abnormalCloseValve(@Valid QoAbnormalCloseValve qo, BindingResult bindingResult) throws Exception {
        if(bindingResult != null && bindingResult.hasErrors()){
            return BaseResponseUtils.buildFail(Objects.requireNonNull(bindingResult.getFieldError()).getDefaultMessage());
        }
        QueryResultVo<List<VoAbnormalCloseValve>> res = this.sv.abnormalCloseValve(qo);
        return BaseResponseUtils.buildSuccess(res);
    }
}