|
@@ -230,7 +230,7 @@ public class KuaishouLiveUserAccountServiceImpl implements IKuaishouLiveUserAcco
|
|
|
int i = kuaishouLiveUserAccountMapper.updateKuaishouLiveUserAccount(account);
|
|
int i = kuaishouLiveUserAccountMapper.updateKuaishouLiveUserAccount(account);
|
|
|
if (i > 0) {
|
|
if (i > 0) {
|
|
|
String collaboratorList = account.getCollaboratorList();
|
|
String collaboratorList = account.getCollaboratorList();
|
|
|
- if (collaboratorList != null) {
|
|
|
|
|
|
|
+ if (Check.isNotNull(collaboratorList)) {
|
|
|
List<JSONObject> collaborators = JSONArray.parseArray(collaboratorList, JSONObject.class);
|
|
List<JSONObject> collaborators = JSONArray.parseArray(collaboratorList, JSONObject.class);
|
|
|
for (JSONObject obj : collaborators) {
|
|
for (JSONObject obj : collaborators) {
|
|
|
obj.put("ksId", account.getKsId());
|
|
obj.put("ksId", account.getKsId());
|
|
@@ -239,7 +239,7 @@ public class KuaishouLiveUserAccountServiceImpl implements IKuaishouLiveUserAcco
|
|
|
obj.put("accountName", account.getAccountName());
|
|
obj.put("accountName", account.getAccountName());
|
|
|
obj.put("createrId", account.getCreaterId());
|
|
obj.put("createrId", account.getCreaterId());
|
|
|
}
|
|
}
|
|
|
- if (collaborators != null) {
|
|
|
|
|
|
|
+ if (Check.isNotNull(collaborators)) {
|
|
|
accountPartMapper.deleteKuaishouLiveUserAccountPartById(account.getKsId());
|
|
accountPartMapper.deleteKuaishouLiveUserAccountPartById(account.getKsId());
|
|
|
accountPartMapper.replaceBatch(collaborators);
|
|
accountPartMapper.replaceBatch(collaborators);
|
|
|
}
|
|
}
|