forked from github/dataease
commit
e71470272c
@ -1131,7 +1131,7 @@ public class ChartDataBuild {
|
||||
if (StringUtils.isEmpty(originStr) || originStr.length() <= columnPermissionItem.getDesensitizationRule().getM() + columnPermissionItem.getDesensitizationRule().getN() + 1) {
|
||||
desensitizationStr = String.join("", Collections.nCopies(columnPermissionItem.getDesensitizationRule().getM(), "X")) + "***" + String.join("", Collections.nCopies(columnPermissionItem.getDesensitizationRule().getN(), "X"));
|
||||
} else {
|
||||
desensitizationStr = StringUtils.substring(originStr, 0, columnPermissionItem.getDesensitizationRule().getM()) + "***" + StringUtils.substring(originStr, originStr.length() - columnPermissionItem.getDesensitizationRule().getN() - 1, originStr.length() - 1);
|
||||
desensitizationStr = StringUtils.substring(originStr, 0, columnPermissionItem.getDesensitizationRule().getM()) + "***" + StringUtils.substring(originStr, originStr.length() - columnPermissionItem.getDesensitizationRule().getN() - 1, originStr.length());
|
||||
}
|
||||
break;
|
||||
case RetainMToN:
|
||||
|
@ -448,6 +448,8 @@ public class ExtractDataService {
|
||||
} else {
|
||||
DatasetTableField datasetTableField = new DatasetTableField();
|
||||
datasetTableField.setDeExtractType(0);
|
||||
datasetTableField.setType("String");
|
||||
datasetTableField.setDeType(0);
|
||||
datasetTableField.setDataeaseName("dataease_uuid");
|
||||
datasetTableField.setOriginName("dataease_uuid");
|
||||
datasetTableField.setSize(0);
|
||||
@ -1302,7 +1304,7 @@ public class ExtractDataService {
|
||||
userDefinedJavaClassMeta.setFieldInfo(fields);
|
||||
List<UserDefinedJavaClassDef> definitions = new ArrayList<>();
|
||||
String tmp_code = code.replace("handleWraps", handleWraps).replace("handleBinaryType", handleBinaryTypeCode.toString());
|
||||
if (!isSetKey) {
|
||||
if (isSetKey) {
|
||||
tmp_code = tmp_code.replace("handleDataease_uuid", "");
|
||||
} else {
|
||||
tmp_code = tmp_code.replace("handleDataease_uuid", handleDataease_uuid);
|
||||
|
@ -228,7 +228,7 @@
|
||||
<el-table-column
|
||||
property="key"
|
||||
:label="$t('dataset.change_to_key')"
|
||||
v-if=""
|
||||
v-if="table.mode === 1"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<el-select v-model="scope.row.key" @change="saveKey(scope.row)" >
|
||||
@ -583,6 +583,7 @@
|
||||
<el-table-column
|
||||
property="key"
|
||||
:label="$t('dataset.change_to_key')"
|
||||
v-if="table.mode === 1"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<el-select v-model="scope.row.key" @change="saveKey(scope.row)" >
|
||||
|
Loading…
Reference in New Issue
Block a user