From c5b5e0fc9c2bda5ec88ea9328efeed2b60468dbc Mon Sep 17 00:00:00 2001 From: Parker Date: Mon, 8 Aug 2022 20:09:09 +0800 Subject: [PATCH 1/8] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=BE=AA=E7=8E=AF?= =?UTF-8?q?=E4=BE=9D=E8=B5=96=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../system/user/service/impl/UserRoleRefServiceImpl.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/opsli-modulars/opsli-modulars-system/src/main/java/org/opsli/modulars/system/user/service/impl/UserRoleRefServiceImpl.java b/opsli-modulars/opsli-modulars-system/src/main/java/org/opsli/modulars/system/user/service/impl/UserRoleRefServiceImpl.java index 6a950b6f..1270b9a5 100644 --- a/opsli-modulars/opsli-modulars-system/src/main/java/org/opsli/modulars/system/user/service/impl/UserRoleRefServiceImpl.java +++ b/opsli-modulars/opsli-modulars-system/src/main/java/org/opsli/modulars/system/user/service/impl/UserRoleRefServiceImpl.java @@ -46,6 +46,7 @@ import org.opsli.modulars.system.user.mapper.UserRoleRefMapper; import org.opsli.modulars.system.user.service.IUserRoleRefService; import org.opsli.modulars.system.user.service.IUserService; import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.context.annotation.Lazy; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @@ -59,6 +60,7 @@ import java.util.List; * @date 2020-09-16 17:33 */ @Service +@Lazy public class UserRoleRefServiceImpl extends ServiceImpl implements IUserRoleRefService { @Autowired(required = false) -- Gitee From f9131f1d69889349aba446b7595755182a010bd7 Mon Sep 17 00:00:00 2001 From: Parker Date: Mon, 8 Aug 2022 20:24:43 +0800 Subject: [PATCH 2/8] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=BE=AA=E7=8E=AF?= =?UTF-8?q?=E4=BE=9D=E8=B5=96=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../system/dict/service/impl/DictDetailServiceImpl.java | 3 +++ .../system/role/service/impl/RoleMenuRefServiceImpl.java | 3 +++ .../system/user/service/impl/UserOrgRefServiceImpl.java | 4 ++++ .../system/user/service/impl/UserRoleRefServiceImpl.java | 4 +++- .../modulars/system/user/service/impl/UserServiceImpl.java | 6 ++---- 5 files changed, 15 insertions(+), 5 deletions(-) diff --git a/opsli-modulars/opsli-modulars-system/src/main/java/org/opsli/modulars/system/dict/service/impl/DictDetailServiceImpl.java b/opsli-modulars/opsli-modulars-system/src/main/java/org/opsli/modulars/system/dict/service/impl/DictDetailServiceImpl.java index 93b603f1..60b4e8ce 100644 --- a/opsli-modulars/opsli-modulars-system/src/main/java/org/opsli/modulars/system/dict/service/impl/DictDetailServiceImpl.java +++ b/opsli-modulars/opsli-modulars-system/src/main/java/org/opsli/modulars/system/dict/service/impl/DictDetailServiceImpl.java @@ -37,6 +37,7 @@ import org.opsli.modulars.system.dict.mapper.DictDetailMapper; import org.opsli.modulars.system.dict.service.IDictDetailService; import org.opsli.modulars.system.dict.service.IDictService; import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.context.annotation.Lazy; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @@ -54,6 +55,8 @@ public class DictDetailServiceImpl extends CrudServiceImpl implements IUserRoleRefService { @Autowired(required = false) private UserRoleRefMapper mapper; + @Lazy @Autowired private IRoleService iRoleService; + @Lazy @Autowired private IUserService iUserService; + @Lazy @Autowired private IMenuService iMenuService; diff --git a/opsli-modulars/opsli-modulars-system/src/main/java/org/opsli/modulars/system/user/service/impl/UserServiceImpl.java b/opsli-modulars/opsli-modulars-system/src/main/java/org/opsli/modulars/system/user/service/impl/UserServiceImpl.java index ffd8ef7d..d7952295 100644 --- a/opsli-modulars/opsli-modulars-system/src/main/java/org/opsli/modulars/system/user/service/impl/UserServiceImpl.java +++ b/opsli-modulars/opsli-modulars-system/src/main/java/org/opsli/modulars/system/user/service/impl/UserServiceImpl.java @@ -17,12 +17,10 @@ package org.opsli.modulars.system.user.service.impl; import cn.hutool.core.collection.CollUtil; import cn.hutool.core.convert.Convert; -import cn.hutool.core.util.RandomUtil; import cn.hutool.core.util.StrUtil; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper; -import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper; import com.github.pagehelper.PageInfo; import com.google.common.collect.Lists; import lombok.AllArgsConstructor; @@ -46,7 +44,6 @@ import org.opsli.core.utils.OptionsUtil; import org.opsli.core.utils.UserUtil; import org.opsli.core.utils.VerificationCodeUtil; import org.opsli.modulars.system.SystemMsg; -import org.opsli.modulars.system.menu.service.IMenuService; import org.opsli.modulars.system.role.entity.SysRole; import org.opsli.modulars.system.role.service.IRoleService; import org.opsli.modulars.system.user.entity.SysUser; @@ -55,7 +52,7 @@ import org.opsli.modulars.system.user.mapper.UserMapper; import org.opsli.modulars.system.user.service.IUserRoleRefService; import org.opsli.modulars.system.user.service.IUserService; import org.opsli.plugins.security.utils.PasswordUtil; -import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.context.annotation.Lazy; import org.springframework.security.crypto.password.PasswordEncoder; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @@ -72,6 +69,7 @@ import java.util.List; * @date 2020-09-16 17:33 */ @AllArgsConstructor +@Lazy @Service public class UserServiceImpl extends CrudServiceImpl implements IUserService { -- Gitee From 968fef485490262d75d7fed1dcd5118ba707c374 Mon Sep 17 00:00:00 2001 From: Parker Date: Mon, 8 Aug 2022 22:06:35 +0800 Subject: [PATCH 3/8] =?UTF-8?q?fix:=20=E5=85=B3=E9=97=AD=20Session=20?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/org/opsli/core/autoconfigure/conf/SecurityConfig.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/opsli-base-support/opsli-core/src/main/java/org/opsli/core/autoconfigure/conf/SecurityConfig.java b/opsli-base-support/opsli-core/src/main/java/org/opsli/core/autoconfigure/conf/SecurityConfig.java index 84039da2..09574ae1 100644 --- a/opsli-base-support/opsli-core/src/main/java/org/opsli/core/autoconfigure/conf/SecurityConfig.java +++ b/opsli-base-support/opsli-core/src/main/java/org/opsli/core/autoconfigure/conf/SecurityConfig.java @@ -69,6 +69,9 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter { // 关闭csrf token认证不需要csrf防护 .csrf().disable(); + // 关闭Session回话管理器 + http.sessionManagement().disable(); + // 初始化 initAuthorizeRequests this.initAuthorizeRequests(http); } -- Gitee From c215a5c57a5a0389da534437374d67d44a12befb Mon Sep 17 00:00:00 2001 From: Parker Date: Mon, 8 Aug 2022 22:10:22 +0800 Subject: [PATCH 4/8] =?UTF-8?q?fix:=20=E5=85=B3=E9=97=AD=20Session=20?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/org/opsli/core/autoconfigure/conf/SecurityConfig.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opsli-base-support/opsli-core/src/main/java/org/opsli/core/autoconfigure/conf/SecurityConfig.java b/opsli-base-support/opsli-core/src/main/java/org/opsli/core/autoconfigure/conf/SecurityConfig.java index 09574ae1..5c186ee8 100644 --- a/opsli-base-support/opsli-core/src/main/java/org/opsli/core/autoconfigure/conf/SecurityConfig.java +++ b/opsli-base-support/opsli-core/src/main/java/org/opsli/core/autoconfigure/conf/SecurityConfig.java @@ -69,7 +69,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter { // 关闭csrf token认证不需要csrf防护 .csrf().disable(); - // 关闭Session回话管理器 + // 关闭Session会话管理器 http.sessionManagement().disable(); // 初始化 initAuthorizeRequests -- Gitee From f3195df4e644ac1b35733756539cee1a4e7efd64 Mon Sep 17 00:00:00 2001 From: Parker Date: Mon, 8 Aug 2022 22:25:38 +0800 Subject: [PATCH 5/8] =?UTF-8?q?fix:=20=E5=85=B3=E9=97=AD=20rememberMe?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../org/opsli/core/autoconfigure/conf/SecurityConfig.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/opsli-base-support/opsli-core/src/main/java/org/opsli/core/autoconfigure/conf/SecurityConfig.java b/opsli-base-support/opsli-core/src/main/java/org/opsli/core/autoconfigure/conf/SecurityConfig.java index 5c186ee8..5e4aa29f 100644 --- a/opsli-base-support/opsli-core/src/main/java/org/opsli/core/autoconfigure/conf/SecurityConfig.java +++ b/opsli-base-support/opsli-core/src/main/java/org/opsli/core/autoconfigure/conf/SecurityConfig.java @@ -69,9 +69,12 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter { // 关闭csrf token认证不需要csrf防护 .csrf().disable(); - // 关闭Session会话管理器 + // 关闭Session会话管理器 JWT 不需要 http.sessionManagement().disable(); + // 关闭记住我功能 JWT 不需要 + http.rememberMe().disable(); + // 初始化 initAuthorizeRequests this.initAuthorizeRequests(http); } @@ -108,6 +111,8 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter { http.addFilterBefore(new JwtAuthenticationTokenFilter(uidUserDetailDetailService), UsernamePasswordAuthenticationFilter.class); + + // 异常处理 http.exceptionHandling() .accessDeniedHandler(accessDeniedHandler) -- Gitee From 6092b3336cfb2fcf94c59412c20b3d923ea2630a Mon Sep 17 00:00:00 2001 From: Parker Date: Mon, 8 Aug 2022 23:39:08 +0800 Subject: [PATCH 6/8] =?UTF-8?q?fix:=20=E5=85=B3=E9=97=AD=20rememberMe?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../core/autoconfigure/conf/SecurityConfig.java | 12 +++++------- opsli-starter/src/main/resources/application.yaml | 5 +---- 2 files changed, 6 insertions(+), 11 deletions(-) diff --git a/opsli-base-support/opsli-core/src/main/java/org/opsli/core/autoconfigure/conf/SecurityConfig.java b/opsli-base-support/opsli-core/src/main/java/org/opsli/core/autoconfigure/conf/SecurityConfig.java index 5e4aa29f..1dc15a2b 100644 --- a/opsli-base-support/opsli-core/src/main/java/org/opsli/core/autoconfigure/conf/SecurityConfig.java +++ b/opsli-base-support/opsli-core/src/main/java/org/opsli/core/autoconfigure/conf/SecurityConfig.java @@ -67,13 +67,11 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter { .frameOptions().disable() .and() // 关闭csrf token认证不需要csrf防护 - .csrf().disable(); - - // 关闭Session会话管理器 JWT 不需要 - http.sessionManagement().disable(); - - // 关闭记住我功能 JWT 不需要 - http.rememberMe().disable(); + .csrf().disable() + // 关闭Session会话管理器 JWT 不需要 + .sessionManagement().disable() + // 关闭记住我功能 JWT 不需要 + .rememberMe().disable(); // 初始化 initAuthorizeRequests this.initAuthorizeRequests(http); diff --git a/opsli-starter/src/main/resources/application.yaml b/opsli-starter/src/main/resources/application.yaml index ad2db14e..4e1234f3 100644 --- a/opsli-starter/src/main/resources/application.yaml +++ b/opsli-starter/src/main/resources/application.yaml @@ -164,14 +164,11 @@ opsli: credentials-expired: -1 # 排除过滤URL url-exclusion: - # 未登陆状态下可以访问 - anonymous: + permit-all: - "/captcha" - "/system/slipCount" - "/system/login" - "/system/login-by-code" - # 无限制 - permit-all: - "/api/*/common/public-key" - "/api/*/common/email/create-code" - "/api/*/common/mobile/create-code" -- Gitee From f5e716f51850b1f81d3a4e3d6a942d9f1361c747 Mon Sep 17 00:00:00 2001 From: Parker Date: Tue, 9 Aug 2022 16:00:39 +0800 Subject: [PATCH 7/8] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E8=8B=A5=E5=B9=B2?= =?UTF-8?q?BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. 修复登陆后无法记录IP问题 2. 优化白名单URL 3. 去除登陆校验密码安全度选项 --- .../core/autoconfigure/conf/SecurityConfig.java | 9 --------- .../modulars/system/login/dto/LoginModel.java | 2 +- .../system/logs/factory/UserLoginLogFactory.java | 3 ++- .../security/properties/AuthProperties.java | 3 --- opsli-starter/src/main/resources/application.yaml | 14 +++++++------- 5 files changed, 10 insertions(+), 21 deletions(-) diff --git a/opsli-base-support/opsli-core/src/main/java/org/opsli/core/autoconfigure/conf/SecurityConfig.java b/opsli-base-support/opsli-core/src/main/java/org/opsli/core/autoconfigure/conf/SecurityConfig.java index 1dc15a2b..7351a134 100644 --- a/opsli-base-support/opsli-core/src/main/java/org/opsli/core/autoconfigure/conf/SecurityConfig.java +++ b/opsli-base-support/opsli-core/src/main/java/org/opsli/core/autoconfigure/conf/SecurityConfig.java @@ -82,15 +82,6 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter { * @param http http */ private void initAuthorizeRequests(HttpSecurity http) throws Exception { - // 设置URL 未登陆前可访问URL - List anonymousList = authProperties.getUrlExclusion().getAnonymous(); - if(null != anonymousList){ - String[] urlExclusionArray = anonymousList.toArray(new String[0]); - http.authorizeRequests() - // URL 未登陆前可访问 - .antMatchers(urlExclusionArray).anonymous(); - } - // 设置URL白名单 List permitAll = authProperties.getUrlExclusion().getPermitAll(); if(null != permitAll){ diff --git a/opsli-modulars/opsli-modulars-system/src/main/java/org/opsli/modulars/system/login/dto/LoginModel.java b/opsli-modulars/opsli-modulars-system/src/main/java/org/opsli/modulars/system/login/dto/LoginModel.java index 41b8919f..4763c8fd 100644 --- a/opsli-modulars/opsli-modulars-system/src/main/java/org/opsli/modulars/system/login/dto/LoginModel.java +++ b/opsli-modulars/opsli-modulars-system/src/main/java/org/opsli/modulars/system/login/dto/LoginModel.java @@ -35,7 +35,7 @@ public class LoginModel { private String principal; /** 密码 */ - @Validator({ValidatorType.IS_NOT_NULL, ValidatorType.IS_SECURITY_PASSWORD}) + @Validator({ValidatorType.IS_NOT_NULL}) @ValidatorLenMin(6) private String password; diff --git a/opsli-modulars/opsli-modulars-system/src/main/java/org/opsli/modulars/system/logs/factory/UserLoginLogFactory.java b/opsli-modulars/opsli-modulars-system/src/main/java/org/opsli/modulars/system/logs/factory/UserLoginLogFactory.java index a99d7955..3b531cdb 100644 --- a/opsli-modulars/opsli-modulars-system/src/main/java/org/opsli/modulars/system/logs/factory/UserLoginLogFactory.java +++ b/opsli-modulars/opsli-modulars-system/src/main/java/org/opsli/modulars/system/logs/factory/UserLoginLogFactory.java @@ -5,6 +5,7 @@ import org.opsli.api.wrapper.system.logs.LoginLogsModel; import org.opsli.api.wrapper.system.user.UserModel; import org.opsli.api.wrapper.system.user.UserOrgRefModel; import org.opsli.common.enums.DictType; +import org.opsli.common.utils.IPUtil; import org.opsli.core.utils.UserUtil; import org.springframework.util.ObjectUtils; @@ -27,7 +28,7 @@ public final class UserLoginLogFactory { loginInfo.setUsername(user.getUsername()); loginInfo.setRealName(user.getRealName()); // *** 需要确保 user对象的ip信息是有值的 - loginInfo.setRemoteAddr(user.getLoginIp()); + loginInfo.setRemoteAddr(IPUtil.getClientAddressBySingle(request)); String header = request.getHeader("User-Agent"); loginInfo.setUserAgent(header); diff --git a/opsli-plugins/opsli-plugins-security/src/main/java/org/opsli/plugins/security/properties/AuthProperties.java b/opsli-plugins/opsli-plugins-security/src/main/java/org/opsli/plugins/security/properties/AuthProperties.java index 8e91c938..44cc0e69 100644 --- a/opsli-plugins/opsli-plugins-security/src/main/java/org/opsli/plugins/security/properties/AuthProperties.java +++ b/opsli-plugins/opsli-plugins-security/src/main/java/org/opsli/plugins/security/properties/AuthProperties.java @@ -45,9 +45,6 @@ public class AuthProperties { @Data public static class UrlExclusion { - /** 未登陆状态下可以访问 */ - private List anonymous; - /** 无限制 */ private List permitAll; diff --git a/opsli-starter/src/main/resources/application.yaml b/opsli-starter/src/main/resources/application.yaml index 4e1234f3..098d489a 100644 --- a/opsli-starter/src/main/resources/application.yaml +++ b/opsli-starter/src/main/resources/application.yaml @@ -165,13 +165,6 @@ opsli: # 排除过滤URL url-exclusion: permit-all: - - "/captcha" - - "/system/slipCount" - - "/system/login" - - "/system/login-by-code" - - "/api/*/common/public-key" - - "/api/*/common/email/create-code" - - "/api/*/common/mobile/create-code" - "/swagger-ui.html" - "/doc.html" - "/swagger-resources/**" @@ -180,6 +173,13 @@ opsli: - "/swagger/**" - "/v2/api-docs" - "/druid/**" + - "/captcha" + - "/system/slipCount" + - "/system/login" + - "/system/login-by-code" + - "/api/*/common/public-key" + - "/api/*/common/email/create-code" + - "/api/*/common/mobile/create-code" # 超级管理员账号 super-admin: system -- Gitee From c62b96be7de54ef697c3fc26af6d44ab53b08d85 Mon Sep 17 00:00:00 2001 From: Parker Date: Tue, 9 Aug 2022 16:22:09 +0800 Subject: [PATCH 8/8] =?UTF-8?q?fix:=20=E8=A1=A5=E5=85=A8SQL?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../2.0\347\211\210\346\234\254/opsli-boot.sql" | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git "a/db-file/2.0\347\211\210\346\234\254/opsli-boot.sql" "b/db-file/2.0\347\211\210\346\234\254/opsli-boot.sql" index 52001821..2566278c 100644 --- "a/db-file/2.0\347\211\210\346\234\254/opsli-boot.sql" +++ "b/db-file/2.0\347\211\210\346\234\254/opsli-boot.sql" @@ -4499,14 +4499,14 @@ CREATE TABLE `sys_user` ( -- Records of sys_user -- ---------------------------- BEGIN; -INSERT INTO `sys_user` VALUES (1, 'system', 'TS{MTY1OTM2NzA0MjMzOA==}$2a$10$FtVMZrf/LeM4ikU2ZXO8XuhmRDpJmIxLVm6Fa3ZEM8jVgZ2CFhuH6', '2', '1', '超级管理员', '15321010110', '112', 'http://upload.bedebug.com/20220802/1660928576913664278HC1G.jpg', '', 'meet.parker@foxmail.com', '没有自学能力的人没有未来', '', '0', '0', 0, '1', '0', 95, 1, '2020-09-25 15:03:22', 1, '2021-05-04 01:59:11', '2022-08-02 15:29:33'); -INSERT INTO `sys_user` VALUES (1313694379541635074, 'demo', 'TS{MTY1ODI5ODUzMzMwOA==}$2a$10$TS0LnHPhQT87rEpFi1A60.BeTQ80vCRGGL.5CPTqb61eCzP8HzueK', '2', '1', '租户内部管理员', '15311111111', 'test_001', 'http://upload.bedebug.com/20211013/1635589382475625280EW3N.jpg', '', 'meet.parker1@foxmail.com', NULL, NULL, '1', '0', 1, '0', '0', 6, 1, '2020-10-06 23:15:22', 1465879900211294210, '2021-12-01 16:42:13', '2022-07-27 13:49:16'); -INSERT INTO `sys_user` VALUES (1315218541317750785, 'zhangsan', 'TS{MTY1ODI5ODUzMzMwOA==}$2a$10$TS0LnHPhQT87rEpFi1A60.BeTQ80vCRGGL.5CPTqb61eCzP8HzueK', '2', '1', '张三', NULL, '123123', NULL, '', NULL, NULL, NULL, '1', '0', 1, '0', '0', 3, 1, '2020-10-11 17:11:50', 1, '2021-06-11 17:44:11', '2022-07-20 14:30:20'); -INSERT INTO `sys_user` VALUES (1315224823500120066, 'lyf', 'TS{MTY1ODI5ODUzMzMwOA==}$2a$10$TS0LnHPhQT87rEpFi1A60.BeTQ80vCRGGL.5CPTqb61eCzP8HzueK', '2', '1', '刘亦菲', NULL, '0101001', NULL, '', NULL, NULL, NULL, '1', '0', 1, '0', '0', 0, 1313694379541635074, '2020-10-11 17:36:48', 1313694379541635074, '2020-10-11 17:36:48', '2022-07-20 14:30:20'); -INSERT INTO `sys_user` VALUES (1465171199435362305, 'admin', 'TS{MTY1OTM2NDMzMzM5Nw==}$2a$10$2GTqJeztWRLOYDoB2EStm.FoncwpHG4GGtieD7qZbND1.cwjXx34u', '2', '1', '系统管理员', NULL, '01001', NULL, '', NULL, NULL, NULL, '1', '0', 0, '1', '0', 6, 1, '2021-11-29 12:10:10', 1, '2022-07-26 20:16:02', '2022-08-01 22:32:13'); -INSERT INTO `sys_user` VALUES (1465879900211294210, 'tenant', 'TS{MTY1ODI5ODUzMzMwOA==}$2a$10$TS0LnHPhQT87rEpFi1A60.BeTQ80vCRGGL.5CPTqb61eCzP8HzueK', '2', '1', '租户管理员', '15300000000', '123123', NULL, '', 'meet.parker2@foxmail.com', NULL, NULL, '0', '1', 1, '0', '0', 1, 1, '2021-12-01 11:06:17', 1, '2021-12-01 11:06:53', '2022-07-27 13:49:20'); -INSERT INTO `sys_user` VALUES (1465886867659096066, 'dept', 'TS{MTY1ODI5ODUzMzMwOA==}$2a$10$TS0LnHPhQT87rEpFi1A60.BeTQ80vCRGGL.5CPTqb61eCzP8HzueK', '2', '1', '部门管理员', NULL, '123213213', NULL, '', NULL, NULL, NULL, '1', '0', 1, '0', '0', 0, 1313694379541635074, '2021-12-01 11:33:59', 1313694379541635074, '2021-12-01 11:33:59', '2022-07-20 14:30:20'); -INSERT INTO `sys_user` VALUES (1465991640378986498, 'songyi', 'TS{MTY1ODI5ODUzMzMwOA==}$2a$10$TS0LnHPhQT87rEpFi1A60.BeTQ80vCRGGL.5CPTqb61eCzP8HzueK', '2', '1', '宋轶', NULL, '432431', NULL, '', NULL, NULL, NULL, '1', '0', 1, '0', '0', 0, 1465886867659096066, '2021-12-01 18:30:19', 1465886867659096066, '2021-12-01 18:30:19', '2022-07-20 14:30:20'); +INSERT INTO `sys_user`(`id`, `username`, `password`, `password_level`, `enable`, `real_name`, `mobile`, `no`, `avatar`, `login_ip`, `email`, `sign`, `remark`, `iz_exist_org`, `iz_tenant_admin`, `tenant_id`, `enable_switch_tenant`, `deleted`, `version`, `create_by`, `create_time`, `update_by`, `update_time`, `ts`) VALUES (1, 'system', 'TS{MTY1OTM2NzA0MjMzOA==}$2a$10$FtVMZrf/LeM4ikU2ZXO8XuhmRDpJmIxLVm6Fa3ZEM8jVgZ2CFhuH6', '2', '1', '超级管理员', '15321010110', '112', 'http://upload.bedebug.com/20220802/1660928576913664278HC1G.jpg', '', 'meet.parker@foxmail.com', '没有自学能力的人没有未来', '', '0', '0', 0, '1', '0', 95, 1, '2020-09-25 15:03:22', 1, '2021-05-04 01:59:11', '2022-08-02 15:29:33'); +INSERT INTO `sys_user`(`id`, `username`, `password`, `password_level`, `enable`, `real_name`, `mobile`, `no`, `avatar`, `login_ip`, `email`, `sign`, `remark`, `iz_exist_org`, `iz_tenant_admin`, `tenant_id`, `enable_switch_tenant`, `deleted`, `version`, `create_by`, `create_time`, `update_by`, `update_time`, `ts`) VALUES (1313694379541635074, 'demo', 'TS{MTY1ODI5ODUzMzMwOA==}$2a$10$TS0LnHPhQT87rEpFi1A60.BeTQ80vCRGGL.5CPTqb61eCzP8HzueK', '2', '1', '租户内部管理员', '13301225424', 'test_001', 'http://upload.bedebug.com/20220809/1660188426197843638MXWG.jpg', '', 'meet.parker1@foxmail.com', NULL, NULL, '1', '0', 1, '0', '0', 6, 1, '2020-10-06 23:15:22', 1465879900211294210, '2021-12-01 16:42:13', '2022-08-09 13:55:05'); +INSERT INTO `sys_user`(`id`, `username`, `password`, `password_level`, `enable`, `real_name`, `mobile`, `no`, `avatar`, `login_ip`, `email`, `sign`, `remark`, `iz_exist_org`, `iz_tenant_admin`, `tenant_id`, `enable_switch_tenant`, `deleted`, `version`, `create_by`, `create_time`, `update_by`, `update_time`, `ts`) VALUES (1315218541317750785, 'zhangsan', 'TS{MTY1ODI5ODUzMzMwOA==}$2a$10$TS0LnHPhQT87rEpFi1A60.BeTQ80vCRGGL.5CPTqb61eCzP8HzueK', '2', '1', '张三', '55555555555', '123123', NULL, '', 'meet.parker3@foxmail.com', NULL, NULL, '1', '0', 1, '0', '0', 3, 1, '2020-10-11 17:11:50', 1, '2021-06-11 17:44:11', '2022-08-09 14:01:18'); +INSERT INTO `sys_user`(`id`, `username`, `password`, `password_level`, `enable`, `real_name`, `mobile`, `no`, `avatar`, `login_ip`, `email`, `sign`, `remark`, `iz_exist_org`, `iz_tenant_admin`, `tenant_id`, `enable_switch_tenant`, `deleted`, `version`, `create_by`, `create_time`, `update_by`, `update_time`, `ts`) VALUES (1315224823500120066, 'lyf', 'TS{MTY1ODI5ODUzMzMwOA==}$2a$10$TS0LnHPhQT87rEpFi1A60.BeTQ80vCRGGL.5CPTqb61eCzP8HzueK', '2', '1', '刘亦菲', '44444444444', '0101001', NULL, '', 'meet.parker4@foxmail.com', NULL, NULL, '1', '0', 1, '0', '0', 0, 1313694379541635074, '2020-10-11 17:36:48', 1313694379541635074, '2020-10-11 17:36:48', '2022-08-09 14:01:22'); +INSERT INTO `sys_user`(`id`, `username`, `password`, `password_level`, `enable`, `real_name`, `mobile`, `no`, `avatar`, `login_ip`, `email`, `sign`, `remark`, `iz_exist_org`, `iz_tenant_admin`, `tenant_id`, `enable_switch_tenant`, `deleted`, `version`, `create_by`, `create_time`, `update_by`, `update_time`, `ts`) VALUES (1465171199435362305, 'admin', 'TS{MTY1OTM2NDMzMzM5Nw==}$2a$10$2GTqJeztWRLOYDoB2EStm.FoncwpHG4GGtieD7qZbND1.cwjXx34u', '2', '1', '系统管理员', '33333333333', '01001', 'http://upload.bedebug.com/20220809/16605552760947393781AWR.jpg', '', 'meet.parker5@foxmail.com', NULL, NULL, '1', '0', 0, '1', '0', 6, 1, '2021-11-29 12:10:10', 1, '2022-07-26 20:16:02', '2022-08-09 14:01:26'); +INSERT INTO `sys_user`(`id`, `username`, `password`, `password_level`, `enable`, `real_name`, `mobile`, `no`, `avatar`, `login_ip`, `email`, `sign`, `remark`, `iz_exist_org`, `iz_tenant_admin`, `tenant_id`, `enable_switch_tenant`, `deleted`, `version`, `create_by`, `create_time`, `update_by`, `update_time`, `ts`) VALUES (1465879900211294210, 'tenant', 'TS{MTY1ODI5ODUzMzMwOA==}$2a$10$TS0LnHPhQT87rEpFi1A60.BeTQ80vCRGGL.5CPTqb61eCzP8HzueK', '2', '1', '租户管理员', '17310558930', '123123', 'http://upload.bedebug.com/20220809/166121046267039280RQ81U.jpg', '', 'meet.parker2@foxmail.com', NULL, NULL, '0', '1', 1, '0', '0', 1, 1, '2021-12-01 11:06:17', 1, '2021-12-01 11:06:53', '2022-08-09 13:55:40'); +INSERT INTO `sys_user`(`id`, `username`, `password`, `password_level`, `enable`, `real_name`, `mobile`, `no`, `avatar`, `login_ip`, `email`, `sign`, `remark`, `iz_exist_org`, `iz_tenant_admin`, `tenant_id`, `enable_switch_tenant`, `deleted`, `version`, `create_by`, `create_time`, `update_by`, `update_time`, `ts`) VALUES (1465886867659096066, 'dept', 'TS{MTY1ODI5ODUzMzMwOA==}$2a$10$TS0LnHPhQT87rEpFi1A60.BeTQ80vCRGGL.5CPTqb61eCzP8HzueK', '2', '1', '部门管理员', '22222222222', '123213213', 'http://upload.bedebug.com/20220809/16610489376695984679HUA.jpg', '', 'meet.parker6@foxmail.com', NULL, NULL, '1', '0', 1, '0', '0', 0, 1313694379541635074, '2021-12-01 11:33:59', 1313694379541635074, '2021-12-01 11:33:59', '2022-08-09 14:01:30'); +INSERT INTO `sys_user`(`id`, `username`, `password`, `password_level`, `enable`, `real_name`, `mobile`, `no`, `avatar`, `login_ip`, `email`, `sign`, `remark`, `iz_exist_org`, `iz_tenant_admin`, `tenant_id`, `enable_switch_tenant`, `deleted`, `version`, `create_by`, `create_time`, `update_by`, `update_time`, `ts`) VALUES (1465991640378986498, 'songyi', 'TS{MTY1ODI5ODUzMzMwOA==}$2a$10$TS0LnHPhQT87rEpFi1A60.BeTQ80vCRGGL.5CPTqb61eCzP8HzueK', '2', '1', '宋轶', '11111111111', '432431', 'http://upload.bedebug.com/20220809/1661003971159749330PV6N.jpg', '', 'meet.parker7@foxmail.com', NULL, NULL, '1', '0', 1, '0', '0', 0, 1465886867659096066, '2021-12-01 18:30:19', 1465886867659096066, '2021-12-01 18:30:19', '2022-08-09 14:01:33'); COMMIT; -- ---------------------------- -- Gitee