mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-06-23 16:49:49 +08:00
update
This commit is contained in:
@@ -361,6 +361,7 @@ public class OrderBasicInfoServiceImpl implements IOrderBasicInfoService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询时间段内订单总金额和总用电量V2
|
* 查询时间段内订单总金额和总用电量V2
|
||||||
|
*
|
||||||
* @param dto
|
* @param dto
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@@ -788,7 +789,6 @@ public class OrderBasicInfoServiceImpl implements IOrderBasicInfoService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
|
||||||
* @param orderBasicInfo
|
* @param orderBasicInfo
|
||||||
* @param adapayMemberAccount
|
* @param adapayMemberAccount
|
||||||
* @param wechatAppId
|
* @param wechatAppId
|
||||||
@@ -840,6 +840,7 @@ public class OrderBasicInfoServiceImpl implements IOrderBasicInfoService {
|
|||||||
/**
|
/**
|
||||||
* 获取更新数据后的orderDetail对象
|
* 获取更新数据后的orderDetail对象
|
||||||
* 专用方法,其他地方如果要用请仔细检查
|
* 专用方法,其他地方如果要用请仔细检查
|
||||||
|
*
|
||||||
* @return 查询并更新过数据的orderDetail
|
* @return 查询并更新过数据的orderDetail
|
||||||
*/
|
*/
|
||||||
private OrderDetail returnUpdateOrderDetail(OrderBasicInfo orderBasicInfo, TransactionRecordsData data) {
|
private OrderDetail returnUpdateOrderDetail(OrderBasicInfo orderBasicInfo, TransactionRecordsData data) {
|
||||||
@@ -1247,8 +1248,9 @@ public class OrderBasicInfoServiceImpl implements IOrderBasicInfoService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 余额支付订单,使用余额分账
|
* 余额支付订单,使用余额分账
|
||||||
* @param orderBasicInfo
|
*
|
||||||
* @param adapayMemberAccount
|
* @param orderBasicInfo 订单信息
|
||||||
|
* @param adapayMemberAccount 汇付用户信息
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
@@ -1259,7 +1261,6 @@ public class OrderBasicInfoServiceImpl implements IOrderBasicInfoService {
|
|||||||
BigDecimal confirmAmt = BigDecimal.ZERO;
|
BigDecimal confirmAmt = BigDecimal.ZERO;
|
||||||
BigDecimal feeAmt = BigDecimal.ZERO;
|
BigDecimal feeAmt = BigDecimal.ZERO;
|
||||||
String status = null;
|
String status = null;
|
||||||
String description = null;
|
|
||||||
|
|
||||||
// 获取余额支付扣除金额 也许存在一笔不够扣,需要扣多笔的情况
|
// 获取余额支付扣除金额 也许存在一笔不够扣,需要扣多笔的情况
|
||||||
List<BalanceDeductionAmountVO> list = calculateTheBalanceDeductionAmount(orderBasicInfo.getMemberId(), settleAmount);
|
List<BalanceDeductionAmountVO> list = calculateTheBalanceDeductionAmount(orderBasicInfo.getMemberId(), settleAmount);
|
||||||
@@ -1273,7 +1274,6 @@ public class OrderBasicInfoServiceImpl implements IOrderBasicInfoService {
|
|||||||
confirmAmt = confirmAmt.add(new BigDecimal(paymentConfirmResponse.getConfirmed_amt()));
|
confirmAmt = confirmAmt.add(new BigDecimal(paymentConfirmResponse.getConfirmed_amt()));
|
||||||
feeAmt = feeAmt.add(new BigDecimal(paymentConfirmResponse.getFee_amt()));
|
feeAmt = feeAmt.add(new BigDecimal(paymentConfirmResponse.getFee_amt()));
|
||||||
status = paymentConfirmResponse.getStatus();
|
status = paymentConfirmResponse.getStatus();
|
||||||
description = paymentConfirmResponse.getDescription();
|
|
||||||
memberAdapayRecordService.updateSpendAmount(paymentId, deductionAmount);
|
memberAdapayRecordService.updateSpendAmount(paymentId, deductionAmount);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1283,12 +1283,12 @@ public class OrderBasicInfoServiceImpl implements IOrderBasicInfoService {
|
|||||||
result.setConfirmAmt(confirmAmt.toString());
|
result.setConfirmAmt(confirmAmt.toString());
|
||||||
result.setStatus(status);
|
result.setStatus(status);
|
||||||
result.setFeeAmt(feeAmt.toString());
|
result.setFeeAmt(feeAmt.toString());
|
||||||
// result.setDescription(description);
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 计算余额扣除金额
|
* 计算余额扣除金额
|
||||||
|
*
|
||||||
* @param memberId 会员id
|
* @param memberId 会员id
|
||||||
* @param amount 消费金额/退款金额
|
* @param amount 消费金额/退款金额
|
||||||
*/
|
*/
|
||||||
@@ -2414,6 +2414,7 @@ public class OrderBasicInfoServiceImpl implements IOrderBasicInfoService {
|
|||||||
/**
|
/**
|
||||||
* 汇付支付-订单退款处理逻辑
|
* 汇付支付-订单退款处理逻辑
|
||||||
* 汇付支付订单退款
|
* 汇付支付订单退款
|
||||||
|
*
|
||||||
* @param dto
|
* @param dto
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
@@ -2511,10 +2512,11 @@ public class OrderBasicInfoServiceImpl implements IOrderBasicInfoService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 汇付支付余额退款
|
* 汇付支付余额退款
|
||||||
|
*
|
||||||
* @param dto
|
* @param dto
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public void refundBalanceWithAdapay(ApplyRefundDTO dto){
|
public void refundBalanceWithAdapay(ApplyRefundDTO dto) {
|
||||||
// 做个拦截,如果前一笔退款没有完成,就抛异常
|
// 做个拦截,如果前一笔退款没有完成,就抛异常
|
||||||
String redisKey = CacheConstants.MEMBER_BALANCE_REFUNDS_ARE_IN_PROGRESS + dto.getMemberId();
|
String redisKey = CacheConstants.MEMBER_BALANCE_REFUNDS_ARE_IN_PROGRESS + dto.getMemberId();
|
||||||
PaymentReverseResponse redisResult = redisCache.getCacheObject(redisKey);
|
PaymentReverseResponse redisResult = redisCache.getCacheObject(redisKey);
|
||||||
@@ -2868,6 +2870,7 @@ public class OrderBasicInfoServiceImpl implements IOrderBasicInfoService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询订单推款记录
|
* 查询订单推款记录
|
||||||
|
*
|
||||||
* @param orderBasicInfo
|
* @param orderBasicInfo
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@@ -2895,6 +2898,7 @@ public class OrderBasicInfoServiceImpl implements IOrderBasicInfoService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 重试订单退款
|
* 重试订单退款
|
||||||
|
*
|
||||||
* @param orderCode 订单编号
|
* @param orderCode 订单编号
|
||||||
* @throws BaseAdaPayException
|
* @throws BaseAdaPayException
|
||||||
*/
|
*/
|
||||||
@@ -3024,6 +3028,7 @@ public class OrderBasicInfoServiceImpl implements IOrderBasicInfoService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询余额订单分账信息
|
* 查询余额订单分账信息
|
||||||
|
*
|
||||||
* @param orderCode 订单编号
|
* @param orderCode 订单编号
|
||||||
* @param memberId 会员id
|
* @param memberId 会员id
|
||||||
*/
|
*/
|
||||||
@@ -3041,7 +3046,7 @@ public class OrderBasicInfoServiceImpl implements IOrderBasicInfoService {
|
|||||||
dto.setWechatAppId(wechatAppId);
|
dto.setWechatAppId(wechatAppId);
|
||||||
dto.setPaymentId(record.getPaymentId());
|
dto.setPaymentId(record.getPaymentId());
|
||||||
QueryPaymentConfirmDetailResponse response = adapayService.queryPaymentConfirmList(dto);
|
QueryPaymentConfirmDetailResponse response = adapayService.queryPaymentConfirmList(dto);
|
||||||
if (response != null && CollectionUtils.isNotEmpty(response.getPaymentConfirms()) ) {
|
if (response != null && CollectionUtils.isNotEmpty(response.getPaymentConfirms())) {
|
||||||
for (QueryPaymentConfirmDetailResponse.PaymentConfirmInfo paymentConfirm : response.getPaymentConfirms()) {
|
for (QueryPaymentConfirmDetailResponse.PaymentConfirmInfo paymentConfirm : response.getPaymentConfirms()) {
|
||||||
JSONObject jsonObject = JSON.parseObject(paymentConfirm.getDescription());
|
JSONObject jsonObject = JSON.parseObject(paymentConfirm.getDescription());
|
||||||
if (StringUtils.equals(jsonObject.getString("orderCode"), orderCode)) {
|
if (StringUtils.equals(jsonObject.getString("orderCode"), orderCode)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user