|
|
@@ -60,7 +60,7 @@ public class KuaishouLiveUserAccountServiceImpl implements IKuaishouLiveUserAcco
|
|
|
KuaishouLiveUserAccount account = kuaishouLiveUserAccountMapper.selectKuaishouLiveUserAccountById(id);
|
|
|
JSONObject object = JSONObject.parseObject(JSON.toJSONString(account));
|
|
|
if (object != null) {
|
|
|
- List<JSONObject> parts = accountPartMapper.queryCollaboratorsById(account.getKsId());
|
|
|
+ List<JSONObject> parts = accountPartMapper.queryCollaboratorsById(account.getKsId(), account.getAccountId());
|
|
|
object.put("collaborators", parts);
|
|
|
}
|
|
|
return object;
|
|
|
@@ -241,8 +241,8 @@ 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());
|
|
|
}
|
|
|
- accountPartMapper.deleteKuaishouLiveUserAccountPartById(account.getKsId());
|
|
|
if (Check.isNotNull(collaborators)) {
|
|
|
accountPartMapper.replaceBatch(collaborators);
|
|
|
}
|