diff --git a/src/main/java/cn/com/tenlion/service/usercolumn/impl/UserColumnServiceImpl.java b/src/main/java/cn/com/tenlion/service/usercolumn/impl/UserColumnServiceImpl.java index 59f4563..d5d0109 100644 --- a/src/main/java/cn/com/tenlion/service/usercolumn/impl/UserColumnServiceImpl.java +++ b/src/main/java/cn/com/tenlion/service/usercolumn/impl/UserColumnServiceImpl.java @@ -43,16 +43,24 @@ public class UserColumnServiceImpl extends DefaultBaseService implements IUserCo } catch (ReflectUtil.ReflectException e) { throw new SaveException("系统错误"); } - - String[] columnIds = userColumnVO.getColumnId().split(","); - for (String columnId : columnIds) { - UserColumnVO vo =new UserColumnVO(); - vo.setColumnId(columnId); - this.save(token,vo); + if(!StringUtils.isBlank(userColumnVO.getColumnId())){ + String[] columnIds = userColumnVO.getColumnId().split(","); + for (String columnId : columnIds) { + UserColumnVO vo =new UserColumnVO(); + vo.setColumnId(columnId); + this.save(token,vo); + } } } + + + + + + + public void deleteByCreator(String creator){ Map params = new HashMap<>(1); params.put("creator",creator); @@ -65,7 +73,6 @@ public class UserColumnServiceImpl extends DefaultBaseService implements IUserCo Map params = new HashMap<>(); params.put("creator",creator); return this.list(params); - }