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
3342e152
Commit
3342e152
authored
Jul 07, 2023
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改查询时间段
parent
73bb3fb4
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
34 additions
and
11 deletions
+34
-11
log-manager/src/main/java/com/mortals/xhx/module/access/dao/ibatis/AccessLogDaoImpl.java
...ortals/xhx/module/access/dao/ibatis/AccessLogDaoImpl.java
+6
-1
log-manager/src/main/java/com/mortals/xhx/module/biz/dao/ibatis/BizLogDaoImpl.java
.../com/mortals/xhx/module/biz/dao/ibatis/BizLogDaoImpl.java
+7
-1
log-manager/src/main/java/com/mortals/xhx/module/error/dao/ibatis/ErrorLogDaoImpl.java
.../mortals/xhx/module/error/dao/ibatis/ErrorLogDaoImpl.java
+7
-1
log-manager/src/main/java/com/mortals/xhx/module/operate/dao/ibatis/OperateLogDaoImpl.java
...tals/xhx/module/operate/dao/ibatis/OperateLogDaoImpl.java
+8
-1
log-manager/src/test/java/com/mortals/httpclient/error/ErrorLogController.http
...java/com/mortals/httpclient/error/ErrorLogController.http
+6
-7
No files found.
log-manager/src/main/java/com/mortals/xhx/module/access/dao/ibatis/AccessLogDaoImpl.java
View file @
3342e152
...
...
@@ -35,7 +35,12 @@ public class AccessLogDaoImpl extends SubmeterDaoImpl<AccessLogEntity,Long> impl
TableParam
tableParam
=
new
TableParam
();
if
(!
ObjectUtils
.
isEmpty
(
makeTableNameOfentity
.
getCreateTime
()))
{
tableParam
.
unionTime
=
makeTableNameOfentity
.
getCreateTime
();
}
else
if
(
makeTableNameOfentity
instanceof
AccessLogQuery
)
{
}
else
if
(
StringUtils
.
isNotEmpty
(
makeTableNameOfentity
.
getCreateTimeStart
()))
{
tableParam
.
unionTime
=
DateUtils
.
StrToDate
(
makeTableNameOfentity
.
getCreateTimeStart
());
}
else
if
(
StringUtils
.
isNotEmpty
(
makeTableNameOfentity
.
getCreateTimeEnd
()))
{
tableParam
.
unionTime
=
DateUtils
.
StrToDate
(
makeTableNameOfentity
.
getCreateTimeEnd
());
}
if
(
makeTableNameOfentity
instanceof
AccessLogQuery
)
{
AccessLogQuery
AccessLogQuery
=
(
AccessLogQuery
)
makeTableNameOfentity
;
if
(
StringUtils
.
isNotEmpty
(
AccessLogQuery
.
getCreateTimeStart
()))
{
tableParam
.
unionTime
=
DateUtils
.
StrToDate
(
AccessLogQuery
.
getCreateTimeStart
());
...
...
log-manager/src/main/java/com/mortals/xhx/module/biz/dao/ibatis/BizLogDaoImpl.java
View file @
3342e152
...
...
@@ -35,7 +35,13 @@ public class BizLogDaoImpl extends SubmeterDaoImpl<BizLogEntity,Long> implements
TableParam
tableParam
=
new
TableParam
();
if
(!
ObjectUtils
.
isEmpty
(
makeTableNameOfentity
.
getCreateTime
()))
{
tableParam
.
unionTime
=
makeTableNameOfentity
.
getCreateTime
();
}
else
if
(
makeTableNameOfentity
instanceof
BizLogQuery
)
{
}
else
if
(
StringUtils
.
isNotEmpty
(
makeTableNameOfentity
.
getCreateTimeStart
()))
{
tableParam
.
unionTime
=
DateUtils
.
StrToDate
(
makeTableNameOfentity
.
getCreateTimeStart
());
}
else
if
(
StringUtils
.
isNotEmpty
(
makeTableNameOfentity
.
getCreateTimeEnd
()))
{
tableParam
.
unionTime
=
DateUtils
.
StrToDate
(
makeTableNameOfentity
.
getCreateTimeEnd
());
}
if
(
makeTableNameOfentity
instanceof
BizLogQuery
)
{
BizLogQuery
BizLogQuery
=
(
BizLogQuery
)
makeTableNameOfentity
;
if
(
StringUtils
.
isNotEmpty
(
BizLogQuery
.
getCreateTimeStart
()))
{
tableParam
.
unionTime
=
DateUtils
.
StrToDate
(
BizLogQuery
.
getCreateTimeStart
());
...
...
log-manager/src/main/java/com/mortals/xhx/module/error/dao/ibatis/ErrorLogDaoImpl.java
View file @
3342e152
...
...
@@ -34,7 +34,13 @@ public class ErrorLogDaoImpl extends SubmeterDaoImpl<ErrorLogEntity,Long> implem
TableParam
tableParam
=
new
TableParam
();
if
(!
ObjectUtils
.
isEmpty
(
makeTableNameOfentity
.
getCreateTime
()))
{
tableParam
.
unionTime
=
makeTableNameOfentity
.
getCreateTime
();
}
else
if
(
makeTableNameOfentity
instanceof
ErrorLogQuery
)
{
}
else
if
(
StringUtils
.
isNotEmpty
(
makeTableNameOfentity
.
getCreateTimeStart
()))
{
tableParam
.
unionTime
=
DateUtils
.
StrToDate
(
makeTableNameOfentity
.
getCreateTimeStart
());
}
else
if
(
StringUtils
.
isNotEmpty
(
makeTableNameOfentity
.
getCreateTimeEnd
()))
{
tableParam
.
unionTime
=
DateUtils
.
StrToDate
(
makeTableNameOfentity
.
getCreateTimeEnd
());
}
if
(
makeTableNameOfentity
instanceof
ErrorLogQuery
)
{
ErrorLogQuery
ErrorLogQuery
=
(
ErrorLogQuery
)
makeTableNameOfentity
;
if
(
StringUtils
.
isNotEmpty
(
ErrorLogQuery
.
getCreateTimeStart
()))
{
tableParam
.
unionTime
=
DateUtils
.
StrToDate
(
ErrorLogQuery
.
getCreateTimeStart
());
...
...
log-manager/src/main/java/com/mortals/xhx/module/operate/dao/ibatis/OperateLogDaoImpl.java
View file @
3342e152
...
...
@@ -39,7 +39,14 @@ public class OperateLogDaoImpl extends SubmeterDaoImpl<OperateLogEntity, Long> i
TableParam
tableParam
=
new
TableParam
();
if
(!
ObjectUtils
.
isEmpty
(
makeTableNameOfentity
.
getCreateTime
()))
{
tableParam
.
unionTime
=
makeTableNameOfentity
.
getCreateTime
();
}
else
if
(
makeTableNameOfentity
instanceof
OperateLogQuery
)
{
}
else
if
(
StringUtils
.
isNotEmpty
(
makeTableNameOfentity
.
getCreateTimeStart
()))
{
tableParam
.
unionTime
=
DateUtils
.
StrToDate
(
makeTableNameOfentity
.
getCreateTimeStart
());
}
else
if
(
StringUtils
.
isNotEmpty
(
makeTableNameOfentity
.
getCreateTimeEnd
()))
{
tableParam
.
unionTime
=
DateUtils
.
StrToDate
(
makeTableNameOfentity
.
getCreateTimeEnd
());
}
if
(
makeTableNameOfentity
instanceof
OperateLogQuery
)
{
OperateLogQuery
OperateLogQuery
=
(
OperateLogQuery
)
makeTableNameOfentity
;
if
(
StringUtils
.
isNotEmpty
(
OperateLogQuery
.
getCreateTimeStart
()))
{
tableParam
.
unionTime
=
DateUtils
.
StrToDate
(
OperateLogQuery
.
getCreateTimeStart
());
...
...
log-manager/src/test/java/com/mortals/httpclient/error/ErrorLogController.http
View file @
3342e152
...
...
@@ -29,16 +29,15 @@ Content-Type: application/json
###异常日志更新与保存
POST {{baseUrl}}/error/log/save
Authorization: {{authToken}}
Content-Type: application/json
{
"traceID":"
mbto1z
",
"appName":"
6lcsoy
",
"hostName":"
ul06eq
",
"message":"
8kau4i
",
"traceID":"
64364f4f9b8d47e61cb6b24c
",
"appName":"
portal-manager
",
"hostName":"",
"message":"
更新失败!
",
"platform":"java",
"culprit":"
8r6wce
",
"culprit":"
com.mortals.xhx.module.page.dao.ibatis.PageAccessDaoImpl.insert
",
"tags":"sw7jp2",
"level":"INFO",
"environment":"ayr3ua",
...
...
@@ -49,7 +48,7 @@ Content-Type: application/json
"errorStack":"z3yxnh",
"context":"az7aus",
"extra":"9c0pnj",
"logTime":"16
6127040000
0"
"logTime":"16
8869578518
0"
}
...
...
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