| | |
| | | a+= byId.getVirtualLearnedNum(); |
| | | Long data1 = remoteAppUserService.getCourseChapterHistoryCount(byId.getId()).getData(); |
| | | b+=data1; |
| | | byId.setRealLearnedNum(a+b); |
| | | byId.setRealLearnedNum(b); |
| | | return R.ok(byId); |
| | | } |
| | | @PostMapping("/updateCourseChapter") |
| | |
| | | |
| | | @ApiModelProperty(value = "是否已付费 1:是 2:否") |
| | | private Integer isBuy ; |
| | | |
| | | @ApiModelProperty(value = "当前用户是否为会员 1是2否") |
| | | private Integer isVip; |
| | | @ApiModelProperty(value = "通用价格", notes = "价格设定为单独收费") |
| | | private BigDecimal generalPrice; |
| | | |
| | |
| | | List<MeditationUserFavorite> list = meditationUserFavoriteService.lambdaQuery() |
| | | .eq(MeditationUserFavorite::getMeditationId, id) |
| | | .eq(MeditationUserFavorite::getAppUserId, userid).list(); |
| | | |
| | | if (list.isEmpty()){ |
| | | vo.setFavorite(2); |
| | | }else{ |
| | |
| | | .eq(Order::getPaymentStatus, 2) |
| | | .ne(Order::getRefundStatus, 3).list(); |
| | | if (list.isEmpty()){ |
| | | return R.ok(0); |
| | | return R.ok(2); |
| | | }else{ |
| | | return R.ok(1); |
| | | } |
| | |
| | | if (refund!=null && (!refund.equals("success"))){ |
| | | return R.fail(refund); |
| | | } |
| | | byId.setRefundStatus(2); |
| | | byId.setRefundStatus(3); |
| | | byId.setRefundRemark(remark); |
| | | byId.setPaymentStatus(3); |
| | | byId.setRefundTime(LocalDateTime.now()); |