diff --git a/src/main/java/neatlogic/module/process/importexport/handler/ProcessImportExportHandler.java b/src/main/java/neatlogic/module/process/importexport/handler/ProcessImportExportHandler.java index 82d15fa31c94e6e532edc5ff2248e762b16eccfc..d694ba30f4a7301de9c6b4333455821bd19a242d 100644 --- a/src/main/java/neatlogic/module/process/importexport/handler/ProcessImportExportHandler.java +++ b/src/main/java/neatlogic/module/process/importexport/handler/ProcessImportExportHandler.java @@ -147,6 +147,10 @@ public class ProcessImportExportHandler extends ImportExportHandlerBase { if (policyId == null) { continue; } + Integer isCustom = notifyPolicyConfig.getInteger("isCustom"); + if (!Objects.equals(isCustom, 1)) { + continue; + } if (action == IMPORT) { Object newPrimaryKey = getNewPrimaryKey(FrameworkImportExportHandlerType.NOTIFY_POLICY, policyId, primaryChangeList); if (newPrimaryKey != null) { @@ -179,8 +183,9 @@ public class ProcessImportExportHandler extends ImportExportHandlerBase { // 集成 JSONObject notifyPolicyConfig = processConfig.getJSONObject("notifyPolicyConfig"); if (MapUtils.isNotEmpty(notifyPolicyConfig)) { + Integer isCustom = notifyPolicyConfig.getInteger("isCustom"); Long policyId = notifyPolicyConfig.getLong("policyId"); - if (policyId != null) { + if (Objects.equals(isCustom, 1) && policyId != null) { if (action == IMPORT) { Object newPrimaryKey = getNewPrimaryKey(FrameworkImportExportHandlerType.NOTIFY_POLICY, policyId, primaryChangeList); if (newPrimaryKey != null) { @@ -248,8 +253,9 @@ public class ProcessImportExportHandler extends ImportExportHandlerBase { } JSONObject notifyPolicyConfig = stepConfig.getJSONObject("notifyPolicyConfig"); if (MapUtils.isNotEmpty(notifyPolicyConfig)) { + Integer isCustom = notifyPolicyConfig.getInteger("isCustom"); Long policyId = notifyPolicyConfig.getLong("policyId"); - if (policyId != null) { + if (Objects.equals(isCustom, 1) && policyId != null) { if (action == IMPORT) { Object newPrimaryKey = getNewPrimaryKey(FrameworkImportExportHandlerType.NOTIFY_POLICY, policyId, primaryChangeList); if (newPrimaryKey != null) {