124 lines
5.6 KiB
Java
124 lines
5.6 KiB
Java
package com.example.sso.testbao;
|
|
|
|
import com.alibaba.fastjson.JSONArray;
|
|
import com.alibaba.fastjson.JSONObject;
|
|
import com.example.sso.controller.QianFei;
|
|
import com.example.sso.dao.JiChuBiaoDao;
|
|
import com.example.sso.dao.JiaoTongWeiFaDao;
|
|
import com.example.sso.util.V5utils;
|
|
import org.springframework.scheduling.annotation.Scheduled;
|
|
import org.springframework.stereotype.Component;
|
|
|
|
@Component
|
|
public class Run {
|
|
//@Scheduled(cron = "0 29 18 3 * ?")
|
|
public void main1() throws InterruptedException {
|
|
JSONArray jsonArray = JiChuBiaoDao.jsonArray();
|
|
for (Object o : jsonArray){
|
|
Thread.sleep(1000);
|
|
JSONObject test = (JSONObject) o;
|
|
String idCard = test.getString("_widget_1717557644376");
|
|
String id = test.getString("_id");
|
|
JSONArray jsonArray1 = JiaoTongWeiFaDao.jsonArray(idCard);
|
|
if (jsonArray1.size() != 0 && jsonArray1 != null){
|
|
for (Object object : jsonArray1){
|
|
JSONObject jsonObject = (JSONObject) object;
|
|
|
|
Integer aDouble = jsonObject.getInteger("_widget_1718082954436");
|
|
Double aDouble2 = jsonObject.getDouble("_widget_1718162597102");
|
|
String widget1725274360910 = jsonObject.getString("_widget_1725274360910");
|
|
Integer widget1724396193068 = jsonObject.getInteger("_widget_1724396193068");
|
|
Integer widget1724396193070 = jsonObject.getInteger("_widget_1724396193070");
|
|
Integer widget1724396193071 = jsonObject.getInteger("_widget_1724396193071");
|
|
Integer widget1724396193072 = jsonObject.getInteger("_widget_1724396193072");
|
|
Integer widget1724396193073 = jsonObject.getInteger("_widget_1724396193073");
|
|
Integer widget1724396193074 = jsonObject.getInteger("_widget_1724396193074");
|
|
Integer widget1724396193075 = jsonObject.getInteger("_widget_1724396193075");
|
|
|
|
|
|
JSONObject jsonObject1 = new JSONObject();
|
|
jsonObject1.put("app_id","665ea38ef718f1edccf7b20d");
|
|
jsonObject1.put("entry_id","665fd98bf718f1edcc00377c");
|
|
jsonObject1.put("data_id",id);
|
|
JSONObject jsonObject2 = new JSONObject();
|
|
JSONObject _widget_1718098344621 = new JSONObject();
|
|
_widget_1718098344621.put("value",aDouble);
|
|
jsonObject2.put("_widget_1718098344621",_widget_1718098344621);
|
|
|
|
JSONObject _widget_1718157395046 = new JSONObject();
|
|
_widget_1718157395046.put("value",aDouble2);
|
|
jsonObject2.put("_widget_1718157395046",_widget_1718157395046);
|
|
|
|
JSONObject _widget_1717666304765 = new JSONObject();
|
|
_widget_1717666304765.put("value",widget1725274360910);
|
|
jsonObject2.put("_widget_1717666304765",_widget_1717666304765);
|
|
|
|
|
|
JSONObject _widget_1717727879724 = new JSONObject();
|
|
_widget_1717727879724.put("value","是");
|
|
jsonObject2.put("_widget_1717727879724",_widget_1717727879724);
|
|
|
|
JSONObject _widget_1717727879725 = new JSONObject();
|
|
_widget_1717727879725.put("value","否");
|
|
jsonObject2.put("_widget_1717727879725",_widget_1717727879725);
|
|
|
|
|
|
JSONObject _widget_1717727492391 = new JSONObject();
|
|
_widget_1717727492391.put("value","否");
|
|
jsonObject2.put("_widget_1717727492391",_widget_1717727492391);
|
|
|
|
|
|
JSONObject _widget_17176663047651 = new JSONObject();
|
|
_widget_17176663047651.put("value",widget1724396193068);
|
|
jsonObject2.put("_widget_1724396148701",_widget_17176663047651);
|
|
|
|
|
|
JSONObject _widget_1717666304765a = new JSONObject();
|
|
_widget_1717666304765a.put("value",widget1724396193070);
|
|
jsonObject2.put("_widget_1724396148706",_widget_1717666304765a);
|
|
|
|
|
|
JSONObject _widget_1717666304765b = new JSONObject();
|
|
_widget_1717666304765b.put("value",widget1724396193071);
|
|
jsonObject2.put("_widget_1724396148707",_widget_1717666304765b);
|
|
|
|
|
|
JSONObject _widget_1717666304765c = new JSONObject();
|
|
_widget_1717666304765c.put("value",widget1724396193072);
|
|
jsonObject2.put("_widget_1724396148708",_widget_1717666304765c);
|
|
|
|
JSONObject _widget_1717666304765d = new JSONObject();
|
|
_widget_1717666304765d.put("value",widget1724396193073);
|
|
jsonObject2.put("_widget_1724396148709",_widget_1717666304765d);
|
|
|
|
JSONObject _widget_1717666304765e = new JSONObject();
|
|
_widget_1717666304765e.put("value",widget1724396193074);
|
|
jsonObject2.put("_widget_1724396148710",_widget_1717666304765e);
|
|
|
|
JSONObject _widget_1717666304765f = new JSONObject();
|
|
_widget_1717666304765f.put("value",widget1724396193075);
|
|
jsonObject2.put("_widget_1724396148711",_widget_1717666304765f);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
jsonObject1.put("data",jsonObject2);
|
|
|
|
String jsonString = jsonObject1.toJSONString();
|
|
String updata = V5utils.updata(jsonString);
|
|
System.out.println(updata);
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
YuQi.main1();
|
|
QianFei.qianfei();
|
|
KeCheng.main1();
|
|
}
|
|
}
|