| | |
| | | private TBackRecordService backRecordService; |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * 获取场地列表 |
| | | * |
| | | * @param querySiteList |
| | | * @return |
| | | * @throws Exception |
| | |
| | | |
| | | /** |
| | | * 获取场地详情 |
| | | * |
| | | * @param id |
| | | * @return |
| | | * @throws Exception |
| | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | @Autowired |
| | | private ISiteBookingService iSiteBookingService; |
| | | @Autowired |
| | | private ISiteService siteService; |
| | | |
| | | /** |
| | | * 获取场地预约日期数据 |
| | | * |
| | | * @param id |
| | | * @param day |
| | | * @return |
| | |
| | | System.out.println("=======date======"+day); |
| | | List<String> strings = new ArrayList<>(); |
| | | |
| | | // List<SiteBooking> siteBookings = siteClient.listBooks(id); |
| | | List<SiteBooking> siteBookings = iSiteBookingService.list(new QueryWrapper<SiteBooking>().eq("siteId", id).ne("status",5).eq("nextName",siteName).like("times",day)); |
| | | |
| | | |
| | | if (siteName==null|| siteName.equals("")){ |
| | | siteBookings = iSiteBookingService.list(new QueryWrapper<SiteBooking>().eq("siteId", id).ne("status",5).like("times",day)); |
| | |
| | | return timeRanges; |
| | | |
| | | |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | public static String getNextTime(String currentTime) { |
| | |
| | | return String.format("%02d:%02d", hour, minute); |
| | | |
| | | } |
| | | |
| | | public static String getNextTimeOne(String currentTime) { |
| | | |
| | | String[] parts = currentTime.split(":"); |
| | |
| | | |
| | | /** |
| | | * 预约场地 |
| | | * |
| | | * @param reservationSite |
| | | * @return |
| | | * @throws Exception |
| | |
| | | siteBookingService.save(siteBooking); |
| | | |
| | | |
| | | |
| | | |
| | | if(reservationSite.getPayType() == 1){//微信支付 |
| | | ResultUtil resultUtil = weChatPaymentSite(payMoney, siteBooking); |
| | | |
| | |
| | | |
| | | /** |
| | | * 课程微信支付 |
| | | * |
| | | * @param paymentPrice |
| | | * @return |
| | | * @throws Exception |
| | |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * 课程支付宝支付 |
| | | * |
| | | * @param paymentPrice |
| | | * @return |
| | | * @throws Exception |
| | |
| | | |
| | | /** |
| | | * 玩湃币支付 |
| | | * |
| | | * @param appUser |
| | | * @param paymentPrice |
| | | * @return |
| | |
| | | |
| | | /** |
| | | * 获取我的场地预约 |
| | | * |
| | | * @param uid |
| | | * @param status |
| | | * @param pageNo |
| | |
| | | String[] split = siteBooking.getTimes().split(";"); |
| | | if(site!=null){ |
| | | if (queryMySiteVo.getIsHalf()==1) { |
| | | queryMySiteVo.setPlayPaiCoin(site.getPlayPaiCoin() * split.length); |
| | | }else { |
| | | queryMySiteVo.setPlayPaiCoin((int) (site.getPlayPaiCoinOne() * split.length)); |
| | | |
| | | } else { |
| | | queryMySiteVo.setPlayPaiCoin(site.getPlayPaiCoin() * split.length); |
| | | |
| | | } |
| | | } |
| | | } |
| | |
| | | |
| | | /** |
| | | * 取消我的预约场地 |
| | | * |
| | | * @param id |
| | | * @return |
| | | * @throws Exception |
| | |
| | | |
| | | /** |
| | | * 继续支付我预约的场地 |
| | | * |
| | | * @param id |
| | | * @param payType |
| | | * @return |
| | |
| | | |
| | | /** |
| | | * 获取继续支付金额 |
| | | * |
| | | * @param id |
| | | * @return |
| | | * @throws Exception |