|
|
|
@ -392,6 +392,7 @@ public class CashRefundServiceImpl implements RefundService { |
|
|
|
return cashRefundMapper.updateStatus(cashRecordDone); |
|
|
|
} |
|
|
|
|
|
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
|
@Override |
|
|
|
public int finalreview(CashRecordDone cashRecordDone, @RequestHeader(defaultValue = "zh_CN") String lang) { |
|
|
|
if (cashRecordDone.getPermanentGold() == null) { |
|
|
|
@ -459,7 +460,8 @@ public class CashRefundServiceImpl implements RefundService { |
|
|
|
auditMapper.updateUserGold(user); |
|
|
|
|
|
|
|
//钱包更新 |
|
|
|
List<UserWalletRecord> userWalletList = walletService.selectUserWalletRecord(userGoldRecord.getJwcode(), orderCode); |
|
|
|
String orderCodeA = "XJ" + orderCode.substring(4); |
|
|
|
List<UserWalletRecord> userWalletList = walletService.selectUserWalletRecord(userGoldRecord.getJwcode(), orderCodeA); |
|
|
|
UserRegionWallet userRegionWallet = new UserRegionWallet(); |
|
|
|
for (UserWalletRecord userWalletRecord : userWalletList){ |
|
|
|
userRegionWallet.setJwcode(userWalletRecord.getJwcode()); |
|
|
|
@ -467,6 +469,14 @@ public class CashRefundServiceImpl implements RefundService { |
|
|
|
userRegionWallet.setCurrentPermanentGold(BigDecimal.valueOf(userWalletRecord.getAmount())); |
|
|
|
walletService.updateUserGoldRecord(userRegionWallet); |
|
|
|
walletService.updateUserWalletRecord(userWalletRecord.getId()); |
|
|
|
UserWalletRecord userWalletRecord1 = new UserWalletRecord(); |
|
|
|
userWalletRecord1.setType(2); |
|
|
|
userWalletRecord1.setJwcode(userWalletRecord.getJwcode()); |
|
|
|
userWalletRecord1.setWalletId(userWalletRecord.getWalletId()); |
|
|
|
userWalletRecord1.setAmount(-userWalletRecord.getAmount()); |
|
|
|
userWalletRecord1.setOrderCode("TK"+orderCodeA); |
|
|
|
userWalletRecord1.setDescription(userWalletRecord.getDescription()+"退款"); |
|
|
|
walletService.addUserWalletRecord(userWalletRecord1); |
|
|
|
} |
|
|
|
|
|
|
|
GoldTistV2.addCoinNew(userGoldRecord.getJwcode().toString(), 58, //退款免费+永久金币-充值 |
|
|
|
|