From c63c1032fa9b1bdbadae1d02efb2b4c02c9fc853 Mon Sep 17 00:00:00 2001 From: Kris <2893855659@qq.com> Date: Thu, 25 Sep 2025 10:48:30 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90feat=E3=80=91=20=E6=8E=A8=E9=80=81Cont?= =?UTF-8?q?enteDocumentLink=E5=A2=9E=E5=8A=A0=E6=89=93=E5=8D=B0=E5=AF=B9?= =?UTF-8?q?=E8=B1=A1=E4=BF=A1=E6=81=AF=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/DataImportNewServiceImpl.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/main/java/com/celnet/datadump/service/impl/DataImportNewServiceImpl.java b/src/main/java/com/celnet/datadump/service/impl/DataImportNewServiceImpl.java index dbb2fc8..6589b92 100644 --- a/src/main/java/com/celnet/datadump/service/impl/DataImportNewServiceImpl.java +++ b/src/main/java/com/celnet/datadump/service/impl/DataImportNewServiceImpl.java @@ -1230,6 +1230,13 @@ public class DataImportNewServiceImpl implements DataImportNewService { @Override public ReturnT uploadDocumentLinkJob(String paramStr) throws Exception { String api = "ContentDocumentLink"; + + Map infoFlag = customMapper.list("code,value","system_config","code ='"+SystemConfigCode.INFO_FLAG+"'").get(0); + + QueryWrapper dbQw = new QueryWrapper<>(); + dbQw.eq("api", api); + List dataFields = dataFieldService.list(dbQw); + PartnerConnection connection = salesforceTargetConnect.createConnect(); List> list = customMapper.list("Id", "ContentDocument", "new_id is not null"); try { @@ -1280,6 +1287,9 @@ public class DataImportNewServiceImpl implements DataImportNewService { } } try { + if (infoFlag != null && "1".equals(infoFlag.get("value"))){ + printlnAccountsDetails(accounts,dataFields); + } SaveResult[] saveResults = connection.create(accounts); for (int j = 0; j < saveResults.length; j++) { if (!saveResults[j].getSuccess()) {