fix:日志查询条件新增businessId
This commit is contained in:
@@ -77,7 +77,6 @@ public class SystemLogController implements ISysLogFeignClient {
|
||||
|
||||
/**
|
||||
* 统计每日下载和预览次数
|
||||
* @param createTimeArr 时间数组 [startDate, endDate],格式:yyyy-MM-dd
|
||||
* @return 每日操作统计列表
|
||||
*/
|
||||
@PostMapping("/getDailyOperateStatistics")
|
||||
|
||||
@@ -62,6 +62,9 @@ public class ISysLogServiceImpl extends ServiceImpl<SysLogMapper, SysLog> implem
|
||||
if (StrUtil.isNotBlank(sysLog.getCreatorId())) {
|
||||
wrapper.eq(SysLog::getCreateBy, sysLog.getCreatorId());
|
||||
}
|
||||
if (StrUtil.isNotBlank(sysLog.getBusinessId())) {
|
||||
wrapper.eq(SysLog::getBusinessId, sysLog.getBusinessId());
|
||||
}
|
||||
|
||||
if (ArrayUtil.isNotEmpty(sysLog.getCreateTimeArr())) {
|
||||
wrapper.ge(SysLog::getCreateTime, sysLog.getCreateTimeArr()[0])
|
||||
@@ -69,6 +72,7 @@ public class ISysLogServiceImpl extends ServiceImpl<SysLogMapper, SysLog> implem
|
||||
}
|
||||
wrapper.eq(SysLog::getTenantId, ThreadLocalContext.getTenantId());
|
||||
wrapper.orderByDesc(SysLog::getCreateTime);
|
||||
|
||||
PageHelper.startPage(sysLog.getCurrent(), sysLog.getSize());
|
||||
List<SysLog> sysLogList = this.list(wrapper);
|
||||
PageInfo<SysLog> page = new PageInfo<>(sysLogList);
|
||||
|
||||
Reference in New Issue
Block a user