提交代码

dev-discount
胡锐 2 years ago
parent e52365c058
commit e9ba049a32
  1. 2
      hai-order/src/main/java/com/web/controller/OrderPayController.java
  2. 2
      hai-service/src/main/java/com/hai/order/service/impl/OrderPayBeforeServiceImpl.java

@ -147,9 +147,11 @@ public class OrderPayController {
if (store == null) { if (store == null) {
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "未知的加油站"); throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "未知的加油站");
} }
if (store.getPrestoreType().equals(1)) {
if (order.getTotalPrice().compareTo(gasService.getMerPriceByMerId(store.getMerchantId())) == 1) { if (order.getTotalPrice().compareTo(gasService.getMerPriceByMerId(store.getMerchantId())) == 1) {
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "暂时无法进行支付,请联系平台客服"); throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "暂时无法进行支付,请联系平台客服");
} }
}
if (store.getSourceType().equals(MerchantStoreSourceType.type1.getNumber())) { if (store.getSourceType().equals(MerchantStoreSourceType.type1.getNumber())) {
// 查询支付配置 // 查询支付配置

@ -43,9 +43,11 @@ public class OrderPayBeforeServiceImpl implements OrderPayBeforeService {
if (store == null) { if (store == null) {
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "未知的加油站"); throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "未知的加油站");
} }
if (store.getPrestoreType().equals(1)) {
if (order.getTotalPrice().compareTo(gasService.getMerPriceByMerId(store.getMerchantId())) == 1) { if (order.getTotalPrice().compareTo(gasService.getMerPriceByMerId(store.getMerchantId())) == 1) {
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "暂时无法进行支付,请联系平台客服"); throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "暂时无法进行支付,请联系平台客服");
} }
}
if (store.getSourceType().equals(MerchantStoreSourceType.type1.getNumber())) { if (store.getSourceType().equals(MerchantStoreSourceType.type1.getNumber())) {
// 查询支付配置 // 查询支付配置

Loading…
Cancel
Save