记得上下班打卡 | git大法好,push需谨慎

Commit 29546b50 authored by 胡佳晨's avatar 胡佳晨

增加 确认订单状态 接口

parent 75592fa4
...@@ -22,4 +22,6 @@ public class PayDataVo implements Serializable { ...@@ -22,4 +22,6 @@ public class PayDataVo implements Serializable {
private long timestamp; private long timestamp;
private String redirect_url;
private String order_str;
} }
...@@ -18,6 +18,10 @@ public class PayResultVo implements Serializable { ...@@ -18,6 +18,10 @@ public class PayResultVo implements Serializable {
private String order_id; private String order_id;
private String showUrl;
private String returnUrl;
private BigDecimal price; private BigDecimal price;
private PayDataVo pay_data; private PayDataVo pay_data;
......
...@@ -154,13 +154,15 @@ public class KylinOrderTicketsServiceImpl extends ServiceImpl<KylinOrderTicketsM ...@@ -154,13 +154,15 @@ public class KylinOrderTicketsServiceImpl extends ServiceImpl<KylinOrderTicketsM
} }
//快递票判断 //快递票判断
if (payOrderParam.getIsExpress() == 1 && DateUtil.compareStrDay(DateUtil.getNowTime(), timeExpressEnd) == 1) { if(payOrderParam.getIsExpress()!=null) {
lock.unlock(); if (payOrderParam.getIsExpress() == 1 && DateUtil.compareStrDay(DateUtil.getNowTime(), timeExpressEnd) == 1) {
return ResponseDto.failure("已超过快递票截止时间");//快递票不卖 lock.unlock();
} return ResponseDto.failure("已超过快递票截止时间");//快递票不卖
if (payOrderParam.getIsExpress() == 1 && payOrderParam.getAddressId().isEmpty()) { }
lock.unlock(); if (payOrderParam.getIsExpress() == 1 && payOrderParam.getAddressId().isEmpty()) {
return ResponseDto.failure("快递票未填写收货地址");//快递票未填写收货地址 lock.unlock();
return ResponseDto.failure("快递票未填写收货地址");//快递票未填写收货地址
}
} }
//实名判断 //实名判断
if (isTrueName == 1 && payOrderParam.getEnterIdList().size() <= 0) { if (isTrueName == 1 && payOrderParam.getEnterIdList().size() <= 0) {
...@@ -464,6 +466,10 @@ public class KylinOrderTicketsServiceImpl extends ServiceImpl<KylinOrderTicketsM ...@@ -464,6 +466,10 @@ public class KylinOrderTicketsServiceImpl extends ServiceImpl<KylinOrderTicketsM
payResultVo.setOrder_id(orderTicketId); payResultVo.setOrder_id(orderTicketId);
payResultVo.setPrice(orderTickets.getPriceActual()); payResultVo.setPrice(orderTickets.getPriceActual());
orderTickets.setPayCode(payResultVo.getCode()); orderTickets.setPayCode(payResultVo.getCode());
if (payOrderParam.getPayType().equals("alipay") && payOrderParam.getDeviceFrom().equals("wap")) {
payResultVo.setShowUrl(payOrderParam.getShowUrl());
payResultVo.setReturnUrl(payOrderParam.getReturnUrl());
}
// 生成vo // 生成vo
KylinOrderTicketVo orderTicketVo = new KylinOrderTicketVo(); KylinOrderTicketVo orderTicketVo = new KylinOrderTicketVo();
orderTicketVo.setOrderTicket(orderTickets); orderTicketVo.setOrderTicket(orderTickets);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment