From 57976ad3ec3ea505ceb9dee7bc96d53da73a4546 Mon Sep 17 00:00:00 2001 From: guoyuji <guoyujie@ng.com> Date: 星期二, 23 一月 2024 10:50:36 +0800 Subject: [PATCH] 加上相关注释 --- north-glass-erp/src/main/java/com/example/erp/service/userInfo/UserService.java | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/north-glass-erp/src/main/java/com/example/erp/service/userInfo/UserService.java b/north-glass-erp/src/main/java/com/example/erp/service/userInfo/UserService.java index 6bcfea4..7bc8f6b 100644 --- a/north-glass-erp/src/main/java/com/example/erp/service/userInfo/UserService.java +++ b/north-glass-erp/src/main/java/com/example/erp/service/userInfo/UserService.java @@ -13,6 +13,7 @@ import org.springframework.cache.annotation.CacheEvict; import org.springframework.cache.annotation.Cacheable; import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; import java.util.List; @@ -54,7 +55,7 @@ return userMapper.getUserByID(userId); } - + @Transactional public User register(User user) { User returnUser = new User(); if(userMapper.register(user)){ -- Gitblit v1.8.0