|
|
|
@ -2,6 +2,7 @@ package au.com.royalpay.payment.manage.customers.core.impls;
|
|
|
|
|
|
|
|
|
|
import au.com.royalpay.payment.core.exceptions.SignInvalidException;
|
|
|
|
|
import au.com.royalpay.payment.core.exceptions.SignTimeoutException;
|
|
|
|
|
import au.com.royalpay.payment.manage.analysis.mappers.TransactionAnalysisMapper;
|
|
|
|
|
import au.com.royalpay.payment.manage.customers.beans.GatewayParams;
|
|
|
|
|
import au.com.royalpay.payment.manage.customers.core.CustomerPointsService;
|
|
|
|
|
import au.com.royalpay.payment.manage.mappers.customers.CustomerMembershipMapper;
|
|
|
|
@ -21,6 +22,7 @@ import org.springframework.stereotype.Service;
|
|
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
|
import java.math.BigDecimal;
|
|
|
|
|
import java.util.Calendar;
|
|
|
|
|
import java.util.Date;
|
|
|
|
|
import java.util.TimeZone;
|
|
|
|
@ -49,6 +51,8 @@ public class CustomerPointsServiceImp implements CustomerPointsService {
|
|
|
|
|
private CustomerPointsMapper customerPointsMapper;
|
|
|
|
|
@Resource
|
|
|
|
|
private CustomerMembershipMapper customerMembershipMapper;
|
|
|
|
|
@Resource
|
|
|
|
|
private TransactionAnalysisMapper transactionAnalysisMapper;
|
|
|
|
|
|
|
|
|
|
private String auth_code = "w2DgCF2cvlNHo3R6";
|
|
|
|
|
|
|
|
|
@ -276,6 +280,15 @@ public class CustomerPointsServiceImp implements CustomerPointsService {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public BigDecimal checkLotteryAfterPay(String order_id) {
|
|
|
|
|
JSONObject order = transactionAnalysisMapper.getOrderClearAmount(order_id);
|
|
|
|
|
if (order.getIntValue("client_id") != 9) {
|
|
|
|
|
return BigDecimal.valueOf(0);
|
|
|
|
|
}
|
|
|
|
|
return order.getBigDecimal("clearing_amount");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 获取过期积分
|
|
|
|
|
*
|
|
|
|
|