From 2a610a7b1d04df61768567a5651fd34e7c99cde9 Mon Sep 17 00:00:00 2001 From: LSH Date: 星期一, 25 三月 2024 12:55:14 +0800 Subject: [PATCH] # --- src/main/java/com/zy/asrs/utils/PostMesDataUtils.java | 9 +++++---- 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/zy/asrs/utils/PostMesDataUtils.java b/src/main/java/com/zy/asrs/utils/PostMesDataUtils.java index 65ff408..dad036d 100644 --- a/src/main/java/com/zy/asrs/utils/PostMesDataUtils.java +++ b/src/main/java/com/zy/asrs/utils/PostMesDataUtils.java @@ -2,6 +2,7 @@ import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSONObject; +import com.core.common.SpringUtils; import com.core.exception.CoolException; import com.zy.asrs.service.ApiLogService; import com.zy.asrs.service.impl.ApiLogServiceImpl; @@ -14,8 +15,6 @@ @Slf4j public class PostMesDataUtils extends AbstractHandler<String> { - - private ApiLogService apiLogService = new ApiLogServiceImpl(); public ReturnT<String> postMesData(String name,String URL,String mesPath, Object combParam){ // if (true){ @@ -45,12 +44,13 @@ throw new CoolException("涓婃姤"+name); } } catch (Exception e) { - log.error("涓婃姤澶辫触"); + log.error("璇锋眰鎺ュ彛澶辫触锛侊紒锛乽rl锛歿}锛況equest锛歿}锛況esponse锛歿}", URL+"/"+mesPath, JSON.toJSONString(combParam), response); // TransactionAspectSupport.currentTransactionStatus().setRollbackOnly(); return FAIL.setMsg(e.getMessage()); } finally { try { // 淇濆瓨鎺ュ彛鏃ュ織 + ApiLogService apiLogService = SpringUtils.getBean(ApiLogService.class); apiLogService.save( "涓婃姤"+name, URL +"/"+ mesPath, @@ -60,7 +60,8 @@ response, success ); - } catch (Exception e) { log.error("", e); } + } catch (Exception e) { + log.error("", e); } } } return SUCCESS; -- Gitblit v1.9.1