From c0792dcbc27d0580d9ed0e7aa3cf34c96c651840 Mon Sep 17 00:00:00 2001
From: fuliqi <fuliqi@qq.com>
Date: 星期四, 04 七月 2024 17:50:58 +0800
Subject: [PATCH] mq配置修改

---
 src/main/java/com/ycl/jxkg/config/spring/security/RestAuthenticationSuccessHandler.java |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/main/java/com/ycl/jxkg/config/spring/security/RestAuthenticationSuccessHandler.java b/src/main/java/com/ycl/jxkg/config/spring/security/RestAuthenticationSuccessHandler.java
index 4d28777..a576497 100644
--- a/src/main/java/com/ycl/jxkg/config/spring/security/RestAuthenticationSuccessHandler.java
+++ b/src/main/java/com/ycl/jxkg/config/spring/security/RestAuthenticationSuccessHandler.java
@@ -1,9 +1,10 @@
 package com.ycl.jxkg.config.spring.security;
 
 import com.ycl.jxkg.base.SystemCode;
-import com.ycl.jxkg.domain.UserEventLog;
+import com.ycl.jxkg.domain.entity.UserEventLog;
 import com.ycl.jxkg.event.UserEvent;
 import com.ycl.jxkg.service.UserService;
+import org.springframework.beans.BeanUtils;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.context.ApplicationEventPublisher;
 import org.springframework.security.core.Authentication;
@@ -47,14 +48,13 @@
         Object object = authentication.getPrincipal();
         if (null != object) {
             User springUser = (User) object;
-            com.ycl.jxkg.domain.User user = userService.getUserByUserName(springUser.getUsername());
+            com.ycl.jxkg.domain.entity.User user = userService.getUserByUserName(springUser.getUsername());
             if (null != user) {
                 UserEventLog userEventLog = new UserEventLog(user.getId(), user.getUserName(), user.getRealName(), new Date());
-                userEventLog.setContent(user.getUserName() + " 鐧诲綍浜嗗涔嬫�濆紑婧愯�冭瘯绯荤粺");
+                userEventLog.setContent(user.getUserName() + " 鐧诲綍浜嗘睙瑗胯闊宠棰戝煿璁郴缁�");
                 eventPublisher.publishEvent(new UserEvent(userEventLog));
-                com.ycl.jxkg.domain.User newUser = new com.ycl.jxkg.domain.User();
-                newUser.setUserName(user.getUserName());
-                newUser.setImagePath(user.getImagePath());
+                com.ycl.jxkg.domain.entity.User newUser = new com.ycl.jxkg.domain.entity.User();
+                BeanUtils.copyProperties(user,newUser);
                 RestUtil.response(response, SystemCode.OK.getCode(), SystemCode.OK.getMessage(), newUser);
             }
         } else {

--
Gitblit v1.8.0