Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
log-platform
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
赵啸非
log-platform
Commits
d900941c
Commit
d900941c
authored
May 17, 2023
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加服务检测拉起脚本
parent
2fe2f9d5
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
29 additions
and
4 deletions
+29
-4
db/menu.sql
db/menu.sql
+17
-0
log-manager-ui/admin/src/views/operate/log/list.vue
log-manager-ui/admin/src/views/operate/log/list.vue
+2
-3
log-manager/src/main/java/com/mortals/xhx/base/framework/listener/OperateMessageConsumerListener.java
...se/framework/listener/OperateMessageConsumerListener.java
+1
-0
log-manager/src/main/java/com/mortals/xhx/module/access/web/AccessLogController.java
...om/mortals/xhx/module/access/web/AccessLogController.java
+3
-0
log-manager/src/main/java/com/mortals/xhx/module/biz/web/BizLogController.java
...java/com/mortals/xhx/module/biz/web/BizLogController.java
+3
-1
log-manager/src/main/java/com/mortals/xhx/module/error/web/ErrorLogController.java
.../com/mortals/xhx/module/error/web/ErrorLogController.java
+1
-0
log-manager/src/main/java/com/mortals/xhx/module/operate/web/OperateLogController.java
.../mortals/xhx/module/operate/web/OperateLogController.java
+2
-0
No files found.
db/menu.sql
View file @
d900941c
...
@@ -70,3 +70,20 @@ INSERT INTO `mortals_xhx_resource` VALUES (null, '平台用户操作日志业务
...
@@ -70,3 +70,20 @@ INSERT INTO `mortals_xhx_resource` VALUES (null, '平台用户操作日志业务
-- ----------------------------
-- ----------------------------
-- 平台用户操作日志业务参数 SQL
-- 平台用户操作日志业务参数 SQL
-- ----------------------------
-- ----------------------------
INSERT
INTO
`mortals_xhx_param`
VALUES
(
null
,
'平台标识'
,
'OperateLog'
,
'platformMark'
,
'base-manager'
,
'基础管理服务'
,
1
,
4
,
0
,
'level'
,
NULL
,
NULL
,
NULL
);
INSERT
INTO
`mortals_xhx_param`
VALUES
(
null
,
'平台标识'
,
'OperateLog'
,
'platformMark'
,
'device-manager'
,
'设备管理服务'
,
1
,
4
,
0
,
'level'
,
NULL
,
NULL
,
NULL
);
INSERT
INTO
`mortals_xhx_param`
VALUES
(
null
,
'平台标识'
,
'OperateLog'
,
'platformMark'
,
'portal-manager'
,
'门户管理服务'
,
1
,
4
,
0
,
'level'
,
NULL
,
NULL
,
NULL
);
INSERT
INTO
`mortals_xhx_param`
VALUES
(
null
,
'平台标识'
,
'OperateLog'
,
'platformMark'
,
'log-manager'
,
'日志管理服务'
,
1
,
4
,
0
,
'level'
,
NULL
,
NULL
,
NULL
);
INSERT
INTO
`mortals_xhx_param`
VALUES
(
null
,
'平台标识'
,
'OperateLog'
,
'platformMark'
,
'sample-manager'
,
'样表管理服务'
,
1
,
4
,
0
,
'level'
,
NULL
,
NULL
,
NULL
);
INSERT
INTO
`mortals_xhx_param`
VALUES
(
null
,
'平台标识'
,
'OperateLog'
,
'platformMark'
,
'fill-manager'
,
'填单管理服务'
,
1
,
4
,
0
,
'level'
,
NULL
,
NULL
,
NULL
);
INSERT
INTO
`mortals_xhx_param`
VALUES
(
null
,
'平台标识'
,
'OperateLog'
,
'platformMark'
,
'refined-manager'
,
'精细化管理服务'
,
1
,
4
,
0
,
'level'
,
NULL
,
NULL
,
NULL
);
INSERT
INTO
`mortals_xhx_param`
VALUES
(
null
,
'平台标识'
,
'OperateLog'
,
'platformMark'
,
'log_wechat'
,
'微官网/预约'
,
1
,
4
,
0
,
'level'
,
NULL
,
NULL
,
NULL
);
INSERT
INTO
`mortals_xhx_param`
VALUES
(
null
,
'平台标识'
,
'OperateLog'
,
'platformMark'
,
'log_bkb'
,
'背靠背'
,
1
,
4
,
0
,
'level'
,
NULL
,
NULL
,
NULL
);
INSERT
INTO
`mortals_xhx_param`
VALUES
(
null
,
'平台标识'
,
'OperateLog'
,
'platformMark'
,
'log_phxt'
,
'排号系统'
,
1
,
4
,
0
,
'level'
,
NULL
,
NULL
,
NULL
);
INSERT
INTO
`mortals_xhx_param`
VALUES
(
null
,
'平台标识'
,
'OperateLog'
,
'platformMark'
,
'log_info'
,
'排号系统'
,
1
,
4
,
0
,
'level'
,
NULL
,
NULL
,
NULL
);
INSERT
INTO
`mortals_xhx_param`
VALUES
(
null
,
'平台标识'
,
'OperateLog'
,
'platformMark'
,
'log_pickup'
,
'存取件系统'
,
1
,
4
,
0
,
'level'
,
NULL
,
NULL
,
NULL
);
INSERT
INTO
`mortals_xhx_param`
VALUES
(
null
,
'平台标识'
,
'OperateLog'
,
'platformMark'
,
'log_pjdevice'
,
'评价系统'
,
1
,
4
,
0
,
'level'
,
NULL
,
NULL
,
NULL
);
INSERT
INTO
`mortals_xhx_param`
VALUES
(
null
,
'平台标识'
,
'OperateLog'
,
'platformMark'
,
'log_guide'
,
'导视系统'
,
1
,
4
,
0
,
'level'
,
NULL
,
NULL
,
NULL
);
log-manager-ui/admin/src/views/operate/log/list.vue
View file @
d900941c
...
@@ -42,9 +42,8 @@
...
@@ -42,9 +42,8 @@
search
:
[
search
:
[
{
{
name
:
"
platformMark
"
,
name
:
"
platformMark
"
,
type
:
"
text
"
,
type
:
"
select
"
,
label
:
"
平台标识
"
,
label
:
"
平台标识
"
fuzzy
:
true
},
},
{
{
name
:
"
logDate
"
,
name
:
"
logDate
"
,
...
...
log-manager/src/main/java/com/mortals/xhx/base/framework/listener/OperateMessageConsumerListener.java
View file @
d900941c
...
@@ -57,6 +57,7 @@ public class OperateMessageConsumerListener {
...
@@ -57,6 +57,7 @@ public class OperateMessageConsumerListener {
log
.
info
(
"[Oper onMessage][消息数量:{}]"
,
messages
.
size
());
log
.
info
(
"[Oper onMessage][消息数量:{}]"
,
messages
.
size
());
List
<
OperateLogEntity
>
collect
=
messages
.
stream
().
map
(
entity
->
{
List
<
OperateLogEntity
>
collect
=
messages
.
stream
().
map
(
entity
->
{
//OperateLogEntity entity = JSON.parseObject(new String(str), OperateLogEntity.class);
//OperateLogEntity entity = JSON.parseObject(new String(str), OperateLogEntity.class);
entity
.
setId
(
IdUtil
.
getSnowflake
(
0
,
1
).
nextId
());
entity
.
setId
(
IdUtil
.
getSnowflake
(
0
,
1
).
nextId
());
entity
.
setCreateUserId
(
1L
);
entity
.
setCreateUserId
(
1L
);
entity
.
setCreateTime
(
new
Date
());
entity
.
setCreateTime
(
new
Date
());
...
...
log-manager/src/main/java/com/mortals/xhx/module/access/web/AccessLogController.java
View file @
d900941c
...
@@ -48,6 +48,9 @@ public class AccessLogController extends BaseCRUDJsonBodyMappingController<Acces
...
@@ -48,6 +48,9 @@ public class AccessLogController extends BaseCRUDJsonBodyMappingController<Acces
@Override
@Override
protected
void
init
(
Map
<
String
,
Object
>
model
,
Context
context
)
{
protected
void
init
(
Map
<
String
,
Object
>
model
,
Context
context
)
{
this
.
addDict
(
model
,
"appName"
,
paramService
.
getParamBySecondOrganize
(
"OperateLog"
,
"platformMark"
));
super
.
init
(
model
,
context
);
super
.
init
(
model
,
context
);
}
}
...
...
log-manager/src/main/java/com/mortals/xhx/module/biz/web/BizLogController.java
View file @
d900941c
...
@@ -34,7 +34,8 @@ import static com.mortals.framework.ap.SysConstains.*;
...
@@ -34,7 +34,8 @@ import static com.mortals.framework.ap.SysConstains.*;
@RestController
@RestController
@RequestMapping
(
"biz/log"
)
@RequestMapping
(
"biz/log"
)
public
class
BizLogController
extends
BaseCRUDJsonBodyMappingController
<
BizLogService
,
BizLogEntity
,
Long
>
{
public
class
BizLogController
extends
BaseCRUDJsonBodyMappingController
<
BizLogService
,
BizLogEntity
,
Long
>
{
@Autowired
private
ParamService
paramService
;
public
BizLogController
(){
public
BizLogController
(){
super
.
setModuleDesc
(
"业务日志"
);
super
.
setModuleDesc
(
"业务日志"
);
...
@@ -42,6 +43,7 @@ public class BizLogController extends BaseCRUDJsonBodyMappingController<BizLogSe
...
@@ -42,6 +43,7 @@ public class BizLogController extends BaseCRUDJsonBodyMappingController<BizLogSe
@Override
@Override
protected
void
init
(
Map
<
String
,
Object
>
model
,
Context
context
)
{
protected
void
init
(
Map
<
String
,
Object
>
model
,
Context
context
)
{
this
.
addDict
(
model
,
"appName"
,
paramService
.
getParamBySecondOrganize
(
"OperateLog"
,
"platformMark"
));
super
.
init
(
model
,
context
);
super
.
init
(
model
,
context
);
}
}
...
...
log-manager/src/main/java/com/mortals/xhx/module/error/web/ErrorLogController.java
View file @
d900941c
...
@@ -46,6 +46,7 @@ public class ErrorLogController extends BaseCRUDJsonBodyMappingController<ErrorL
...
@@ -46,6 +46,7 @@ public class ErrorLogController extends BaseCRUDJsonBodyMappingController<ErrorL
protected
void
init
(
Map
<
String
,
Object
>
model
,
Context
context
)
{
protected
void
init
(
Map
<
String
,
Object
>
model
,
Context
context
)
{
this
.
addDict
(
model
,
"platform"
,
paramService
.
getParamBySecondOrganize
(
"ErrorLog"
,
"platform"
));
this
.
addDict
(
model
,
"platform"
,
paramService
.
getParamBySecondOrganize
(
"ErrorLog"
,
"platform"
));
this
.
addDict
(
model
,
"level"
,
paramService
.
getParamBySecondOrganize
(
"ErrorLog"
,
"level"
));
this
.
addDict
(
model
,
"level"
,
paramService
.
getParamBySecondOrganize
(
"ErrorLog"
,
"level"
));
this
.
addDict
(
model
,
"appName"
,
paramService
.
getParamBySecondOrganize
(
"OperateLog"
,
"platformMark"
));
super
.
init
(
model
,
context
);
super
.
init
(
model
,
context
);
}
}
...
...
log-manager/src/main/java/com/mortals/xhx/module/operate/web/OperateLogController.java
View file @
d900941c
...
@@ -45,6 +45,8 @@ public class OperateLogController extends BaseCRUDJsonBodyMappingController<Oper
...
@@ -45,6 +45,8 @@ public class OperateLogController extends BaseCRUDJsonBodyMappingController<Oper
@Override
@Override
protected
void
init
(
Map
<
String
,
Object
>
model
,
Context
context
)
{
protected
void
init
(
Map
<
String
,
Object
>
model
,
Context
context
)
{
this
.
addDict
(
model
,
"operType"
,
paramService
.
getParamBySecondOrganize
(
"OperateLog"
,
"operType"
));
this
.
addDict
(
model
,
"operType"
,
paramService
.
getParamBySecondOrganize
(
"OperateLog"
,
"operType"
));
this
.
addDict
(
model
,
"platformMark"
,
paramService
.
getParamBySecondOrganize
(
"OperateLog"
,
"platformMark"
));
super
.
init
(
model
,
context
);
super
.
init
(
model
,
context
);
}
}
...
...
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