日志备份功能
This commit is contained in:
parent
fdb511e9f5
commit
8751556797
|
|
@ -181,7 +181,10 @@ public class SysLogServiceImpl implements ISysLogService {
|
||||||
public R<Map<String, Object>> getLogStatistics(SysLogsVo dto) {
|
public R<Map<String, Object>> getLogStatistics(SysLogsVo dto) {
|
||||||
Map<String,Object> map= Maps.newHashMap();
|
Map<String,Object> map= Maps.newHashMap();
|
||||||
try{
|
try{
|
||||||
|
if(StringUtils.isNotEmpty(dto.getOperTime())){
|
||||||
|
dto.setStartTime(dto.getOperTime().split(" - ")[0].trim());
|
||||||
|
dto.setEndTime(dto.getOperTime().split(" - ")[1].trim());
|
||||||
|
}
|
||||||
List<SysLogsVo> all=mapper.getAllLogs(dto);
|
List<SysLogsVo> all=mapper.getAllLogs(dto);
|
||||||
if(StringUtils.isNotEmpty(all)){
|
if(StringUtils.isNotEmpty(all)){
|
||||||
int allNum= all.stream().mapToInt(SysLogsVo::getNum).sum();
|
int allNum= all.stream().mapToInt(SysLogsVo::getNum).sum();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue