mirror of
https://github.com/actiontech/dble.git
synced 2026-01-08 05:40:15 -06:00
fix modify the display default value inner 1846
This commit is contained in:
@@ -68,7 +68,7 @@ public class DelayDetection {
|
||||
}
|
||||
|
||||
private void synSql() {
|
||||
String[] str = {"dble", SystemConfig.getInstance().getInstanceName(), dbGroupConfig.getName()};
|
||||
String[] str = {"dble", dbGroupConfig.getName(), SystemConfig.getInstance().getInstanceName()};
|
||||
sourceName = Joiner.on("_").join(str);
|
||||
String schema = dbGroupConfig.getDelayDatabase();
|
||||
String tableName = ".u_delay ";
|
||||
|
||||
@@ -105,10 +105,16 @@ public class DbleDbGroup extends ManagerWritableTable {
|
||||
map.put(COLUMN_ACTIVE, Boolean.TRUE.toString());
|
||||
return map;
|
||||
}).collect(Collectors.toList());
|
||||
tempRowList.forEach(this::defaultVal);
|
||||
rowList.addAll(tempRowList);
|
||||
return rowList;
|
||||
}
|
||||
|
||||
private void defaultVal(LinkedHashMap<String, String> rows) {
|
||||
String delayDatabase = rows.get(DELAY_DATABASE);
|
||||
rows.put(DELAY_DATABASE, String.valueOf(delayDatabase));
|
||||
}
|
||||
|
||||
@Override
|
||||
public int insertRows(List<LinkedHashMap<String, String>> rows) {
|
||||
//check rule
|
||||
|
||||
Reference in New Issue
Block a user