用户栏目新增逻辑修改

This commit is contained in:
ly19960718 2021-06-04 17:24:04 +08:00
parent b00c06891f
commit 39ceb4bb88

View File

@ -43,7 +43,7 @@ public class UserColumnServiceImpl extends DefaultBaseService implements IUserCo
} catch (ReflectUtil.ReflectException e) {
throw new SaveException("系统错误");
}
if(!StringUtils.isBlank(userColumnVO.getColumnId())){
String[] columnIds = userColumnVO.getColumnId().split(",");
for (String columnId : columnIds) {
UserColumnVO vo =new UserColumnVO();
@ -51,6 +51,14 @@ public class UserColumnServiceImpl extends DefaultBaseService implements IUserCo
this.save(token,vo);
}
}
}
public void deleteByCreator(String creator){
@ -65,7 +73,6 @@ public class UserColumnServiceImpl extends DefaultBaseService implements IUserCo
Map<String, Object> params = new HashMap<>();
params.put("creator",creator);
return this.list(params);
}