package com.example.sso.controller; import com.alibaba.fastjson.JSONArray; import com.alibaba.fastjson.JSONObject; import com.example.sso.dao.JiChuBiaoDao; import com.example.sso.dao.JiaoTongYuQiDao; import com.example.sso.util.V5utils; import org.springframework.scheduling.annotation.Scheduled; import org.springframework.stereotype.Component; @Component public class JiaoTongYuQi { @Scheduled(cron = "0 0 19 19 * ?") 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_1717557644374"); String id = test.getString("_id"); JSONArray jsonArray1 = JiaoTongYuQiDao.jsonArray(idCard); if (jsonArray1.size() != 0 && jsonArray1 != null){ for (Object object : jsonArray1){ JSONObject jsonObject = (JSONObject) object; String aDouble = jsonObject.getString("_widget_1718184485291"); Integer aDouble2 = jsonObject.getInteger("_widget_1718184485293"); 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_1718097576152 = new JSONObject(); _widget_1718097576152.put("value",aDouble); jsonObject2.put("_widget_1718097576152",_widget_1718097576152); JSONObject _widget_1718097576151 = new JSONObject(); _widget_1718097576151.put("value",aDouble2); jsonObject2.put("_widget_1718097576151",_widget_1718097576151); 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_1717666304764 = new JSONObject(); _widget_1717666304764.put("value","是"); jsonObject2.put("_widget_1717666304764",_widget_1717666304764); jsonObject1.put("data",jsonObject2); String jsonString = jsonObject1.toJSONString(); String updata = V5utils.updata(jsonString); System.out.println(updata); } } } } @Scheduled(cron = "0 0 19 20 * ?") public void main2() throws InterruptedException { JSONArray jsonArray = JiChuBiaoDao.jsonArray(); for (Object o : jsonArray){ Thread.sleep(1000); JSONObject test = (JSONObject) o; String idCard = test.getString("_widget_1717557644374"); String id = test.getString("_id"); JSONArray jsonArray1 = JiaoTongYuQiDao.jsonArray(idCard); if (jsonArray1.size() != 0 && jsonArray1 != null){ for (Object object : jsonArray1){ JSONObject jsonObject = (JSONObject) object; String aDouble = jsonObject.getString("_widget_1718184485291"); Integer aDouble2 = jsonObject.getInteger("_widget_1718184485293"); 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_1718097576152 = new JSONObject(); _widget_1718097576152.put("value",aDouble); jsonObject2.put("_widget_1718097576152",_widget_1718097576152); JSONObject _widget_1718097576151 = new JSONObject(); _widget_1718097576151.put("value",aDouble2); jsonObject2.put("_widget_1718097576151",_widget_1718097576151); 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_1717666304764 = new JSONObject(); _widget_1717666304764.put("value","是"); jsonObject2.put("_widget_1717666304764",_widget_1717666304764); jsonObject1.put("data",jsonObject2); String jsonString = jsonObject1.toJSONString(); String updata = V5utils.updata(jsonString); System.out.println(updata); } } } } @Scheduled(cron = "0 0 19 21 * ?") public void main3() throws InterruptedException { JSONArray jsonArray = JiChuBiaoDao.jsonArray(); for (Object o : jsonArray){ Thread.sleep(1000); JSONObject test = (JSONObject) o; String idCard = test.getString("_widget_1717557644374"); String id = test.getString("_id"); JSONArray jsonArray1 = JiaoTongYuQiDao.jsonArray(idCard); if (jsonArray1.size() != 0 && jsonArray1 != null){ for (Object object : jsonArray1){ JSONObject jsonObject = (JSONObject) object; String aDouble = jsonObject.getString("_widget_1718184485291"); Integer aDouble2 = jsonObject.getInteger("_widget_1718184485293"); 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_1718097576152 = new JSONObject(); _widget_1718097576152.put("value",aDouble); jsonObject2.put("_widget_1718097576152",_widget_1718097576152); JSONObject _widget_1718097576151 = new JSONObject(); _widget_1718097576151.put("value",aDouble2); jsonObject2.put("_widget_1718097576151",_widget_1718097576151); 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_1717666304764 = new JSONObject(); _widget_1717666304764.put("value","是"); jsonObject2.put("_widget_1717666304764",_widget_1717666304764); jsonObject1.put("data",jsonObject2); String jsonString = jsonObject1.toJSONString(); String updata = V5utils.updata(jsonString); System.out.println(updata); } } } } @Scheduled(cron = "0 0 19 22 * ?") public void main5() throws InterruptedException { JSONArray jsonArray = JiChuBiaoDao.jsonArray(); for (Object o : jsonArray){ Thread.sleep(1000); JSONObject test = (JSONObject) o; String idCard = test.getString("_widget_1717557644374"); String id = test.getString("_id"); JSONArray jsonArray1 = JiaoTongYuQiDao.jsonArray(idCard); if (jsonArray1.size() != 0 && jsonArray1 != null){ for (Object object : jsonArray1){ JSONObject jsonObject = (JSONObject) object; String aDouble = jsonObject.getString("_widget_1718184485291"); Integer aDouble2 = jsonObject.getInteger("_widget_1718184485293"); 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_1718097576152 = new JSONObject(); _widget_1718097576152.put("value",aDouble); jsonObject2.put("_widget_1718097576152",_widget_1718097576152); JSONObject _widget_1718097576151 = new JSONObject(); _widget_1718097576151.put("value",aDouble2); jsonObject2.put("_widget_1718097576151",_widget_1718097576151); 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_1717666304764 = new JSONObject(); _widget_1717666304764.put("value","是"); jsonObject2.put("_widget_1717666304764",_widget_1717666304764); jsonObject1.put("data",jsonObject2); String jsonString = jsonObject1.toJSONString(); String updata = V5utils.updata(jsonString); System.out.println(updata); } } } } @Scheduled(cron = "0 0 19 23 * ?") public void main6() throws InterruptedException { JSONArray jsonArray = JiChuBiaoDao.jsonArray(); for (Object o : jsonArray){ Thread.sleep(1000); JSONObject test = (JSONObject) o; String idCard = test.getString("_widget_1717557644374"); String id = test.getString("_id"); JSONArray jsonArray1 = JiaoTongYuQiDao.jsonArray(idCard); if (jsonArray1.size() != 0 && jsonArray1 != null){ for (Object object : jsonArray1){ JSONObject jsonObject = (JSONObject) object; String aDouble = jsonObject.getString("_widget_1718184485291"); Integer aDouble2 = jsonObject.getInteger("_widget_1718184485293"); 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_1718097576152 = new JSONObject(); _widget_1718097576152.put("value",aDouble); jsonObject2.put("_widget_1718097576152",_widget_1718097576152); JSONObject _widget_1718097576151 = new JSONObject(); _widget_1718097576151.put("value",aDouble2); jsonObject2.put("_widget_1718097576151",_widget_1718097576151); 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_1717666304764 = new JSONObject(); _widget_1717666304764.put("value","是"); jsonObject2.put("_widget_1717666304764",_widget_1717666304764); jsonObject1.put("data",jsonObject2); String jsonString = jsonObject1.toJSONString(); String updata = V5utils.updata(jsonString); System.out.println(updata); } } } } @Scheduled(cron = "0 0 19 24 * ?") public void main7() throws InterruptedException { JSONArray jsonArray = JiChuBiaoDao.jsonArray(); for (Object o : jsonArray){ Thread.sleep(1000); JSONObject test = (JSONObject) o; String idCard = test.getString("_widget_1717557644374"); String id = test.getString("_id"); JSONArray jsonArray1 = JiaoTongYuQiDao.jsonArray(idCard); if (jsonArray1.size() != 0 && jsonArray1 != null){ for (Object object : jsonArray1){ JSONObject jsonObject = (JSONObject) object; String aDouble = jsonObject.getString("_widget_1718184485291"); Integer aDouble2 = jsonObject.getInteger("_widget_1718184485293"); 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_1718097576152 = new JSONObject(); _widget_1718097576152.put("value",aDouble); jsonObject2.put("_widget_1718097576152",_widget_1718097576152); JSONObject _widget_1718097576151 = new JSONObject(); _widget_1718097576151.put("value",aDouble2); jsonObject2.put("_widget_1718097576151",_widget_1718097576151); 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_1717666304764 = new JSONObject(); _widget_1717666304764.put("value","是"); jsonObject2.put("_widget_1717666304764",_widget_1717666304764); jsonObject1.put("data",jsonObject2); String jsonString = jsonObject1.toJSONString(); String updata = V5utils.updata(jsonString); System.out.println(updata); } } } } @Scheduled(cron = "0 0 19 25 * ?") public void main8() throws InterruptedException { JSONArray jsonArray = JiChuBiaoDao.jsonArray(); for (Object o : jsonArray){ Thread.sleep(1000); JSONObject test = (JSONObject) o; String idCard = test.getString("_widget_1717557644374"); String id = test.getString("_id"); JSONArray jsonArray1 = JiaoTongYuQiDao.jsonArray(idCard); if (jsonArray1.size() != 0 && jsonArray1 != null){ for (Object object : jsonArray1){ JSONObject jsonObject = (JSONObject) object; String aDouble = jsonObject.getString("_widget_1718184485291"); Integer aDouble2 = jsonObject.getInteger("_widget_1718184485293"); 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_1718097576152 = new JSONObject(); _widget_1718097576152.put("value",aDouble); jsonObject2.put("_widget_1718097576152",_widget_1718097576152); JSONObject _widget_1718097576151 = new JSONObject(); _widget_1718097576151.put("value",aDouble2); jsonObject2.put("_widget_1718097576151",_widget_1718097576151); 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_1717666304764 = new JSONObject(); _widget_1717666304764.put("value","是"); jsonObject2.put("_widget_1717666304764",_widget_1717666304764); jsonObject1.put("data",jsonObject2); String jsonString = jsonObject1.toJSONString(); String updata = V5utils.updata(jsonString); System.out.println(updata); } } } } @Scheduled(cron = "0 0 19 26 * ?") public void main9() throws InterruptedException { JSONArray jsonArray = JiChuBiaoDao.jsonArray(); for (Object o : jsonArray){ Thread.sleep(1000); JSONObject test = (JSONObject) o; String idCard = test.getString("_widget_1717557644374"); String id = test.getString("_id"); JSONArray jsonArray1 = JiaoTongYuQiDao.jsonArray(idCard); if (jsonArray1.size() != 0 && jsonArray1 != null){ for (Object object : jsonArray1){ JSONObject jsonObject = (JSONObject) object; String aDouble = jsonObject.getString("_widget_1718184485291"); Integer aDouble2 = jsonObject.getInteger("_widget_1718184485293"); 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_1718097576152 = new JSONObject(); _widget_1718097576152.put("value",aDouble); jsonObject2.put("_widget_1718097576152",_widget_1718097576152); JSONObject _widget_1718097576151 = new JSONObject(); _widget_1718097576151.put("value",aDouble2); jsonObject2.put("_widget_1718097576151",_widget_1718097576151); 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_1717666304764 = new JSONObject(); _widget_1717666304764.put("value","是"); jsonObject2.put("_widget_1717666304764",_widget_1717666304764); jsonObject1.put("data",jsonObject2); String jsonString = jsonObject1.toJSONString(); String updata = V5utils.updata(jsonString); System.out.println(updata); } } } } @Scheduled(cron = "0 0 19 27 * ?") public void main10() throws InterruptedException { JSONArray jsonArray = JiChuBiaoDao.jsonArray(); for (Object o : jsonArray){ Thread.sleep(1000); JSONObject test = (JSONObject) o; String idCard = test.getString("_widget_1717557644374"); String id = test.getString("_id"); JSONArray jsonArray1 = JiaoTongYuQiDao.jsonArray(idCard); if (jsonArray1.size() != 0 && jsonArray1 != null){ for (Object object : jsonArray1){ JSONObject jsonObject = (JSONObject) object; String aDouble = jsonObject.getString("_widget_1718184485291"); Integer aDouble2 = jsonObject.getInteger("_widget_1718184485293"); 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_1718097576152 = new JSONObject(); _widget_1718097576152.put("value",aDouble); jsonObject2.put("_widget_1718097576152",_widget_1718097576152); JSONObject _widget_1718097576151 = new JSONObject(); _widget_1718097576151.put("value",aDouble2); jsonObject2.put("_widget_1718097576151",_widget_1718097576151); 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_1717666304764 = new JSONObject(); _widget_1717666304764.put("value","是"); jsonObject2.put("_widget_1717666304764",_widget_1717666304764); jsonObject1.put("data",jsonObject2); String jsonString = jsonObject1.toJSONString(); String updata = V5utils.updata(jsonString); System.out.println(updata); } } } } @Scheduled(cron = "0 0 19 28 * ?") public void main11() throws InterruptedException { JSONArray jsonArray = JiChuBiaoDao.jsonArray(); for (Object o : jsonArray){ Thread.sleep(1000); JSONObject test = (JSONObject) o; String idCard = test.getString("_widget_1717557644374"); String id = test.getString("_id"); JSONArray jsonArray1 = JiaoTongYuQiDao.jsonArray(idCard); if (jsonArray1.size() != 0 && jsonArray1 != null){ for (Object object : jsonArray1){ JSONObject jsonObject = (JSONObject) object; String aDouble = jsonObject.getString("_widget_1718184485291"); Integer aDouble2 = jsonObject.getInteger("_widget_1718184485293"); 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_1718097576152 = new JSONObject(); _widget_1718097576152.put("value",aDouble); jsonObject2.put("_widget_1718097576152",_widget_1718097576152); JSONObject _widget_1718097576151 = new JSONObject(); _widget_1718097576151.put("value",aDouble2); jsonObject2.put("_widget_1718097576151",_widget_1718097576151); 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_1717666304764 = new JSONObject(); _widget_1717666304764.put("value","是"); jsonObject2.put("_widget_1717666304764",_widget_1717666304764); jsonObject1.put("data",jsonObject2); String jsonString = jsonObject1.toJSONString(); String updata = V5utils.updata(jsonString); System.out.println(updata); } } } } @Scheduled(cron = "0 0 19 29 * ?") public void main12() throws InterruptedException { JSONArray jsonArray = JiChuBiaoDao.jsonArray(); for (Object o : jsonArray){ Thread.sleep(1000); JSONObject test = (JSONObject) o; String idCard = test.getString("_widget_1717557644374"); String id = test.getString("_id"); JSONArray jsonArray1 = JiaoTongYuQiDao.jsonArray(idCard); if (jsonArray1.size() != 0 && jsonArray1 != null){ for (Object object : jsonArray1){ JSONObject jsonObject = (JSONObject) object; String aDouble = jsonObject.getString("_widget_1718184485291"); Integer aDouble2 = jsonObject.getInteger("_widget_1718184485293"); 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_1718097576152 = new JSONObject(); _widget_1718097576152.put("value",aDouble); jsonObject2.put("_widget_1718097576152",_widget_1718097576152); JSONObject _widget_1718097576151 = new JSONObject(); _widget_1718097576151.put("value",aDouble2); jsonObject2.put("_widget_1718097576151",_widget_1718097576151); 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_1717666304764 = new JSONObject(); _widget_1717666304764.put("value","是"); jsonObject2.put("_widget_1717666304764",_widget_1717666304764); jsonObject1.put("data",jsonObject2); String jsonString = jsonObject1.toJSONString(); String updata = V5utils.updata(jsonString); System.out.println(updata); } } } } @Scheduled(cron = "0 0 19 30 * ?") public void main13() throws InterruptedException { JSONArray jsonArray = JiChuBiaoDao.jsonArray(); for (Object o : jsonArray){ Thread.sleep(1000); JSONObject test = (JSONObject) o; String idCard = test.getString("_widget_1717557644374"); String id = test.getString("_id"); JSONArray jsonArray1 = JiaoTongYuQiDao.jsonArray(idCard); if (jsonArray1.size() != 0 && jsonArray1 != null){ for (Object object : jsonArray1){ JSONObject jsonObject = (JSONObject) object; String aDouble = jsonObject.getString("_widget_1718184485291"); Integer aDouble2 = jsonObject.getInteger("_widget_1718184485293"); 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_1718097576152 = new JSONObject(); _widget_1718097576152.put("value",aDouble); jsonObject2.put("_widget_1718097576152",_widget_1718097576152); JSONObject _widget_1718097576151 = new JSONObject(); _widget_1718097576151.put("value",aDouble2); jsonObject2.put("_widget_1718097576151",_widget_1718097576151); 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_1717666304764 = new JSONObject(); _widget_1717666304764.put("value","是"); jsonObject2.put("_widget_1717666304764",_widget_1717666304764); jsonObject1.put("data",jsonObject2); String jsonString = jsonObject1.toJSONString(); String updata = V5utils.updata(jsonString); System.out.println(updata); } } } } @Scheduled(cron = "0 0 19 31 * ?") public void main14() throws InterruptedException { JSONArray jsonArray = JiChuBiaoDao.jsonArray(); for (Object o : jsonArray){ Thread.sleep(1000); JSONObject test = (JSONObject) o; String idCard = test.getString("_widget_1717557644374"); String id = test.getString("_id"); JSONArray jsonArray1 = JiaoTongYuQiDao.jsonArray(idCard); if (jsonArray1.size() != 0 && jsonArray1 != null){ for (Object object : jsonArray1){ JSONObject jsonObject = (JSONObject) object; String aDouble = jsonObject.getString("_widget_1718184485291"); Integer aDouble2 = jsonObject.getInteger("_widget_1718184485293"); 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_1718097576152 = new JSONObject(); _widget_1718097576152.put("value",aDouble); jsonObject2.put("_widget_1718097576152",_widget_1718097576152); JSONObject _widget_1718097576151 = new JSONObject(); _widget_1718097576151.put("value",aDouble2); jsonObject2.put("_widget_1718097576151",_widget_1718097576151); 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_1717666304764 = new JSONObject(); _widget_1717666304764.put("value","是"); jsonObject2.put("_widget_1717666304764",_widget_1717666304764); jsonObject1.put("data",jsonObject2); String jsonString = jsonObject1.toJSONString(); String updata = V5utils.updata(jsonString); System.out.println(updata); } } } } }