From f6fe949db75c0879ca506eadce6976eb94492d09 Mon Sep 17 00:00:00 2001
From: skyouc
Date: 星期六, 24 五月 2025 15:39:42 +0800
Subject: [PATCH] 1.出库作业未判断小于零的作业(完成) 2.入出为历史添加库位号,托盘码显示(完成) 3.确认出为完成后,是否清空托盘码(完成) 4.库位主档托盘码未显示(完成)

---
 rsf-server/src/main/java/com/vincent/rsf/server/common/exception/GlobalExceptionHandler.java |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/rsf-server/src/main/java/com/vincent/rsf/server/common/exception/GlobalExceptionHandler.java b/rsf-server/src/main/java/com/vincent/rsf/server/common/exception/GlobalExceptionHandler.java
index 66f60c4..1c1bbc5 100644
--- a/rsf-server/src/main/java/com/vincent/rsf/server/common/exception/GlobalExceptionHandler.java
+++ b/rsf-server/src/main/java/com/vincent/rsf/server/common/exception/GlobalExceptionHandler.java
@@ -1,6 +1,7 @@
 package com.vincent.rsf.server.common.exception;
 
 import com.vincent.rsf.framework.common.R;
+import com.vincent.rsf.framework.exception.CoolException;
 import com.vincent.rsf.server.common.constant.Constants;
 import com.vincent.rsf.server.common.utils.CommonUtil;
 import org.slf4j.Logger;
@@ -43,9 +44,17 @@
     @ExceptionHandler(BusinessException.class)
     public R businessExceptionHandler(BusinessException e, HttpServletResponse response) {
         CommonUtil.addCrossHeaders(response);
+        return R.parse(e.getMessage());
+    }
+
+    @ResponseBody
+    @ExceptionHandler(CoolException.class)
+    public R coolExceptionHandler(CoolException e, HttpServletResponse response) {
+        CommonUtil.addCrossHeaders(response);
         return R.error(e.getMessage());
     }
 
+
     @ResponseBody
     @ExceptionHandler(Throwable.class)
     public R exceptionHandler(Throwable e, HttpServletResponse response) {

--
Gitblit v1.9.1