| | |
| | | @ResponseBody |
| | | @PostMapping("/coupon/queryCouponByUser/{userId}") |
| | | public List<Integer> queryCouponByUser(@PathVariable("userId") Integer userId){ |
| | | |
| | | System.err.println("到达了赠送优惠价"); |
| | | List<Coupon> list = couponService.list(new QueryWrapper<Coupon>().eq("distributionMethod", 2) |
| | | .le("startTime", new Date()).ge("endTime", new Date()).eq("auditStatus", 2) |
| | | .eq("state", 1)); |
| | |
| | | cIds.add(pointsMerchandiseCity.getPointsMerchandiseId()); |
| | | } |
| | | |
| | | if (cIds.size()>0) { |
| | | // if (cIds.size()>0) { |
| | | |
| | | List<PointsMerchandise> merchandises = pmdsService.list(new QueryWrapper<PointsMerchandise>() |
| | | .eq("state", 1) |
| | | .eq("shelves", 1).in("id", cIds) |
| | | .eq("shelves", 1) |
| | | .gt("endTime", new Date())); |
| | | if (merchandises.size() > 0){ |
| | | for (PointsMerchandise merchandise : merchandises) { |
| | |
| | | integralCommodity.setGoodsType(merchandise.getType()); |
| | | commodity.add(integralCommodity); |
| | | } |
| | | } |
| | | // } |
| | | } |
| | | |
| | | System.out.println(commodity); |
| | |
| | | |
| | | // Print the result |
| | | if (isSameDate) { |
| | | |
| | | } else { |
| | | System.out.println("The two dates do not have the same date."); |
| | | detailsResponse.setUseStatus(3); |
| | | |
| | | } |
| | | |
| | | |
| | |
| | | |
| | | |
| | | LocalDateTime currentTime = LocalDateTime.now(); |
| | | LocalDateTime oneMinuteAgo = currentTime.minusSeconds(120); |
| | | LocalDateTime oneMinuteAgo = currentTime.minusSeconds(6000); |
| | | |
| | | |
| | | |
| | |
| | | participant.add(participantVo); |
| | | } |
| | | |
| | | |
| | | for (Integer i : collect) { |
| | | TStudent tStudent = studentClient.queryById(i); |
| | | if (tStudent!=null) { |
| | | ParticipantVo participantVo = new ParticipantVo(); |
| | | participantVo.setId(tStudent.getId()); |
| | | participantVo.setName(tStudent.getName()); |
| | |
| | | participantVo.setAge(age); |
| | | participantVo.setPhone(tStudent.getPhone()); |
| | | participant.add(participantVo); |
| | | |
| | | } |
| | | |
| | | } |
| | | |
| | |
| | | for (TCoursePackagePayment coursePackagePayment : list) { |
| | | coursePackagePayment.setPayStatus(2); |
| | | coursePackagePayment.setOrderNumber(trade_no); |
| | | coursePackagePayment.setAppUserId(null); |
| | | } |
| | | coursePackagePaymentService.updateBatchById(list); |
| | | } |
| | |
| | | @TableField("insertTime") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm",timezone = "GMT+8") |
| | | Date insertTime; |
| | | @TableField("appUserId") |
| | | Integer appUserId; |
| | | } |