From 9dd941578dab376955738c4605e36d1904e80878 Mon Sep 17 00:00:00 2001 From: qyx <565485304@qq.com> Date: Sat, 7 Aug 2021 17:45:28 +0800 Subject: [PATCH] =?UTF-8?q?[=E5=9B=9E=E9=80=80=E6=9B=B4=E6=94=B9](master):?= =?UTF-8?q?=20=E5=9B=9E=E9=80=80=E5=88=B0=E6=9C=80=E6=96=B0=E7=89=88?= =?UTF-8?q?=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 回退错误代码 --- .../zhengjie/modules/uploadnew/httpRequest/HttpClient.java | 2 -- .../zhengjie/modules/uploadnew/task/TransFormDataTask.java | 6 ++---- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/eladmin-system/src/main/java/me/zhengjie/modules/uploadnew/httpRequest/HttpClient.java b/eladmin-system/src/main/java/me/zhengjie/modules/uploadnew/httpRequest/HttpClient.java index 314f44f..12d6f93 100644 --- a/eladmin-system/src/main/java/me/zhengjie/modules/uploadnew/httpRequest/HttpClient.java +++ b/eladmin-system/src/main/java/me/zhengjie/modules/uploadnew/httpRequest/HttpClient.java @@ -8,8 +8,6 @@ import org.apache.http.client.methods.HttpPost; import org.apache.http.entity.StringEntity; import org.apache.http.util.EntityUtils; -import java.util.Map; - /** * @author wjt * @date 2021/8/6 diff --git a/eladmin-system/src/main/java/me/zhengjie/modules/uploadnew/task/TransFormDataTask.java b/eladmin-system/src/main/java/me/zhengjie/modules/uploadnew/task/TransFormDataTask.java index 3c2efc4..da10c8d 100644 --- a/eladmin-system/src/main/java/me/zhengjie/modules/uploadnew/task/TransFormDataTask.java +++ b/eladmin-system/src/main/java/me/zhengjie/modules/uploadnew/task/TransFormDataTask.java @@ -2,7 +2,6 @@ package me.zhengjie.modules.uploadnew.task; import cn.hutool.json.JSONUtil; import lombok.extern.slf4j.Slf4j; -import me.zhengjie.modules.formdata.service.dto.FormdataDto; import me.zhengjie.modules.uploadnew.httpRequest.HttpClient; import me.zhengjie.modules.uploadnew.service.dto.OosDTO; import me.zhengjie.utils.ConvertUtil; @@ -12,7 +11,6 @@ import org.springframework.stereotype.Component; import java.time.LocalDateTime; import java.time.ZoneOffset; -import java.util.List; @Component @Scope("prototype") @@ -30,7 +28,7 @@ public class TransFormDataTask { } private void runTask(OosDTO oosDTO) { -// String jsonStr = JSONUtil.toJsonStr(oosDTO); -// HttpClient.doPost(jsonStr, "utf-8"); + String jsonStr = JSONUtil.toJsonStr(oosDTO); + HttpClient.doPost(jsonStr, "utf-8"); } }