|
@@ -22,7 +22,6 @@ import lombok.extern.slf4j.Slf4j;
|
|
import org.springframework.beans.BeanUtils;
|
|
import org.springframework.beans.BeanUtils;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
-import org.springframework.transaction.annotation.Transactional;
|
|
|
|
import tk.mybatis.mapper.entity.Condition;
|
|
import tk.mybatis.mapper.entity.Condition;
|
|
|
|
|
|
import java.time.LocalDateTime;
|
|
import java.time.LocalDateTime;
|
|
@@ -35,7 +34,6 @@ import java.util.Set;
|
|
*/
|
|
*/
|
|
@Slf4j
|
|
@Slf4j
|
|
@Service
|
|
@Service
|
|
-@Transactional
|
|
|
|
public class SysUserServiceImpl extends IBaseServiceImpl<SysUserEntity, Long> implements SysUserService {
|
|
public class SysUserServiceImpl extends IBaseServiceImpl<SysUserEntity, Long> implements SysUserService {
|
|
|
|
|
|
@Autowired
|
|
@Autowired
|
|
@@ -194,7 +192,6 @@ public class SysUserServiceImpl extends IBaseServiceImpl<SysUserEntity, Long> im
|
|
this.save(entity);
|
|
this.save(entity);
|
|
|
|
|
|
// 设置默认角色, 2:sys_visitor游客角色
|
|
// 设置默认角色, 2:sys_visitor游客角色
|
|
-// int a = 1/0;
|
|
|
|
Long userId = entity.getId();
|
|
Long userId = entity.getId();
|
|
sysRoleService.saveUserRole(userId, Long.valueOf("2"));
|
|
sysRoleService.saveUserRole(userId, Long.valueOf("2"));
|
|
|
|
|