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
8dcac61c
Commit
8dcac61c
authored
May 15, 2023
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加服务检测拉起脚本
parent
bd6c2080
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
16 deletions
+11
-16
log-manager/src/main/java/com/mortals/xhx/module/access/service/impl/AccessLogServiceImpl.java
.../xhx/module/access/service/impl/AccessLogServiceImpl.java
+0
-6
log-manager/src/main/java/com/mortals/xhx/module/biz/service/impl/BizLogServiceImpl.java
...ortals/xhx/module/biz/service/impl/BizLogServiceImpl.java
+5
-5
log-manager/src/main/java/com/mortals/xhx/module/operate/service/impl/OperateLogServiceImpl.java
...hx/module/operate/service/impl/OperateLogServiceImpl.java
+5
-5
log-manager/src/main/java/com/mortals/xhx/module/operate/web/OperateLogController.java
.../mortals/xhx/module/operate/web/OperateLogController.java
+1
-0
No files found.
log-manager/src/main/java/com/mortals/xhx/module/access/service/impl/AccessLogServiceImpl.java
View file @
8dcac61c
...
@@ -30,12 +30,6 @@ public class AccessLogServiceImpl extends AbstractCRUDServiceImpl<AccessLogDao,
...
@@ -30,12 +30,6 @@ public class AccessLogServiceImpl extends AbstractCRUDServiceImpl<AccessLogDao,
return
super
.
save
(
entity
,
context
);
return
super
.
save
(
entity
,
context
);
}
}
@Override
public
int
save
(
List
<
AccessLogEntity
>
list
,
Context
context
)
throws
AppException
{
list
.
forEach
(
item
->
item
.
setId
(
IdUtil
.
getSnowflake
(
0
,
1
).
nextId
()));
return
super
.
save
(
list
,
context
);
}
public
static
void
main
(
String
[]
args
)
{
public
static
void
main
(
String
[]
args
)
{
Snowflake
snowflake
=
IdUtil
.
getSnowflake
(
0
,
1
);
Snowflake
snowflake
=
IdUtil
.
getSnowflake
(
0
,
1
);
long
id
=
snowflake
.
nextId
();
long
id
=
snowflake
.
nextId
();
...
...
log-manager/src/main/java/com/mortals/xhx/module/biz/service/impl/BizLogServiceImpl.java
View file @
8dcac61c
...
@@ -30,11 +30,11 @@ public class BizLogServiceImpl extends AbstractCRUDServiceImpl<BizLogDao, BizLog
...
@@ -30,11 +30,11 @@ public class BizLogServiceImpl extends AbstractCRUDServiceImpl<BizLogDao, BizLog
return
super
.
save
(
entity
,
context
);
return
super
.
save
(
entity
,
context
);
}
}
@Override
//
@Override
public
int
save
(
List
<
BizLogEntity
>
list
,
Context
context
)
throws
AppException
{
//
public int save(List<BizLogEntity> list, Context context) throws AppException {
list
.
forEach
(
item
->
item
.
setId
(
IdUtil
.
getSnowflake
(
0
,
1
).
nextId
()));
//
list.forEach(item->item.setId(IdUtil.getSnowflake(0, 1).nextId()));
return
super
.
save
(
list
,
context
);
//
return super.save(list, context);
}
//
}
@Override
@Override
public
BizLogEntity
get
(
Long
key
,
Context
context
)
throws
AppException
{
public
BizLogEntity
get
(
Long
key
,
Context
context
)
throws
AppException
{
...
...
log-manager/src/main/java/com/mortals/xhx/module/operate/service/impl/OperateLogServiceImpl.java
View file @
8dcac61c
...
@@ -30,9 +30,9 @@ public class OperateLogServiceImpl extends AbstractCRUDServiceImpl<OperateLogDao
...
@@ -30,9 +30,9 @@ 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 int save(List<OperateLogEntity> list, Context context) throws AppException {
list
.
forEach
(
item
->
item
.
setId
(
IdUtil
.
getSnowflake
(
0
,
1
).
nextId
()));
//
list.forEach(item->item.setId(IdUtil.getSnowflake(0, 1).nextId()));
return
super
.
save
(
list
,
context
);
//
return super.save(list, context);
}
//
}
}
}
\ No newline at end of file
log-manager/src/main/java/com/mortals/xhx/module/operate/web/OperateLogController.java
View file @
8dcac61c
...
@@ -58,6 +58,7 @@ public class OperateLogController extends BaseCRUDJsonBodyMappingController<Oper
...
@@ -58,6 +58,7 @@ public class OperateLogController extends BaseCRUDJsonBodyMappingController<Oper
@Override
@Override
@UnAuth
@UnAuth
public
String
save
(
@RequestBody
OperateLogEntity
entity
)
{
public
String
save
(
@RequestBody
OperateLogEntity
entity
)
{
return
super
.
save
(
entity
);
return
super
.
save
(
entity
);
}
}
}
}
\ No newline at end of file
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