提交人:csx

提交时间:2025年12月28日
提交内容:共享推送定时任务
This commit is contained in:
root 2025-12-28 17:01:44 +08:00
parent dc5ee119b8
commit aedc93568b
1 changed files with 1 additions and 14 deletions

View File

@ -15,7 +15,6 @@ import kd.bos.schedule.executor.AbstractTask;
import kd.bos.servicehelper.BusinessDataServiceHelper;
import kd.bos.servicehelper.QueryServiceHelper;
import kd.bos.servicehelper.operation.SaveServiceHelper;
import kd.drp.mdr.api.Api;
import kd.tmc.fbp.common.util.EmptyUtil;
import org.apache.http.client.methods.CloseableHttpResponse;
import org.apache.http.client.methods.HttpPost;
@ -25,21 +24,9 @@ import org.apache.http.entity.StringEntity;
import org.apache.http.impl.client.CloseableHttpClient;
import org.apache.http.impl.client.HttpClients;
import org.apache.http.util.EntityUtils;
import org.springframework.http.HttpEntity;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpMethod;
import org.springframework.http.ResponseEntity;
import org.springframework.web.client.RestTemplate;
import shkd.sys.sys.mservice.ApiService;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.URI;
import java.net.URL;
import java.nio.charset.StandardCharsets;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.text.ParseException;
@ -63,7 +50,7 @@ public class SharePushTaskPlugin extends AbstractTask {
//获取司库电子回单推送共享系统的对应映射
QFilter qFilter = new QFilter("shkd_name", QCP.equals,"司库电子回单推送共享系统");
DynamicObject shkd_apimappingid = BusinessDataServiceHelper.loadSingle("shkd_apimapping", "id", qFilter.toArray());
if (EmptyUtil.isEmpty(shkd_apimappingid)){
if (shkd_apimappingid==null){
logger.info("未找到对应的推送接口映射");
return;
}