Commit 9a3ffc1352e6e650ce9ec19decb6e720a0836ad9
Committed by
xp.Huang
1 parent
9242811b
fix:解决组态引用模板入库报错
(cherry picked from commit a0c81ec421d59f5234d17026be04a17b9dfdbcc2)
Showing
1 changed file
with
1 additions
and
0 deletions
... | ... | @@ -105,6 +105,7 @@ public class TkConfigurationCenterServiceImpl |
105 | 105 | List<ConfigurationContentNodeDTO> nodeListCopyEntity = nodeService.selectByConfigurationId(templateId,configurationCenterDTO.getTenantId()); |
106 | 106 | if(nodeListCopyEntity!=null&&!nodeListCopyEntity.isEmpty()){ |
107 | 107 | nodeListCopyEntity.forEach(nodeCopyEntity -> { |
108 | + nodeCopyEntity.setId(null); | |
108 | 109 | nodeCopyEntity.setConfigurationId(configurationCenter.getId()); |
109 | 110 | JsonNode act = nodeCopyEntity.getActJson(); |
110 | 111 | JsonNode event =nodeCopyEntity.getEventJson(); | ... | ... |