Commit a65ff707 by 宋珺琪

日志导出问题(湖南)

parent a4f7c99e
...@@ -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, list, response,"日志列表信息"); exportExcelUtil.exportExcel("DataStatistics", headersName, headersField, newList, 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);
......
...@@ -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("++++++++++++++++++++++日程定时结束");
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment