Browse Source

账户2.0——导入账户 bug修复

zhaoxian 3 years ago
parent
commit
b476544246

+ 2 - 2
ruixuan-live/src/main/java/com/ruixuan/live/service/impl/KuaishouLiveUserAccountServiceImpl.java

@@ -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);
                 }
                 }