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