From b1fb83530b7105e4aa73e4101727dea945eb01c2 Mon Sep 17 00:00:00 2001 From: 无关风月 <443237572@qq.com> Date: 星期五, 29 八月 2025 21:48:15 +0800 Subject: [PATCH] bug修改 --- cloud-server-course/src/main/java/com/dsh/course/service/impl/TCoursePackageServiceImpl.java | 10 +++++++--- 1 files changed, 7 insertions(+), 3 deletions(-) diff --git a/cloud-server-course/src/main/java/com/dsh/course/service/impl/TCoursePackageServiceImpl.java b/cloud-server-course/src/main/java/com/dsh/course/service/impl/TCoursePackageServiceImpl.java index 9df4c59..2e2077e 100644 --- a/cloud-server-course/src/main/java/com/dsh/course/service/impl/TCoursePackageServiceImpl.java +++ b/cloud-server-course/src/main/java/com/dsh/course/service/impl/TCoursePackageServiceImpl.java @@ -949,7 +949,7 @@ Store store = storeClient.queryStoreById(storeId); if (store.getOperatorId()==null || store.getOperatorId()==0){ - ResultUtil weixinpay = payMoneyUtil.weixinpay("报名运动营", "", code, coursePackagePaymentConfig.getId().toString(), + ResultUtil weixinpay = payMoneyUtil.weixinpay("报名运动营", "", code, paymentPrice.toString(), "/base/course/weChatPaymentCourseCallback", "APP", ""); return weixinpay; }else{ @@ -1280,9 +1280,13 @@ coursePackageOrder1.setOrderNumber(trade_no); coursePackageOrder1.setAppUserId(null); coursePackageOrderService.updateById(coursePackageOrder1); + TCoursePackage coursePackage = coursePackageService.getById(coursePackageOrder1.getCoursePackageId()); + // 将用户优惠券修改为已使用 + Long userCouponId = coursePackageOrder1.getUserCouponId(); - CoursePackagePaymentConfig coursePackagePaymentConfig = coursePackagePaymentConfigService.getById(attach); - addCoursePackageOrderStudent(coursePackageOrder1.getId(), coursePackagePaymentConfig); + userCouponClient.updateUserCouponStatus(userCouponId,coursePackage.getStoreId(),coursePackage.getSiteId()); +// CoursePackagePaymentConfig coursePackagePaymentConfig = coursePackagePaymentConfigService.getById(attach); +// addCoursePackageOrderStudent(coursePackageOrder1.getId(), coursePackagePaymentConfig); TCoursePackage byId = coursePackageService.getById(coursePackageOrder1.getCoursePackageId()); Store store = storeClient.queryStoreById(byId.getStoreId()); // moneyOut(trade_no,trade_no,code); -- Gitblit v1.7.1