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
bd6c2080
Commit
bd6c2080
authored
May 15, 2023
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加服务检测拉起脚本
parent
7e0289cd
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
39 additions
and
6 deletions
+39
-6
log-manager/src/main/java/com/mortals/xhx/module/access/service/impl/AccessLogServiceImpl.java
.../xhx/module/access/service/impl/AccessLogServiceImpl.java
+14
-0
log-manager/src/main/java/com/mortals/xhx/module/biz/service/impl/BizLogServiceImpl.java
...ortals/xhx/module/biz/service/impl/BizLogServiceImpl.java
+14
-0
log-manager/src/main/java/com/mortals/xhx/module/error/service/impl/ErrorLogServiceImpl.java
...ls/xhx/module/error/service/impl/ErrorLogServiceImpl.java
+1
-3
log-manager/src/main/java/com/mortals/xhx/module/operate/service/impl/OperateLogServiceImpl.java
...hx/module/operate/service/impl/OperateLogServiceImpl.java
+10
-3
No files found.
log-manager/src/main/java/com/mortals/xhx/module/access/service/impl/AccessLogServiceImpl.java
View file @
bd6c2080
...
@@ -11,6 +11,7 @@ import com.mortals.xhx.module.access.model.AccessLogEntity;
...
@@ -11,6 +11,7 @@ import com.mortals.xhx.module.access.model.AccessLogEntity;
import
com.mortals.xhx.module.access.service.AccessLogService
;
import
com.mortals.xhx.module.access.service.AccessLogService
;
import
java.util.Date
;
import
java.util.Date
;
import
java.util.List
;
/**
/**
* AccessLogService
* AccessLogService
...
@@ -22,6 +23,19 @@ import java.util.Date;
...
@@ -22,6 +23,19 @@ import java.util.Date;
@Service
(
"accessLogService"
)
@Service
(
"accessLogService"
)
public
class
AccessLogServiceImpl
extends
AbstractCRUDServiceImpl
<
AccessLogDao
,
AccessLogEntity
,
Long
>
implements
AccessLogService
{
public
class
AccessLogServiceImpl
extends
AbstractCRUDServiceImpl
<
AccessLogDao
,
AccessLogEntity
,
Long
>
implements
AccessLogService
{
@Override
public
AccessLogEntity
save
(
AccessLogEntity
entity
,
Context
context
)
throws
AppException
{
entity
.
setId
(
IdUtil
.
getSnowflake
(
0
,
1
).
nextId
());
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 @
bd6c2080
...
@@ -11,6 +11,7 @@ import com.mortals.xhx.module.biz.model.BizLogEntity;
...
@@ -11,6 +11,7 @@ import com.mortals.xhx.module.biz.model.BizLogEntity;
import
com.mortals.xhx.module.biz.service.BizLogService
;
import
com.mortals.xhx.module.biz.service.BizLogService
;
import
java.util.Date
;
import
java.util.Date
;
import
java.util.List
;
/**
/**
* BizLogService
* BizLogService
...
@@ -22,6 +23,19 @@ import java.util.Date;
...
@@ -22,6 +23,19 @@ import java.util.Date;
@Service
(
"bizLogService"
)
@Service
(
"bizLogService"
)
public
class
BizLogServiceImpl
extends
AbstractCRUDServiceImpl
<
BizLogDao
,
BizLogEntity
,
Long
>
implements
BizLogService
{
public
class
BizLogServiceImpl
extends
AbstractCRUDServiceImpl
<
BizLogDao
,
BizLogEntity
,
Long
>
implements
BizLogService
{
@Override
public
BizLogEntity
save
(
BizLogEntity
entity
,
Context
context
)
throws
AppException
{
entity
.
setId
(
IdUtil
.
getSnowflake
(
0
,
1
).
nextId
());
return
super
.
save
(
entity
,
context
);
}
@Override
public
int
save
(
List
<
BizLogEntity
>
list
,
Context
context
)
throws
AppException
{
list
.
forEach
(
item
->
item
.
setId
(
IdUtil
.
getSnowflake
(
0
,
1
).
nextId
()));
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
{
BizLogEntity
bizLogEntity
=
new
BizLogEntity
();
BizLogEntity
bizLogEntity
=
new
BizLogEntity
();
...
...
log-manager/src/main/java/com/mortals/xhx/module/error/service/impl/ErrorLogServiceImpl.java
View file @
bd6c2080
...
@@ -35,9 +35,7 @@ public class ErrorLogServiceImpl extends AbstractCRUDServiceImpl<ErrorLogDao, Er
...
@@ -35,9 +35,7 @@ public class ErrorLogServiceImpl extends AbstractCRUDServiceImpl<ErrorLogDao, Er
@Override
@Override
public
int
save
(
List
<
ErrorLogEntity
>
list
,
Context
context
)
throws
AppException
{
public
int
save
(
List
<
ErrorLogEntity
>
list
,
Context
context
)
throws
AppException
{
list
.
forEach
(
item
->{
list
.
forEach
(
item
->
item
.
setId
(
IdUtil
.
getSnowflake
(
0
,
1
).
nextId
()));
item
.
setId
(
IdUtil
.
getSnowflake
(
0
,
1
).
nextId
());
});
return
super
.
save
(
list
,
context
);
return
super
.
save
(
list
,
context
);
}
}
...
...
log-manager/src/main/java/com/mortals/xhx/module/operate/service/impl/OperateLogServiceImpl.java
View file @
bd6c2080
...
@@ -12,6 +12,7 @@ import com.mortals.xhx.module.operate.model.OperateLogEntity;
...
@@ -12,6 +12,7 @@ import com.mortals.xhx.module.operate.model.OperateLogEntity;
import
com.mortals.xhx.module.operate.service.OperateLogService
;
import
com.mortals.xhx.module.operate.service.OperateLogService
;
import
java.util.Date
;
import
java.util.Date
;
import
java.util.List
;
/**
/**
* OperateLogService
* OperateLogService
...
@@ -23,9 +24,15 @@ import java.util.Date;
...
@@ -23,9 +24,15 @@ import java.util.Date;
@Service
(
"operateLogService"
)
@Service
(
"operateLogService"
)
public
class
OperateLogServiceImpl
extends
AbstractCRUDServiceImpl
<
OperateLogDao
,
OperateLogEntity
,
Long
>
implements
OperateLogService
{
public
class
OperateLogServiceImpl
extends
AbstractCRUDServiceImpl
<
OperateLogDao
,
OperateLogEntity
,
Long
>
implements
OperateLogService
{
@Override
public
OperateLogEntity
save
(
OperateLogEntity
entity
)
throws
AppException
{
entity
.
setId
(
IdUtil
.
getSnowflake
(
0
,
1
).
nextId
());
return
super
.
save
(
entity
);
}
public
static
void
main
(
String
[]
args
)
{
@Override
System
.
out
.
println
(
RandomUtil
.
randomString
(
1024
));
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
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