提交 10a6031a 作者: obcy

【fix】

上级 73fa1b20
...@@ -115,6 +115,7 @@ public class Subject implements Serializable { ...@@ -115,6 +115,7 @@ public class Subject implements Serializable {
@TableField(exist = false) @TableField(exist = false)
private String typeId; private String typeId;
/**数据范围(是否是全库) - 采集库全库-1,企业库全库-2,政策库全库-3*/ /**数据范围(是否是全库) - 采集库全库-1,企业库全库-2,政策库全库-3*/
@TableField(updateStrategy = FieldStrategy.IGNORED) // 忽略更新策略
private String dataScope; private String dataScope;
} }
...@@ -929,9 +929,13 @@ public class SubjectServiceImpl extends ServiceImpl<SubjectMapper, Subject> impl ...@@ -929,9 +929,13 @@ public class SubjectServiceImpl extends ServiceImpl<SubjectMapper, Subject> impl
}else if (StrUtil.equals(type,"3") && "0".equals(scop)){ }else if (StrUtil.equals(type,"3") && "0".equals(scop)){
scopeList.remove("3"); scopeList.remove("3");
} }
scopeList = scopeList.stream().distinct().collect(Collectors.toList()); if (CollectionUtil.isNotEmpty(scopeList)) {
String join = StrUtil.join(",", scopeList); scopeList = scopeList.stream().distinct().collect(Collectors.toList());
byId.setDataScope(join); String join = StrUtil.join(",", scopeList);
byId.setDataScope(join);
}else {
byId.setDataScope(null);
}
this.updateById(byId); this.updateById(byId);
}else { }else {
if ("1".equals(scop)) { if ("1".equals(scop)) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论