Authored by Lixiaodi

增加退款类型名称记录

@@ -165,6 +165,10 @@ public class MerchantOrderPaymentService extends AbstractOrderPaymentService { @@ -165,6 +165,10 @@ public class MerchantOrderPaymentService extends AbstractOrderPaymentService {
165 swd.setIsSet(1); 165 swd.setIsSet(1);
166 MerchantOrderAttachInfo att = new MerchantOrderAttachInfo(); 166 MerchantOrderAttachInfo att = new MerchantOrderAttachInfo();
167 att.setPayment(orderInfo.getPayment()); 167 att.setPayment(orderInfo.getPayment());
  168 + if (att != null) {
  169 + att.setType(SellerWalletDetail.Type.RE_CHARGE.getValue());
  170 + att.setTypeName(SellerWalletDetail.Type.RE_CHARGE.getName());
  171 + }
168 swd.setAttachValue(att==null?"":JSON.toJSONString(att)); 172 swd.setAttachValue(att==null?"":JSON.toJSONString(att));
169 logger.info("充值后,处理增加钱包明细,bean={}", swd); 173 logger.info("充值后,处理增加钱包明细,bean={}", swd);
170 sellerWalletDetailMapper.insert(swd); 174 sellerWalletDetailMapper.insert(swd);
@@ -573,6 +577,10 @@ public class MerchantOrderPaymentService extends AbstractOrderPaymentService { @@ -573,6 +577,10 @@ public class MerchantOrderPaymentService extends AbstractOrderPaymentService {
573 swd.setCreateTime(TimeUtils.getTimeStampSecond()); 577 swd.setCreateTime(TimeUtils.getTimeStampSecond());
574 swd.setUpdateTime(0); 578 swd.setUpdateTime(0);
575 ////////////////////////// 579 //////////////////////////
  580 + if (attach != null) {
  581 + attach.setType(type.getValue());
  582 + attach.setTypeName(type.getName());
  583 + }
576 swd.setAttachValue(attach==null?"":JSON.toJSONString(attach)); 584 swd.setAttachValue(attach==null?"":JSON.toJSONString(attach));
577 swd.setAvailAmount(availAmount == null ? beforeAvailAmount : beforeAvailAmount.add(availAmount)); 585 swd.setAvailAmount(availAmount == null ? beforeAvailAmount : beforeAvailAmount.add(availAmount));
578 swd.setLockAmount(lockAmount == null ? beforeLockAmount : beforeLockAmount.add(lockAmount)); 586 swd.setLockAmount(lockAmount == null ? beforeLockAmount : beforeLockAmount.add(lockAmount));