Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
certificate-print
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
廖旭伟
certificate-print
Commits
0b8158b6
Commit
0b8158b6
authored
Apr 24, 2025
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加修改权限菜单配置
parent
6241b150
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
4 deletions
+36
-4
certificate-manager/db/add_db.sql
certificate-manager/db/add_db.sql
+23
-0
certificate-manager/src/main/java/com/mortals/xhx/daemon/applicationservice/DemoStartedService.java
...als/xhx/daemon/applicationservice/DemoStartedService.java
+13
-4
No files found.
certificate-manager/db/add_db.sql
View file @
0b8158b6
...
...
@@ -193,6 +193,29 @@ CREATE TABLE mortals_xhx_menu(
INDEX
`idx_parentId`
(
`parentId`
)
USING
BTREE
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8
COMMENT
=
'菜单信息业务'
;
DROP
TABLE
IF
EXISTS
`mortals_xhx_user`
;
CREATE
TABLE
`mortals_xhx_user`
(
`id`
bigint
(
20
)
NOT
NULL
AUTO_INCREMENT
COMMENT
'用户ID,主键,自增长'
,
`loginName`
varchar
(
50
)
DEFAULT
NULL
COMMENT
'登录名'
,
`loginPwd`
varchar
(
128
)
DEFAULT
NULL
COMMENT
'登录密码,使用md5双次加密'
,
`loginLimitAddress`
varchar
(
200
)
DEFAULT
NULL
COMMENT
'登录限制地址,多个IP地址用逗号分隔,可以使用IP段匹配,如:172.17.*非空:则只能该值内的IP可以登录'
,
`realName`
varchar
(
64
)
DEFAULT
NULL
COMMENT
'用户名'
,
`mobile`
varchar
(
21
)
DEFAULT
NULL
COMMENT
'用户手机号'
,
`phone`
varchar
(
21
)
DEFAULT
NULL
COMMENT
'用户联系电话'
,
`email`
varchar
(
50
)
DEFAULT
NULL
COMMENT
'用户邮箱'
,
`qq`
varchar
(
20
)
DEFAULT
NULL
COMMENT
'QQ号码'
,
`userType`
tinyint
(
2
)
DEFAULT
NULL
COMMENT
'用户类型(0.系统用户,1.普通用户,2.工作人员)'
,
`siteIds`
varchar
(
512
)
DEFAULT
NULL
COMMENT
'所属站点id,多个逗号分隔'
,
`areaCodes`
varchar
(
512
)
DEFAULT
NULL
COMMENT
'所属区域code,多个逗号分隔'
,
`status`
tinyint
(
2
)
DEFAULT
NULL
COMMENT
'用户状态(0.停用,1.正常,2.冻结,3.销户,4.离职)'
,
`createTime`
datetime
DEFAULT
NULL
COMMENT
'创建时间'
,
`createUserId`
bigint
(
20
)
DEFAULT
NULL
COMMENT
'创建用户'
,
`createUserName`
varchar
(
50
)
DEFAULT
NULL
COMMENT
'创建用户名称'
,
`lastLoginTime`
datetime
DEFAULT
NULL
COMMENT
'最后一次登录时间'
,
`lastLoginAddress`
varchar
(
21
)
DEFAULT
NULL
COMMENT
'最后一次登录地址'
,
PRIMARY
KEY
(
`id`
)
USING
BTREE
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
16870
DEFAULT
CHARSET
=
utf8
COMMENT
=
'用户信息业务'
;
ALTER
TABLE
mortals_xhx_param
ADD
COLUMN
`updateUserId`
bigint
(
20
)
COMMENT
'更新用户'
;
ALTER
TABLE
mortals_xhx_param
ADD
COLUMN
`updateUserName`
varchar
(
50
)
COMMENT
'创建用户名称'
;
...
...
certificate-manager/src/main/java/com/mortals/xhx/daemon/applicationservice/DemoStartedService.java
View file @
0b8158b6
...
...
@@ -3,6 +3,7 @@ package com.mortals.xhx.daemon.applicationservice;
import
com.mortals.framework.springcloud.service.IApplicationStartedService
;
import
com.mortals.framework.util.ThreadPool
;
import
com.mortals.xhx.base.system.resource.service.ResourceService
;
import
com.mortals.xhx.base.system.user.service.UserService
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.logging.Log
;
import
org.apache.commons.logging.LogFactory
;
...
...
@@ -14,14 +15,22 @@ import org.springframework.stereotype.Component;
//@ConditionalOnProperty(name="com.mortal",prefix = "",havingValue = "xxx")
public
class
DemoStartedService
implements
IApplicationStartedService
{
private
static
Log
logger
=
LogFactory
.
getLog
(
DemoStartedService
.
class
);
@Autowired
private
ResourceService
resourceService
;
@Autowired
private
UserService
userService
;
@Override
public
void
start
()
{
log
ger
.
info
(
"开始服务..[配置已加载完成,并且所有框架都已经初始化]"
);
log
.
info
(
"开始服务..[配置已加载完成,并且所有框架都已经初始化]"
);
ThreadPool
.
getInstance
().
init
(
8
);
try
{
log
.
info
(
"开始同步用户!"
);
userService
.
refreshUser
();
log
.
info
(
"结束同步用户!"
);
resourceService
.
refreshResourceUrl
(
"com.mortals.xhx"
,
null
);
}
catch
(
Exception
e
)
{
log
.
error
(
"刷新资源失败"
,
e
);
...
...
@@ -31,7 +40,7 @@ public class DemoStartedService implements IApplicationStartedService {
@Override
public
void
stop
()
{
log
ger
.
info
(
"停止服务.."
);
log
.
info
(
"停止服务.."
);
}
@Override
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment