From 4f84f1d45e0624685a558436359bfff7b754ecb1 Mon Sep 17 00:00:00 2001 From: chenlu <1320612696@qq.com> Date: 星期二, 23 一月 2024 10:55:59 +0800 Subject: [PATCH] Merge branch 'master' of http://10.153.19.25:10101/r/ERP_override --- 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