|
|
@ -16,6 +16,7 @@ import com.hai.order.type.OrderProductType; |
|
|
|
import com.hai.service.HighGasChannelConfigService; |
|
|
|
import com.hai.service.HighGasChannelConfigService; |
|
|
|
import com.hai.service.HighGasService; |
|
|
|
import com.hai.service.HighGasService; |
|
|
|
import com.hai.service.HighMerchantStoreService; |
|
|
|
import com.hai.service.HighMerchantStoreService; |
|
|
|
|
|
|
|
import com.hai.service.SecConfigService; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
|
|
|
|
|
|
|
|
import javax.annotation.Resource; |
|
|
|
import javax.annotation.Resource; |
|
|
@ -34,6 +35,8 @@ public class OrderPayBeforeServiceImpl implements OrderPayBeforeService { |
|
|
|
private HighGasService gasService; |
|
|
|
private HighGasService gasService; |
|
|
|
@Resource |
|
|
|
@Resource |
|
|
|
private HighGasChannelConfigService gasChannelConfigService; |
|
|
|
private HighGasChannelConfigService gasChannelConfigService; |
|
|
|
|
|
|
|
@Resource |
|
|
|
|
|
|
|
private SecConfigService secConfigService; |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void payOrderCheck(HighOrder order) { |
|
|
|
public void payOrderCheck(HighOrder order) { |
|
|
@ -93,6 +96,11 @@ public class OrderPayBeforeServiceImpl implements OrderPayBeforeService { |
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "未配置支付参数,请稍后重试!"); |
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "未配置支付参数,请稍后重试!"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} else if (order.getProductType().equals(OrderProductType.PRODUCT_TYPE16.getNumber())) { |
|
|
|
|
|
|
|
SecConfig type = secConfigService.findByCodeType("OIL_CARD_RECHARGE"); |
|
|
|
|
|
|
|
if (type != null && type.getCodeValue().equals("false")) { |
|
|
|
|
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "暂时进行无法充值!"); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|