Compare commits

..

No commits in common. "189d791071a53fafbc020072a9517d6ceb964279" and "89eb4d52e8c6a59345300439378127a60c03c5b7" have entirely different histories.

2 changed files with 58 additions and 1 deletions

View File

@ -207,9 +207,60 @@ public class BusinessServiceImpl extends BaseService<BusinessEntity, String> imp
String times = sdf.format(date);
//2调用接口获取数据
Integer queryCursor = 1;
String startDate = times+" 00:00:00";
String endDate = times+" 23:59:59";
JSONArray datalist = new JSONArray();
List<String> a = new ArrayList<>();
a.add("2025-09-09");
a.add("2025-03-11");
a.add("2025-03-12");
a.add("2025-03-13");
a.add("2025-03-14");
a.add("2025-03-15");
a.add("2025-03-16");
a.add("2025-03-17");
a.add("2025-03-18");
a.add("2025-03-19");
a.add("2025-03-20");
a.add("2025-03-21");
a.add("2025-03-22");
a.add("2025-03-23");
a.add("2025-03-24");
a.add("2025-03-25");
a.add("2025-03-26");
a.add("2025-03-27");
a.add("2025-03-28");
a.add("2025-03-29");
a.add("2025-03-30");
a.add("2025-03-31");
a.add("2025-04-01");
a.add("2025-04-02");
a.add("2025-04-03");
a.add("2025-04-04");
a.add("2025-04-05");
a.add("2025-04-06");
a.add("2025-04-07");
a.add("2025-04-08");
a.add("2025-04-09");
a.add("2025-04-10");
a.add("2025-04-11");
a.add("2025-04-12");
a.add("2025-04-13");
a.add("2025-04-14");
a.add("2025-04-15");
a.add("2025-04-16");
a.add("2025-04-17");
a.add("2025-04-18");
a.add("2025-04-19");
a.add("2025-04-20");
a.add("2025-04-21");
a.add("2025-04-22");
a.add("2025-04-23");
a.add("2025-04-24");
a.add("2025-04-25");
a.add("2025-04-26");
a.add("2025-04-27");
a.add("2025-04-28");
a.add("2025-04-29");
a.add(times);
for (int i = 0; i < a.size(); i++) {
sendBusinessData(datalist, access_token, queryCursor, a.get(i)+" 00:00:00", a.get(i)+" 23:59:59");

View File

@ -405,6 +405,12 @@ public class ComplianceSupplierServiceImpl extends BaseService<ComplianceSupplie
private String getToken() {
String token = null;
JSONObject sendData = new JSONObject();
// JSON 对象中添加键值对
sendData.put("client_id", "984fcd60-ea94-4217-9457-dce67b051038");
sendData.put("client_secret", "k_b1E3YUIGv!PtiaeY$JR_Jb&lJ*0FTy");
sendData.put("resource", "webservice1");
sendData.put("grant_type", "client_credentials");
String tokenResult = HttpRequest.post("https://10.0.3.120/LN.Webservices/api/oauth2/token").// todo 正式
header("Accept", "application/json").