From 9fed593ab7a76e66a1f6e3552f27ab70f2d7ff7e Mon Sep 17 00:00:00 2001
From: liurunyu <lry9898@163.com>
Date: 星期二, 08 十月 2024 09:51:38 +0800
Subject: [PATCH] 优化log4j2.yml日志配置文件中的日志文件大小及文件数量配置

---
 pipIrr-platform/pipIrr-web/pipIrr-web-sell/src/main/java/com/dy/pipIrrSell/general/GeneralCtrl.java |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/pipIrr-platform/pipIrr-web/pipIrr-web-sell/src/main/java/com/dy/pipIrrSell/general/GeneralCtrl.java b/pipIrr-platform/pipIrr-web/pipIrr-web-sell/src/main/java/com/dy/pipIrrSell/general/GeneralCtrl.java
index 1dc16a5..2190533 100644
--- a/pipIrr-platform/pipIrr-web/pipIrr-web-sell/src/main/java/com/dy/pipIrrSell/general/GeneralCtrl.java
+++ b/pipIrr-platform/pipIrr-web/pipIrr-web-sell/src/main/java/com/dy/pipIrrSell/general/GeneralCtrl.java
@@ -212,7 +212,10 @@
     })
     @GetMapping(path = "getSummaries")
     @SsoAop()
-    public BaseResponse<Map> getSummaries(QoSummary vo){
+    public BaseResponse<Map> getSummaries( @Valid QoSummary vo, BindingResult bindingResult){
+        if(bindingResult != null && bindingResult.hasErrors()){
+            return BaseResponseUtils.buildErrorMsg(Objects.requireNonNull(bindingResult.getFieldError()).getDefaultMessage());
+        }
         try {
             Map res = generalSv.getSummaries(vo);
             return BaseResponseUtils.buildSuccess(res);

--
Gitblit v1.8.0