| | |
| | | siteBooking.setHalfName(reservationSite.getHalfName()); |
| | | siteBookingService.save(siteBooking); |
| | | |
| | | |
| | | if (reservationSite.getPayType() == 1) {//微信支付 |
| | | if (money.compareTo(BigDecimal.ZERO)==0){ |
| | | siteBooking.setStatus(1); |
| | | siteBookingService.updateById(siteBooking); |
| | | HashMap<String, String> map = new HashMap<>(); |
| | | map.put("siteBooking", siteBooking.getId().toString()); |
| | | return ResultUtil.success(map); |
| | | } |
| | | if (reservationSite.getPayType() == 1 ) {//微信支付 |
| | | ResultUtil resultUtil = weChatPaymentSite(money.setScale(2, RoundingMode.HALF_EVEN).doubleValue(), siteBooking); |
| | | return resultUtil; |
| | | } |
| | |
| | | } |
| | | if (reservationSite.getPayType() == 3) {//玩湃币支付 |
| | | return playPaiCoinPaymentSite(appUser, playCoin.doubleValue(), siteBooking); |
| | | |
| | | } |
| | | |
| | | return ResultUtil.success(); |
| | | } |
| | | |