|
|
|
@ -1,4 +1,4 @@
@@ -1,4 +1,4 @@
|
|
|
|
|
package com.cloud.kicc.report.endpoint; |
|
|
|
|
package com.cloud.kicc.report.controller; |
|
|
|
|
|
|
|
|
|
import cn.hutool.core.util.StrUtil; |
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
|
|
|
@ -26,13 +26,15 @@ import java.util.Arrays;
@@ -26,13 +26,15 @@ import java.util.Arrays;
|
|
|
|
|
@RestController |
|
|
|
|
@AllArgsConstructor |
|
|
|
|
@RequestMapping(AppConstants.APP_REPORT + "/rest") |
|
|
|
|
public class ReportEndpoint { |
|
|
|
|
public class ReportController { |
|
|
|
|
|
|
|
|
|
private final IReportFileService service; |
|
|
|
|
|
|
|
|
|
private LambdaQueryWrapper<ReportSystemFile> getQueryWrapper(ReportSystemFile reportFile) { |
|
|
|
|
private LambdaQueryWrapper<ReportSystemFile> getQueryWrapper(ReportSystemFile reportSystemFile) { |
|
|
|
|
return new LambdaQueryWrapper<ReportSystemFile>() |
|
|
|
|
.like(StrUtil.isNotBlank(reportFile.getName()), ReportSystemFile::getName, reportFile.getName()) |
|
|
|
|
.like(StrUtil.isNotBlank(reportSystemFile.getName()), ReportSystemFile::getName, reportSystemFile.getName()) |
|
|
|
|
.between(StrUtil.isNotBlank(reportSystemFile.getBeginTime()) && StrUtil.isNotBlank(reportSystemFile.getEndTime()), |
|
|
|
|
ReportSystemFile::getCreateTime, reportSystemFile.getBeginTime(), reportSystemFile.getEndTime()) |
|
|
|
|
.orderByDesc(ReportSystemFile::getCreateTime); |
|
|
|
|
} |
|
|
|
|
|