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

Commit 68c9701c authored by 胡佳晨's avatar 胡佳晨

修复下单 快递票 寄付到付判断价格

parent 85b37ac7
...@@ -147,7 +147,7 @@ public class KylinOrderTicketsServiceImpl implements IKylinOrderTicketsOrderServ ...@@ -147,7 +147,7 @@ public class KylinOrderTicketsServiceImpl implements IKylinOrderTicketsOrderServ
return ResponseDto.failure(ErrorMapping.get("20008"));//无权购买 return ResponseDto.failure(ErrorMapping.get("20008"));//无权购买
} }
//校验快递相关参数 //校验快递相关参数
if (payOrderParam.getIsExpress() == 1) { if (payOrderParam.getIsExpress() == 1 && payOrderParam.getExpressType() == 1) {
if (payOrderParam.getAdCode() == null || payOrderParam.getProductCode() == null) { if (payOrderParam.getAdCode() == null || payOrderParam.getProductCode() == null) {
return ResponseDto.failure(ErrorMapping.get("20004"));//参数错误 return ResponseDto.failure(ErrorMapping.get("20004"));//参数错误
} }
...@@ -402,7 +402,7 @@ public class KylinOrderTicketsServiceImpl implements IKylinOrderTicketsOrderServ ...@@ -402,7 +402,7 @@ public class KylinOrderTicketsServiceImpl implements IKylinOrderTicketsOrderServ
orderTickets.setPriceMember(ticketData.getMemberPrice()); orderTickets.setPriceMember(ticketData.getMemberPrice());
BigDecimal priceExpress = BigDecimal.ZERO; BigDecimal priceExpress = BigDecimal.ZERO;
if (payOrderParam.getIsExpress() == 1) { if (payOrderParam.getIsExpress() == 1 && payOrderParam.getExpressType() == 1) {
String productCode = payOrderParam.getProductCode(); String productCode = payOrderParam.getProductCode();
String adCode = payOrderParam.getAdCode(); String adCode = payOrderParam.getAdCode();
priceExpress = orderUtils.getExpressPrice(adCode, productCode); priceExpress = orderUtils.getExpressPrice(adCode, productCode);
......
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