|
|
|
@ -4,7 +4,6 @@ import com.alibaba.fastjson.JSONObject; |
|
|
|
import com.hxjt.dataupload.model.entity.doubleprevent.Fxfxdx; |
|
|
|
import com.hxjt.dataupload.service.FxfxdxService; |
|
|
|
import com.hxjt.dataupload.utils.HttpUtils; |
|
|
|
import com.hxjt.dataupload.utils.JsonData; |
|
|
|
import com.xxl.job.core.context.XxlJobHelper; |
|
|
|
import com.xxl.job.core.handler.annotation.XxlJob; |
|
|
|
import org.apache.http.protocol.HTTP; |
|
|
|
@ -80,7 +79,7 @@ public class FxfxdxJobHandler { |
|
|
|
//System.out.println(fxfxdxs.get(i).toString());
|
|
|
|
} |
|
|
|
for (int i = 0; i < fxfxdxs.size(); i++) { |
|
|
|
|
|
|
|
|
|
|
|
String company = fxfxdxs.get(i).getQiyemingcheng(); |
|
|
|
String url = "https://www.ny-fxfk.com/space-ningyanghuagongchany/sapi/qpaas/tiga/dys/keyAuthentication/fengxianfenxiduixian/v1/fengxianfenxiduixian"; |
|
|
|
switch (company) { |
|
|
|
@ -91,6 +90,7 @@ public class FxfxdxJobHandler { |
|
|
|
try { |
|
|
|
post = HttpUtils.sendDataUpload(url, jsonObject, HTTP.UTF_8, "avRdnP4OxPigMalwzipa9F643CF443BE2F93"); |
|
|
|
//System.out.println("post:"+post.toString());
|
|
|
|
XxlJobHelper.log("执行日志:"+company+post.toString()); |
|
|
|
} catch (IOException e) { |
|
|
|
e.printStackTrace(); |
|
|
|
XxlJobHelper.handleFail("任务执行失败"+e.getMessage()); |
|
|
|
|