fix:日志查询条件新增businessId

This commit is contained in:
2026-03-09 14:55:44 +08:00
parent 9a62473dc3
commit b1ff54f5fa
2 changed files with 4 additions and 1 deletions

View File

@@ -77,7 +77,6 @@ public class SystemLogController implements ISysLogFeignClient {
/**
* 统计每日下载和预览次数
* @param createTimeArr 时间数组 [startDate, endDate]格式yyyy-MM-dd
* @return 每日操作统计列表
*/
@PostMapping("/getDailyOperateStatistics")

View File

@@ -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);