|
@@ -12,6 +12,7 @@ import com.dragoninfo.dcuc.app.entity.sub.DataCla;
|
|
|
import com.dragoninfo.dcuc.app.entity.sub.DataLevel;
|
|
|
import com.dragoninfo.dcuc.app.entity.sub.DataSec;
|
|
|
import com.dragoninfo.dcuc.app.entity.sub.FieldCla;
|
|
|
+import com.dragoninfo.dcuc.app.enumresources.DataAttrTypeEnum;
|
|
|
import com.dragoninfo.dcuc.app.enumresources.DataResourceEnum;
|
|
|
import com.dragoninfo.dcuc.app.enumresources.sub.DataClaTypeEnum;
|
|
|
import com.dragoninfo.dcuc.app.enumresources.sub.FieldClaTypeEnum;
|
|
@@ -78,13 +79,13 @@ public class DataResourceFacade implements IDataResourceFacade {
|
|
|
List<DataResourceClassifyVo> result = Lists.newArrayList();
|
|
|
//列:数据安全级别 字段分类
|
|
|
//表:数据分级 数据资源分类
|
|
|
- if ("TABLE".equals(attrType)) {
|
|
|
+ if (DataAttrTypeEnum.DATA_ATTR_TABLE.getValue().equals(attrType)) {
|
|
|
// 查询所有的表和列
|
|
|
List<DataTabInfo> tabInfos = tabInfoService.getAllTabInfos();
|
|
|
List<DataColInfo> colInfos = colInfoService.getAllColInfos();
|
|
|
result.add(getDataLevelTree());
|
|
|
result.add(getDataClassifyTree(tabInfos, colInfos));
|
|
|
- } else if ("COLUMN".equals(attrType)) {
|
|
|
+ } else if (DataAttrTypeEnum.DATA_ATTR_COLUMN.getValue().equals(attrType)) {
|
|
|
List<DataColInfo> colInfos = colInfoService.getAllColInfos();
|
|
|
result.add(getSecurityLevelTree());
|
|
|
result.add(getFieldClassifyTree(colInfos));
|
|
@@ -563,6 +564,11 @@ public class DataResourceFacade implements IDataResourceFacade {
|
|
|
return ResponseStatus.success();
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public ResponseStatus syncTableAndColumn() {
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
@Override
|
|
|
public List<DataLevelVo> getDetailByIdsAndClaType(List<String> ids, String classifyType) {
|