Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
map-parent
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
常超
map-parent
Commits
a65ff707
Commit
a65ff707
authored
Nov 23, 2022
by
宋珺琪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
日志导出问题(湖南)
parent
a4f7c99e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
5 deletions
+14
-5
common/service_base/src/main/java/com/founder/servicebase/logs/controller/SkSysLogController.java
+12
-3
service/publicapi/src/main/java/com/founder/publicapi/controller/SkypDesktop/SkypDesktopController.java
+2
-2
No files found.
common/service_base/src/main/java/com/founder/servicebase/logs/controller/SkSysLogController.java
View file @
a65ff707
...
@@ -124,13 +124,20 @@ public class SkSysLogController {
...
@@ -124,13 +124,20 @@ public class SkSysLogController {
}
}
queryWrapper
.
orderByDesc
(
"createDate"
);
queryWrapper
.
orderByDesc
(
"createDate"
);
List
list
=
service
.
list
(
queryWrapper
);
List
<
SkSysLog
>
list
=
service
.
list
(
queryWrapper
);
ExportExcelUtil
<
SkService
>
exportExcelUtil
=
new
ExportExcelUtil
<>();
List
<
SkSysLog
>
newList
=
new
ArrayList
<>();
for
(
SkSysLog
s
:
list
)
{
s
.
setContent
(
StringUtil
.
toUTF8
(
s
.
getContent
()));
newList
.
add
(
s
);
}
ExportExcelUtil
<
SkSysLog
>
exportExcelUtil
=
new
ExportExcelUtil
<>();
String
[]
headersName
=
{
"用户id"
,
"方法名"
,
"ip"
,
"请求url"
,
"传入参数"
,
"返回参数"
,
"响应时长"
,
"访问时间"
};
String
[]
headersName
=
{
"用户id"
,
"方法名"
,
"ip"
,
"请求url"
,
"传入参数"
,
"返回参数"
,
"响应时长"
,
"访问时间"
};
String
[]
headersField
=
{
"id"
,
"method"
,
"ip"
,
"url"
,
"params"
,
"content"
,
"totaltime"
,
"createdate"
};
String
[]
headersField
=
{
"id"
,
"method"
,
"ip"
,
"url"
,
"params"
,
"content"
,
"totaltime"
,
"createdate"
};
exportExcelUtil
.
exportExcel
(
"DataStatistics"
,
headersName
,
headersField
,
l
ist
,
response
,
"日志列表信息"
);
exportExcelUtil
.
exportExcel
(
"DataStatistics"
,
headersName
,
headersField
,
newL
ist
,
response
,
"日志列表信息"
);
}
}
@ApiOperation
(
value
=
"统计"
)
@OperLog
(
message
=
"统计"
,
operation
=
OperationType
.
QUERY
)
@PostMapping
(
"countTotal"
)
@PostMapping
(
"countTotal"
)
public
MapRestResult
countTotal
(
@RequestBody
LogCountParam
param
)
throws
ParseException
{
public
MapRestResult
countTotal
(
@RequestBody
LogCountParam
param
)
throws
ParseException
{
return
new
MapRestResult
(
service
.
countTotal
(
param
));
return
new
MapRestResult
(
service
.
countTotal
(
param
));
...
@@ -142,6 +149,8 @@ public class SkSysLogController {
...
@@ -142,6 +149,8 @@ public class SkSysLogController {
* @return
* @return
* @throws ParseException
* @throws ParseException
*/
*/
@ApiOperation
(
value
=
"各个模块接口的统计计数"
)
@OperLog
(
message
=
"各个模块接口的统计计数"
,
operation
=
OperationType
.
QUERY
)
@PostMapping
(
"countMoudle"
)
@PostMapping
(
"countMoudle"
)
public
MapRestResult
countMoudle
(
@RequestBody
LogCountParam
param
)
throws
ParseException
{
public
MapRestResult
countMoudle
(
@RequestBody
LogCountParam
param
)
throws
ParseException
{
List
<
LogMoudleCount
>
logMoudleCounts
=
service
.
countMoudle
(
param
);
List
<
LogMoudleCount
>
logMoudleCounts
=
service
.
countMoudle
(
param
);
...
...
service/publicapi/src/main/java/com/founder/publicapi/controller/SkypDesktop/SkypDesktopController.java
View file @
a65ff707
...
@@ -354,7 +354,7 @@ public class SkypDesktopController {
...
@@ -354,7 +354,7 @@ public class SkypDesktopController {
if
(
flag
){
if
(
flag
){
System
.
out
.
println
(
"++++++++++++++++++++++日程定时1111"
);
System
.
out
.
println
(
"++++++++++++++++++++++日程定时1111"
);
WebSocketServer
.
SendMessage
(
WebSocketServer
.
map
.
get
(
userId
),
"
:你的("
+
skSchedule
.
getBz
()+
")日程
到了,请尽快处理"
);
WebSocketServer
.
SendMessage
(
WebSocketServer
.
map
.
get
(
userId
),
"
你的("
+
skSchedule
.
getBz
()+
")日程已经
到了,请尽快处理"
);
System
.
out
.
println
(
"++++++++++++++++++++++日程定时结束"
);
System
.
out
.
println
(
"++++++++++++++++++++++日程定时结束"
);
}
}
//当前时间
//当前时间
...
@@ -369,7 +369,7 @@ public class SkypDesktopController {
...
@@ -369,7 +369,7 @@ public class SkypDesktopController {
Boolean
flag1
=
belongCalendar
(
Jzsj
,
date
,
kssj1
);
Boolean
flag1
=
belongCalendar
(
Jzsj
,
date
,
kssj1
);
if
(
flag1
){
if
(
flag1
){
System
.
out
.
println
(
"++++++++++++++++++++++日程定时1111"
);
System
.
out
.
println
(
"++++++++++++++++++++++日程定时1111"
);
WebSocketServer
.
SendMessage
(
WebSocketServer
.
map
.
get
(
userId
),
"
:
你的("
+
skSchedule
.
getBz
()+
")日程快到了,请尽快处理"
);
WebSocketServer
.
SendMessage
(
WebSocketServer
.
map
.
get
(
userId
),
"你的("
+
skSchedule
.
getBz
()+
")日程快到了,请尽快处理"
);
System
.
out
.
println
(
"++++++++++++++++++++++日程定时结束"
);
System
.
out
.
println
(
"++++++++++++++++++++++日程定时结束"
);
}
}
}
}
...
...
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