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
31e681d1
Commit
31e681d1
authored
May 16, 2023
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加服务检测拉起脚本
parent
e255e13a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
8 deletions
+13
-8
log-manager/src/main/java/com/mortals/xhx/module/operate/service/impl/OperateLogServiceImpl.java
...hx/module/operate/service/impl/OperateLogServiceImpl.java
+11
-5
log-manager/src/test/java/com/mortals/httpclient/operate/OperateLogController.http
.../com/mortals/httpclient/operate/OperateLogController.http
+2
-3
No files found.
log-manager/src/main/java/com/mortals/xhx/module/operate/service/impl/OperateLogServiceImpl.java
View file @
31e681d1
...
@@ -30,9 +30,15 @@ public class OperateLogServiceImpl extends AbstractCRUDServiceImpl<OperateLogDao
...
@@ -30,9 +30,15 @@ public class OperateLogServiceImpl extends AbstractCRUDServiceImpl<OperateLogDao
return
super
.
save
(
entity
);
return
super
.
save
(
entity
);
}
}
// @Override
@Override
// public int save(List<OperateLogEntity> list, Context context) throws AppException {
public
OperateLogEntity
save
(
OperateLogEntity
entity
,
Context
context
)
throws
AppException
{
// list.forEach(item->item.setId(IdUtil.getSnowflake(0, 1).nextId()));
entity
.
setId
(
IdUtil
.
getSnowflake
(
0
,
1
).
nextId
());
// return super.save(list, context);
return
super
.
save
(
entity
,
context
);
// }
}
@Override
public
int
save
(
List
<
OperateLogEntity
>
list
,
Context
context
)
throws
AppException
{
list
.
forEach
(
item
->
item
.
setId
(
IdUtil
.
getSnowflake
(
0
,
1
).
nextId
()));
return
super
.
save
(
list
,
context
);
}
}
}
\ No newline at end of file
log-manager/src/test/java/com/mortals/httpclient/operate/OperateLogController.http
View file @
31e681d1
...
@@ -28,7 +28,6 @@ Content-Type: application/json
...
@@ -28,7 +28,6 @@ Content-Type: application/json
###平台用户操作日志业务更新与保存
###平台用户操作日志业务更新与保存
POST {{baseUrl}}/operate/log/save
POST {{baseUrl}}/operate/log/save
Authorization: {{authToken}}
Content-Type: application/json
Content-Type: application/json
{
{
...
@@ -39,8 +38,8 @@ Content-Type: application/json
...
@@ -39,8 +38,8 @@ Content-Type: application/json
"requestUrl":"r40qzm",
"requestUrl":"r40qzm",
"content":"5x7eyb",
"content":"5x7eyb",
"ip":"h6wkk2",
"ip":"h6wkk2",
"logDate":"
1660665600000
",
"logDate":"
2023-05-01 16:25:12
",
"operType":574
,
"operType":574
}
}
> {%
> {%
...
...
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