forked from github/dataease
fix: 数据源设置同步时间
This commit is contained in:
parent
51a5695a60
commit
fc3b3cec3a
@ -1105,14 +1105,13 @@ public class ChartDataBuild {
|
||||
desensitizationStr = "*** ***";
|
||||
break;
|
||||
}
|
||||
if (originStr.length() >= columnPermissionItem.getDesensitizationRule().getM() && originStr.length() >= columnPermissionItem.getDesensitizationRule().getN()) {
|
||||
if (columnPermissionItem.getDesensitizationRule().getM() == 1) {
|
||||
desensitizationStr = StringUtils.substring(originStr, columnPermissionItem.getDesensitizationRule().getM() - 1, columnPermissionItem.getDesensitizationRule().getN()) + "***";
|
||||
break;
|
||||
} else {
|
||||
desensitizationStr = "***" + StringUtils.substring(originStr, columnPermissionItem.getDesensitizationRule().getM() - 1, columnPermissionItem.getDesensitizationRule().getN()) + "***";
|
||||
break;
|
||||
}
|
||||
if (originStr.length() >= columnPermissionItem.getDesensitizationRule().getM() && originStr.length() < columnPermissionItem.getDesensitizationRule().getN()) {
|
||||
desensitizationStr = StringUtils.substring(originStr, columnPermissionItem.getDesensitizationRule().getM() - 1, originStr.length());
|
||||
}
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
||||
|
@ -18,7 +18,7 @@ public abstract class DeScheduleJob implements Job {
|
||||
this.expression = jobDataMap.getString("expression");
|
||||
this.taskId = jobDataMap.getLong("taskId");
|
||||
this.updateType = jobDataMap.getString("updateType");
|
||||
LogUtil.info(jobKey.getGroup() + " Running: " + datasetTableId);
|
||||
LogUtil.info(jobKey.getName() + " Running: " + datasetTableId);
|
||||
LogUtil.info("CronExpression: " + expression);
|
||||
businessExecute(context);
|
||||
}
|
||||
|
@ -257,6 +257,9 @@ const saveDataset = () => {
|
||||
if (cmd.value === 'move' && !checkPid(params.pid)) {
|
||||
return
|
||||
}
|
||||
if (loading.value) {
|
||||
return
|
||||
}
|
||||
loading.value = true
|
||||
if (request) {
|
||||
let options = {
|
||||
|
@ -125,7 +125,7 @@ const initForm = type => {
|
||||
startTime: '',
|
||||
endTime: '',
|
||||
endLimit: '0',
|
||||
cron: '0 0 0/1 * * ? *'
|
||||
cron: '0 0/1 * * * ? *'
|
||||
}
|
||||
}
|
||||
if (type === 'oracle') {
|
||||
@ -362,7 +362,7 @@ const onRateChange = () => {
|
||||
form.value.syncSetting.cron = ''
|
||||
}
|
||||
if (form.value.syncSetting.syncRate === 'SIMPLE_CRON') {
|
||||
form.value.syncSetting.cron = '0 0 0/1 * * ? *'
|
||||
form.value.syncSetting.cron = '0 0/1 * * * ? *'
|
||||
form.value.syncSetting.simpleCronType = 'minute'
|
||||
}
|
||||
if (form.value.syncSetting.syncRate === 'CRON') {
|
||||
|
Loading…
Reference in New Issue
Block a user