| | |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import java.math.BigDecimal; |
| | | import java.math.RoundingMode; |
| | | import java.time.LocalDate; |
| | | import java.time.LocalDateTime; |
| | | import java.time.LocalTime; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.util.TreeMap; |
| | |
| | | order.setPaymentAmount(order.getTotalAmount()); |
| | | } |
| | | order.setPaymentTime(up.getPaymentTimeCallback()); |
| | | |
| | | if(null!=order.getPaymentTime()){ |
| | | LocalDateTime paymentTime = order.getPaymentTime(); |
| | | LocalDate paymentDate = paymentTime.toLocalDate(); |
| | | LocalDateTime today1700 = paymentTime.with(LocalTime.of(17, 0)); |
| | | // 比较时间是否大于当天的 17:00 |
| | | if (paymentTime.isAfter(today1700)) { |
| | | // 如果大于 17:00,设置为下一天的日期 |
| | | paymentDate = paymentDate.plusDays(1); |
| | | } |
| | | order.setPaymentDateSta(paymentDate); |
| | | } |
| | | |
| | | order.setStatus(Constants.ORDER_STATUS.SEND.name()); |
| | | } else if (Constants.ORDER_STATUS_BACKEND.CANCEL.name().equals(orderStatus)){ |
| | | order.setStatus(Constants.ORDER_STATUS.CANCEL.name()); |
| | |
| | | new QueryWrapper<UserPayment>().eq("order_id", o.getId())); |
| | | |
| | | long trxamt = refund; |
| | | String reqsn = o.getId(); |
| | | String reqsn = re.getId();//退款单的id |
| | | String oldtrxid = up.getTransactionId(); |
| | | String oldreqsn = null; |
| | | |