...
|
...
|
@@ -3,6 +3,8 @@ package com.yohoufo.order.service.handler.transfer; |
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.yoho.core.config.ConfigReader;
|
|
|
import com.yohoufo.dal.order.model.OrdersPayTransfer;
|
|
|
import com.yohoufo.dal.order.model.TradeBills;
|
|
|
import com.yohoufo.order.common.TradeType;
|
|
|
import com.yohoufo.order.service.transfer.TransferResult;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
...
|
...
|
@@ -23,17 +25,19 @@ public class AlipayTransferChancelSelector { |
|
|
|
|
|
/**
|
|
|
* 申请寄存返利的单数
|
|
|
*
|
|
|
* @return
|
|
|
*/
|
|
|
public int getDepositRebateOrderCnt(){
|
|
|
public int getDepositRebateOrderCnt() {
|
|
|
return configReader.getInt("ufo.order.pay.depositRebateCnt", 4);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 申请寄存返利一单返利数目
|
|
|
*
|
|
|
* @return
|
|
|
*/
|
|
|
public double getDepositRebateAmount(){
|
|
|
public double getDepositRebateAmount() {
|
|
|
return configReader.getDouble("ufo.order.pay.depositRebatePerAmount", 30);
|
|
|
}
|
|
|
|
...
|
...
|
@@ -47,7 +51,11 @@ public class AlipayTransferChancelSelector { |
|
|
return StringUtils.equals(lastTransferDate, nowDate);
|
|
|
}
|
|
|
|
|
|
public boolean isTransferWithWallet() {
|
|
|
public boolean isTransferWithWallet(TradeBills bills) {
|
|
|
TradeType tradeType = TradeType.getTradeTypeByCode(bills.getTradeType());
|
|
|
if (tradeType == TradeType.deposit_rebate) {
|
|
|
return false;
|
|
|
}
|
|
|
return configReader.getBoolean("ufo.order.pay.transferWithWallet", false);
|
|
|
}
|
|
|
|
...
|
...
|
@@ -56,7 +64,7 @@ public class AlipayTransferChancelSelector { |
|
|
}
|
|
|
|
|
|
|
|
|
public boolean isStopTransferWithAlipay(){
|
|
|
public boolean isStopTransferWithAlipay() {
|
|
|
boolean isStop = configReader.getBoolean("ufo.order.pay.isStop.transfer", false);
|
|
|
log.info("zk config [ufo.order.pay.isStop.transfer] value {}", isStop);
|
|
|
return isStop;
|
...
|
...
|
|