异常消费流水导出

This commit is contained in:
hejiayang
2025-12-06 15:23:04 +08:00
parent a7d9efebbf
commit fb78ec7693
2 changed files with 10 additions and 7 deletions
@@ -43,4 +43,8 @@ public class StExceptionRecordDTO {
@Schema(title ="数量/页") @Schema(title ="数量/页")
private Integer pageSize; private Integer pageSize;
private String startDate;
private String endDate;
} }
@@ -74,14 +74,13 @@ public class StConsumptionExceptionRecordController {
@GetMapping("/export") @GetMapping("/export")
@AutoLog(value = "异常流水列表导出") @AutoLog(value = "异常流水列表导出")
public void getSpendingOrRechargeInfoListExport(HttpServletResponse response, public void getSpendingOrRechargeInfoListExport(HttpServletResponse response,
@RequestParam(name = "startDate", required = false) String startDate, StExceptionRecordDTO query) {
@RequestParam(name = "endDate", required = false) String endDate) {
StExceptionRecordDTO query = new StExceptionRecordDTO(); if(StringUtils.isNotBlank(query.getStartDate())){
if(StringUtils.isNotBlank(startDate)){ query.setStartTime(query.getStartDate());
query.setStartTime(startDate);
} }
if(StringUtils.isNotBlank(startDate)){ if(StringUtils.isNotBlank(query.getEndDate())){
query.setEndTime(endDate); query.setEndTime(query.getEndDate());
} }
List<StExceptionRecordVo> stExceptionRecordVos = stConsumptionExceptionRecordService.exceptionRecordPageExport(query); List<StExceptionRecordVo> stExceptionRecordVos = stConsumptionExceptionRecordService.exceptionRecordPageExport(query);