Browse Source

REPORT-38917 模板短时间内的保存记录对应多个UUID

feature/big-screen
hades 4 years ago
parent
commit
0c681257d3
  1. 5
      designer-base/src/main/java/com/fr/design/DesignerEnvManager.java
  2. 3
      designer-base/src/test/java/com/fr/design/data/DesignTableDataManagerTest.java

5
designer-base/src/main/java/com/fr/design/DesignerEnvManager.java

@ -1472,7 +1472,10 @@ public class DesignerEnvManager implements XMLReadable, XMLWriter {
}
public String getUUID() {
return StringUtils.isEmpty(uuid) ? UUID.randomUUID().toString() : uuid;
if (StringUtils.isEmpty(uuid)) {
uuid = UUID.randomUUID().toString();
}
return uuid;
}
public int getActiveKeyStatus() {

3
designer-base/src/test/java/com/fr/design/data/DesignTableDataManagerTest.java

@ -155,7 +155,4 @@ public class DesignTableDataManagerTest {
DesignTableDataManager.addDsColumnNames("ds1", new String[]{"a", "b", "c"});
Assert.assertEquals(columnNames, DesignTableDataManager.getDsColumnNames("ds1"));
}
public void testFireDsChanged() {
}
}

Loading…
Cancel
Save