|
@@ -351,10 +351,20 @@ public class TaOrgOrderServiceImpl extends ServiceImpl<TaOrgOrderMapper, TaOrgOr
|
351
|
351
|
return responseBean;
|
352
|
352
|
}
|
353
|
353
|
|
354
|
|
- // 5.更新账户新金额
|
|
354
|
+ // 5.创建冻结表数据
|
|
355
|
+ TaOrgAccountBlocked taOrgAccountBlocked = new TaOrgAccountBlocked();
|
|
356
|
+ taOrgAccountBlocked.setAccountId(taOrgAccount.getAccountId());
|
|
357
|
+ taOrgAccountBlocked.setBlockedBalance(amount);
|
|
358
|
+ taOrgAccountBlocked.setBlockedReason("线上退款申请");
|
|
359
|
+ taOrgAccountBlocked.setCreateDate(LocalDateTime.now());
|
|
360
|
+ taOrgAccountBlocked.setStatus(CommConstant.STATUS_NORMAL);
|
|
361
|
+ taOrgAccountBlocked.setOrgId(orgId);
|
|
362
|
+ taOrgAccountBlockedMapper.insert(taOrgAccountBlocked);
|
|
363
|
+
|
|
364
|
+ // 6.更新账户新金额
|
355
|
365
|
taOrgAccountMapper.updateAvailableBalanceById(taOrgAccount.getAccountId(), amount);
|
356
|
366
|
|
357
|
|
- // 6.发送短信
|
|
367
|
+ // 7.发送短信
|
358
|
368
|
ExecutorService threadPool = Executors.newCachedThreadPool();
|
359
|
369
|
threadPool.execute(() -> {
|
360
|
370
|
List<TaContact> taContacts = taOrgAccountService.selectSmsContactUser();
|