From 013788bb3c3ec6c11274292a3af8957d4e8d1772 Mon Sep 17 00:00:00 2001 From: xiangpei <xiangpei@timesnew.cn> Date: 星期五, 31 五月 2024 14:51:09 +0800 Subject: [PATCH] 实体类调整 --- src/main/java/com/ycl/jxkg/controller/student/UserController.java | 10 ++++------ 1 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/main/java/com/ycl/jxkg/controller/student/UserController.java b/src/main/java/com/ycl/jxkg/controller/student/UserController.java index 0ddb2db..71794d8 100644 --- a/src/main/java/com/ycl/jxkg/controller/student/UserController.java +++ b/src/main/java/com/ycl/jxkg/controller/student/UserController.java @@ -2,10 +2,10 @@ import com.ycl.jxkg.base.BaseApiController; import com.ycl.jxkg.base.Result; -import com.ycl.jxkg.domain.Message; -import com.ycl.jxkg.domain.MessageUser; -import com.ycl.jxkg.domain.User; -import com.ycl.jxkg.domain.UserEventLog; +import com.ycl.jxkg.domain.entity.Message; +import com.ycl.jxkg.domain.entity.MessageUser; +import com.ycl.jxkg.domain.entity.User; +import com.ycl.jxkg.domain.entity.UserEventLog; import com.ycl.jxkg.domain.enums.RoleEnum; import com.ycl.jxkg.domain.enums.UserStatusEnum; import com.ycl.jxkg.event.UserEvent; @@ -20,7 +20,6 @@ import lombok.RequiredArgsConstructor; import org.apache.commons.lang3.StringUtils; import org.springframework.beans.BeanUtils; -import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.ApplicationEventPublisher; import org.springframework.web.bind.annotation.*; @@ -64,7 +63,6 @@ user.setStatus(UserStatusEnum.Enable.getCode()); user.setLastActiveTime(new Date()); user.setCreateTime(new Date()); - user.setDeleted(false); userService.insertUser(user); UserEventLog userEventLog = new UserEventLog(user.getId(), user.getUserName(), user.getRealName(), new Date()); userEventLog.setContent("娆㈣繋 " + user.getUserName() + " 娉ㄥ唽鏉ュ埌瀛︿箣鎬濆紑婧愯�冭瘯绯荤粺"); -- Gitblit v1.8.0