|
|
@@ -298,7 +298,16 @@ public class SysUserAccountServiceImpl extends ServiceImpl<SysUserAccountMapper,
|
|
|
@Transactional
|
|
|
public HttpResult<Object> inert(SysUserAccountVo sysUserAccountVo) {
|
|
|
String userId = BaseController.getUser().getId();
|
|
|
- if (isManagement(userId) && sysSwitchConfigService.getBalanceExtractStatus()) {
|
|
|
+// if (isManagement(userId) && sysSwitchConfigService.getBalanceExtractStatus()) {
|
|
|
+// // 个代走线上付款
|
|
|
+// UserWithdrawal withdrawal = new UserWithdrawal();
|
|
|
+// withdrawal.setUserId(userId);
|
|
|
+// withdrawal.setAmount(sysUserAccountVo.getAmount());
|
|
|
+// withdrawal.setBankNumber(sysUserAccountVo.getFromBankCardId());
|
|
|
+// return ttqfService.userCashOut(withdrawal);
|
|
|
+// }
|
|
|
+ SysUser byUserId = sysUserMapper.getByUserId(userId);
|
|
|
+ if (sysSwitchConfigService.isEnabled(SwitchConfig.VIRTUAL_WITHDRAWAL.getCode()) && byUserId.isInternalId()){
|
|
|
// 个代走线上付款
|
|
|
UserWithdrawal withdrawal = new UserWithdrawal();
|
|
|
withdrawal.setUserId(userId);
|
|
|
@@ -306,6 +315,7 @@ public class SysUserAccountServiceImpl extends ServiceImpl<SysUserAccountMapper,
|
|
|
withdrawal.setBankNumber(sysUserAccountVo.getFromBankCardId());
|
|
|
return ttqfService.userCashOut(withdrawal);
|
|
|
}
|
|
|
+
|
|
|
//add by hxl 2024-09-26 添加电销组员开关
|
|
|
boolean flag = sysSwitchConfigService.dxtxDisplaySwitches();
|
|
|
if (flag) {
|