|
@@ -241,14 +241,14 @@ public class KuaishouLiveUserAccountServiceImpl implements IKuaishouLiveUserAcco
|
|
|
obj.put("accountId", account.getAccountId());
|
|
|
obj.put("accountName", account.getAccountName());
|
|
|
obj.put("createrId", account.getCreaterId());
|
|
|
- accountPartMapper.deleteByAccountId(account.getKsId(), account.getAccountId(),obj.getLong("userId"));
|
|
|
}
|
|
|
|
|
|
if (Check.isNotNull(collaborators)) {
|
|
|
+ accountPartMapper.deleteByAccountId(account.getKsId(), account.getAccountId(),null);
|
|
|
accountPartMapper.replaceBatch(collaborators);
|
|
|
}
|
|
|
} else {
|
|
|
- accountPartMapper.deleteKuaishouLiveUserAccountPartById(account.getKsId());
|
|
|
+ accountPartMapper.deleteByAccountId(account.getKsId(), account.getAccountId(),null);
|
|
|
}
|
|
|
return ResultResponse.success();
|
|
|
}
|
|
@@ -332,7 +332,7 @@ public class KuaishouLiveUserAccountServiceImpl implements IKuaishouLiveUserAcco
|
|
|
@Override
|
|
|
public ResultResponse deleteAccountAllUser(Long ksId, Long accountId, String role, Long userId) {
|
|
|
if ("collaborator".equals(role)) {
|
|
|
- accountPartMapper.deleteByAccountId(ksId, accountId,userId);
|
|
|
+ accountPartMapper.deleteByAccountId(ksId, accountId, userId);
|
|
|
} else {
|
|
|
KuaishouLiveUserAccount account = new KuaishouLiveUserAccount();
|
|
|
account.setAccountId(accountId);
|