|
@@ -23,6 +23,7 @@ import org.apache.poi.openxml4j.exceptions.InvalidFormatException;
|
|
import org.apache.poi.ss.usermodel.*;
|
|
import org.apache.poi.ss.usermodel.*;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
|
+import org.springframework.boot.web.client.RestTemplateBuilder;
|
|
import org.springframework.http.*;
|
|
import org.springframework.http.*;
|
|
import org.springframework.http.client.ClientHttpResponse;
|
|
import org.springframework.http.client.ClientHttpResponse;
|
|
import org.springframework.http.converter.json.MappingJackson2HttpMessageConverter;
|
|
import org.springframework.http.converter.json.MappingJackson2HttpMessageConverter;
|
|
@@ -37,10 +38,14 @@ import org.springframework.web.multipart.MultipartFile;
|
|
import sun.net.www.http.HttpClient;
|
|
import sun.net.www.http.HttpClient;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
import javax.annotation.Resource;
|
|
|
|
+import javax.net.ssl.TrustManager;
|
|
|
|
+import javax.net.ssl.X509TrustManager;
|
|
import javax.servlet.http.HttpServletRequest;
|
|
import javax.servlet.http.HttpServletRequest;
|
|
import java.io.*;
|
|
import java.io.*;
|
|
import java.math.BigDecimal;
|
|
import java.math.BigDecimal;
|
|
import java.math.RoundingMode;
|
|
import java.math.RoundingMode;
|
|
|
|
+import java.security.cert.CertificateException;
|
|
|
|
+import java.security.cert.X509Certificate;
|
|
import java.sql.Timestamp;
|
|
import java.sql.Timestamp;
|
|
import java.text.DateFormat;
|
|
import java.text.DateFormat;
|
|
import java.text.DecimalFormat;
|
|
import java.text.DecimalFormat;
|
|
@@ -200,6 +205,7 @@ public class ReportServiceImpl extends ServiceImpl<ReportMapper, Report> impleme
|
|
private CorpwxJobResultMapper corpwxJobResultMapper;
|
|
private CorpwxJobResultMapper corpwxJobResultMapper;
|
|
@Autowired
|
|
@Autowired
|
|
RestTemplate restTemplate;
|
|
RestTemplate restTemplate;
|
|
|
|
+
|
|
@Resource
|
|
@Resource
|
|
private ReportAuditLogService reportAuditLogService;
|
|
private ReportAuditLogService reportAuditLogService;
|
|
@Resource
|
|
@Resource
|
|
@@ -5441,7 +5447,6 @@ public class ReportServiceImpl extends ServiceImpl<ReportMapper, Report> impleme
|
|
param.put("data",array);
|
|
param.put("data",array);
|
|
System.out.println("推送过去的数据========"+array.toJSONString());
|
|
System.out.println("推送过去的数据========"+array.toJSONString());
|
|
HttpEntity<String> requestEntity = new HttpEntity<String>(param.toJSONString(),headers);
|
|
HttpEntity<String> requestEntity = new HttpEntity<String>(param.toJSONString(),headers);
|
|
- //过滤掉账号认证失败的时候抛出的401异常
|
|
|
|
restTemplate.setErrorHandler(new DefaultResponseErrorHandler(){
|
|
restTemplate.setErrorHandler(new DefaultResponseErrorHandler(){
|
|
@Override
|
|
@Override
|
|
public void handleError(ClientHttpResponse response) throws IOException {
|
|
public void handleError(ClientHttpResponse response) throws IOException {
|
|
@@ -5468,6 +5473,7 @@ public class ReportServiceImpl extends ServiceImpl<ReportMapper, Report> impleme
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+
|
|
return msg;
|
|
return msg;
|
|
}
|
|
}
|
|
|
|
|