From 0be58dbf7774fef98ddac83c3f454b49c6d5a6c1 Mon Sep 17 00:00:00 2001 From: puzhibing <393733352@qq.com> Date: 星期五, 07 七月 2023 18:18:26 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- cloud-server-course/src/main/java/com/dsh/course/controller/CancelSourceController.java | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/cloud-server-course/src/main/java/com/dsh/course/controller/CancelSourceController.java b/cloud-server-course/src/main/java/com/dsh/course/controller/CancelSourceController.java index e6e427f..e66f5f1 100644 --- a/cloud-server-course/src/main/java/com/dsh/course/controller/CancelSourceController.java +++ b/cloud-server-course/src/main/java/com/dsh/course/controller/CancelSourceController.java @@ -42,8 +42,10 @@ @PostMapping("/base/cancelSource/cancelList") public List<PurchaseRecordVo> getCancelCourseList(@RequestBody GetStuSessionList sessionList){ List<PurchaseRecordVo> purchaseRecordVos = new ArrayList<>(); - - List<TCoursePackagePayment> tCoursePackagePayments = tcppService.queryAllCoursePackage(sessionList.getStartTime(),sessionList.getEndTime(),null,sessionList.getStuId(), sessionList.getAppUserId()); + List<TCoursePackagePayment> tCoursePackagePayments = tcppService.list(new QueryWrapper<TCoursePackagePayment>() + .between("insertTime", sessionList.getStartTime(),sessionList.getEndTime()) + .eq("appUserId",sessionList.getAppUserId()) + .eq("studentId",sessionList.getStuId())); List<Long> coursePackageIds = tCoursePackagePayments.stream().map(TCoursePackagePayment::getId).collect(Collectors.toList()); List<CancelledClasses> list = caceService.list(new QueryWrapper<CancelledClasses>() -- Gitblit v1.7.1