From 528b638ff444ec66332db4bb344a16d83f2c4b31 Mon Sep 17 00:00:00 2001 From: lijiazhuo <13787924+lijiazhuosky@user.noreply.gitee.com> Date: Fri, 30 Jan 2026 15:26:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../example/sso/controller/JiaoTongWeiFa.java | 1415 ----------------- .../example/sso/controller/JiaoTongYuQi.java | 919 ----------- .../sso/controller/KeChengWeiWanCheng.java | 979 ------------ .../com/example/sso/controller/QianFei.java | 930 ----------- .../sso/controller/YuanChengJiHuo.java | 81 - .../example/sso/newcontroller/DpChongXie.java | 10 +- .../example/sso/newcontroller/DpZhiKong.java | 328 ++-- .../sso/newcontroller/LianYingChongXie.java | 13 +- .../example/sso/newcontroller/LyZhiKong.java | 323 ++-- .../sso/newcontroller/ZhiKongDelete.java | 6 +- src/main/java/com/example/sso/test/A.java | 484 +++++- .../java/com/example/sso/testbao/KeCheng.java | 82 - .../java/com/example/sso/testbao/Run.java | 123 -- .../java/com/example/sso/testbao/YuQi.java | 77 - 14 files changed, 825 insertions(+), 4945 deletions(-) delete mode 100644 src/main/java/com/example/sso/controller/JiaoTongWeiFa.java delete mode 100644 src/main/java/com/example/sso/controller/JiaoTongYuQi.java delete mode 100644 src/main/java/com/example/sso/controller/KeChengWeiWanCheng.java delete mode 100644 src/main/java/com/example/sso/controller/QianFei.java delete mode 100644 src/main/java/com/example/sso/controller/YuanChengJiHuo.java delete mode 100644 src/main/java/com/example/sso/testbao/KeCheng.java delete mode 100644 src/main/java/com/example/sso/testbao/Run.java delete mode 100644 src/main/java/com/example/sso/testbao/YuQi.java diff --git a/src/main/java/com/example/sso/controller/JiaoTongWeiFa.java b/src/main/java/com/example/sso/controller/JiaoTongWeiFa.java deleted file mode 100644 index aed2a1d..0000000 --- a/src/main/java/com/example/sso/controller/JiaoTongWeiFa.java +++ /dev/null @@ -1,1415 +0,0 @@ -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.JiaoTongWeiFaDao; -import com.example.sso.dao.QfDao; -import com.example.sso.util.V5utils; -import org.springframework.scheduling.annotation.Scheduled; -import org.springframework.stereotype.Component; - -@Component -public class JiaoTongWeiFa { - @Scheduled(cron = "0 0 22 19-31 * ?") - 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); - - - } - } - - - } - QianFei.qianfei(); - } - - /* @Scheduled(cron = "0 0 22 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_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); - - - } - } - - - } - } - - @Scheduled(cron = "0 0 22 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_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); - - - } - } - - - } - } - - @Scheduled(cron = "0 0 22 22 * ?") - public void main4() 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); - - - } - } - - - } - } - - @Scheduled(cron = "0 0 22 23 * ?") - 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_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); - - - } - } - - - } - } - - @Scheduled(cron = "0 0 22 24 * ?") - 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_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); - - - } - } - - - } - } - - @Scheduled(cron = "0 0 22 25 * ?") - 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_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); - - - } - } - - - } - } - - - @Scheduled(cron = "0 0 22 26 * ?") - 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_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); - - - } - } - - - } - } - - - - @Scheduled(cron = "0 0 22 27 * ?") - 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_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); - - - } - } - - - } - } - - - @Scheduled(cron = "0 0 22 28 * ?") - 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_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); - - - } - } - - - } - } - - - @Scheduled(cron = "0 0 22 29 * ?") - 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_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); - - - } - } - - - } - } - - - @Scheduled(cron = "0 0 22 30 * ?") - 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_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); - - - } - } - - - } - } - - - @Scheduled(cron = "0 0 22 31 * ?") - 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_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); - - - } - } - - - } - } - -*/ - -} diff --git a/src/main/java/com/example/sso/controller/JiaoTongYuQi.java b/src/main/java/com/example/sso/controller/JiaoTongYuQi.java deleted file mode 100644 index 96f33b1..0000000 --- a/src/main/java/com/example/sso/controller/JiaoTongYuQi.java +++ /dev/null @@ -1,919 +0,0 @@ -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); - - - } - } - - - } - } - - - -} diff --git a/src/main/java/com/example/sso/controller/KeChengWeiWanCheng.java b/src/main/java/com/example/sso/controller/KeChengWeiWanCheng.java deleted file mode 100644 index 1d041ff..0000000 --- a/src/main/java/com/example/sso/controller/KeChengWeiWanCheng.java +++ /dev/null @@ -1,979 +0,0 @@ -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.KeChengWeiWanchengDao; - -import com.example.sso.util.V5utils; -import org.springframework.scheduling.annotation.Scheduled; -import org.springframework.stereotype.Component; - -@Component -public class KeChengWeiWanCheng { - @Scheduled(cron = "0 0 7 1 * ?") - 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 = KeChengWeiWanchengDao.jsonArray(idCard); - if (jsonArray1.size() != 0 && jsonArray1 != null){ - for (Object object : jsonArray1){ - JSONObject jsonObject = (JSONObject) object; - String widget_1718085460707 = jsonObject.getString("_widget_1718085460707"); - Integer aDouble = jsonObject.getInteger("_widget_1718086369844"); - Integer aDouble2 = jsonObject.getInteger("_widget_1718086369845"); - Integer aDouble1 = jsonObject.getInteger("_widget_1718086369846"); - Integer aDouble3 = jsonObject.getInteger("_widget_1718086369847"); - - 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_1717666304763 = new JSONObject(); - _widget_1717666304763.put("value",widget_1718085460707); - jsonObject2.put("_widget_1717666304763",_widget_1717666304763); - - JSONObject _widget_1718086086811 = new JSONObject(); - _widget_1718086086811.put("value",aDouble); - jsonObject2.put("_widget_1718086086811",_widget_1718086086811); - - JSONObject _widget_1718086086812 = new JSONObject(); - _widget_1718086086812.put("value",aDouble2); - jsonObject2.put("_widget_1718086086812",_widget_1718086086812); - - JSONObject _widget_1718086086813 = new JSONObject(); - _widget_1718086086813.put("value",aDouble1); - jsonObject2.put("_widget_1718086086813",_widget_1718086086813); - - JSONObject _widget_1718086086814 = new JSONObject(); - _widget_1718086086814.put("value",aDouble3); - jsonObject2.put("_widget_1718086086814",_widget_1718086086814); - - - - - 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); - - jsonObject1.put("data",jsonObject2); - - String jsonString = jsonObject1.toJSONString(); - String updata = V5utils.updata(jsonString); - System.out.println(updata); - - - } - } - - - } - } - - @Scheduled(cron = "0 0 7 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_1717557644376"); - String id = test.getString("_id"); - JSONArray jsonArray1 = KeChengWeiWanchengDao.jsonArray(idCard); - if (jsonArray1.size() != 0 && jsonArray1 != null){ - for (Object object : jsonArray1){ - JSONObject jsonObject = (JSONObject) object; - String widget_1718085460707 = jsonObject.getString("_widget_1718085460707"); - Integer aDouble = jsonObject.getInteger("_widget_1718086369844"); - Integer aDouble2 = jsonObject.getInteger("_widget_1718086369845"); - Integer aDouble1 = jsonObject.getInteger("_widget_1718086369846"); - Integer aDouble3 = jsonObject.getInteger("_widget_1718086369847"); - - 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_1717666304763 = new JSONObject(); - _widget_1717666304763.put("value",widget_1718085460707); - jsonObject2.put("_widget_1717666304763",_widget_1717666304763); - - JSONObject _widget_1718086086811 = new JSONObject(); - _widget_1718086086811.put("value",aDouble); - jsonObject2.put("_widget_1718086086811",_widget_1718086086811); - - JSONObject _widget_1718086086812 = new JSONObject(); - _widget_1718086086812.put("value",aDouble2); - jsonObject2.put("_widget_1718086086812",_widget_1718086086812); - - JSONObject _widget_1718086086813 = new JSONObject(); - _widget_1718086086813.put("value",aDouble1); - jsonObject2.put("_widget_1718086086813",_widget_1718086086813); - - JSONObject _widget_1718086086814 = new JSONObject(); - _widget_1718086086814.put("value",aDouble3); - jsonObject2.put("_widget_1718086086814",_widget_1718086086814); - - - - - 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); - - jsonObject1.put("data",jsonObject2); - - String jsonString = jsonObject1.toJSONString(); - String updata = V5utils.updata(jsonString); - System.out.println(updata); - - - } - } - - - } - } - - @Scheduled(cron = "0 0 7 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_1717557644376"); - String id = test.getString("_id"); - JSONArray jsonArray1 = KeChengWeiWanchengDao.jsonArray(idCard); - if (jsonArray1.size() != 0 && jsonArray1 != null){ - for (Object object : jsonArray1){ - JSONObject jsonObject = (JSONObject) object; - String widget_1718085460707 = jsonObject.getString("_widget_1718085460707"); - Integer aDouble = jsonObject.getInteger("_widget_1718086369844"); - Integer aDouble2 = jsonObject.getInteger("_widget_1718086369845"); - Integer aDouble1 = jsonObject.getInteger("_widget_1718086369846"); - Integer aDouble3 = jsonObject.getInteger("_widget_1718086369847"); - - 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_1717666304763 = new JSONObject(); - _widget_1717666304763.put("value",widget_1718085460707); - jsonObject2.put("_widget_1717666304763",_widget_1717666304763); - - JSONObject _widget_1718086086811 = new JSONObject(); - _widget_1718086086811.put("value",aDouble); - jsonObject2.put("_widget_1718086086811",_widget_1718086086811); - - JSONObject _widget_1718086086812 = new JSONObject(); - _widget_1718086086812.put("value",aDouble2); - jsonObject2.put("_widget_1718086086812",_widget_1718086086812); - - JSONObject _widget_1718086086813 = new JSONObject(); - _widget_1718086086813.put("value",aDouble1); - jsonObject2.put("_widget_1718086086813",_widget_1718086086813); - - JSONObject _widget_1718086086814 = new JSONObject(); - _widget_1718086086814.put("value",aDouble3); - jsonObject2.put("_widget_1718086086814",_widget_1718086086814); - - - - - 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); - - jsonObject1.put("data",jsonObject2); - - String jsonString = jsonObject1.toJSONString(); - String updata = V5utils.updata(jsonString); - System.out.println(updata); - - - } - } - - - } - } - - - - @Scheduled(cron = "0 0 7 22 * ?") - public void main4() 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 = KeChengWeiWanchengDao.jsonArray(idCard); - if (jsonArray1.size() != 0 && jsonArray1 != null){ - for (Object object : jsonArray1){ - JSONObject jsonObject = (JSONObject) object; - String widget_1718085460707 = jsonObject.getString("_widget_1718085460707"); - Integer aDouble = jsonObject.getInteger("_widget_1718086369844"); - Integer aDouble2 = jsonObject.getInteger("_widget_1718086369845"); - Integer aDouble1 = jsonObject.getInteger("_widget_1718086369846"); - Integer aDouble3 = jsonObject.getInteger("_widget_1718086369847"); - - 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_1717666304763 = new JSONObject(); - _widget_1717666304763.put("value",widget_1718085460707); - jsonObject2.put("_widget_1717666304763",_widget_1717666304763); - - JSONObject _widget_1718086086811 = new JSONObject(); - _widget_1718086086811.put("value",aDouble); - jsonObject2.put("_widget_1718086086811",_widget_1718086086811); - - JSONObject _widget_1718086086812 = new JSONObject(); - _widget_1718086086812.put("value",aDouble2); - jsonObject2.put("_widget_1718086086812",_widget_1718086086812); - - JSONObject _widget_1718086086813 = new JSONObject(); - _widget_1718086086813.put("value",aDouble1); - jsonObject2.put("_widget_1718086086813",_widget_1718086086813); - - JSONObject _widget_1718086086814 = new JSONObject(); - _widget_1718086086814.put("value",aDouble3); - jsonObject2.put("_widget_1718086086814",_widget_1718086086814); - - - - - 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); - - jsonObject1.put("data",jsonObject2); - - String jsonString = jsonObject1.toJSONString(); - String updata = V5utils.updata(jsonString); - System.out.println(updata); - - - } - } - - - } - } - - @Scheduled(cron = "0 0 7 23 * ?") - 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_1717557644376"); - String id = test.getString("_id"); - JSONArray jsonArray1 = KeChengWeiWanchengDao.jsonArray(idCard); - if (jsonArray1.size() != 0 && jsonArray1 != null){ - for (Object object : jsonArray1){ - JSONObject jsonObject = (JSONObject) object; - String widget_1718085460707 = jsonObject.getString("_widget_1718085460707"); - Integer aDouble = jsonObject.getInteger("_widget_1718086369844"); - Integer aDouble2 = jsonObject.getInteger("_widget_1718086369845"); - Integer aDouble1 = jsonObject.getInteger("_widget_1718086369846"); - Integer aDouble3 = jsonObject.getInteger("_widget_1718086369847"); - - 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_1717666304763 = new JSONObject(); - _widget_1717666304763.put("value",widget_1718085460707); - jsonObject2.put("_widget_1717666304763",_widget_1717666304763); - - JSONObject _widget_1718086086811 = new JSONObject(); - _widget_1718086086811.put("value",aDouble); - jsonObject2.put("_widget_1718086086811",_widget_1718086086811); - - JSONObject _widget_1718086086812 = new JSONObject(); - _widget_1718086086812.put("value",aDouble2); - jsonObject2.put("_widget_1718086086812",_widget_1718086086812); - - JSONObject _widget_1718086086813 = new JSONObject(); - _widget_1718086086813.put("value",aDouble1); - jsonObject2.put("_widget_1718086086813",_widget_1718086086813); - - JSONObject _widget_1718086086814 = new JSONObject(); - _widget_1718086086814.put("value",aDouble3); - jsonObject2.put("_widget_1718086086814",_widget_1718086086814); - - - - - 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); - - jsonObject1.put("data",jsonObject2); - - String jsonString = jsonObject1.toJSONString(); - String updata = V5utils.updata(jsonString); - System.out.println(updata); - - - } - } - - - } - } - - @Scheduled(cron = "0 0 7 24 * ?") - 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_1717557644376"); - String id = test.getString("_id"); - JSONArray jsonArray1 = KeChengWeiWanchengDao.jsonArray(idCard); - if (jsonArray1.size() != 0 && jsonArray1 != null){ - for (Object object : jsonArray1){ - JSONObject jsonObject = (JSONObject) object; - String widget_1718085460707 = jsonObject.getString("_widget_1718085460707"); - Integer aDouble = jsonObject.getInteger("_widget_1718086369844"); - Integer aDouble2 = jsonObject.getInteger("_widget_1718086369845"); - Integer aDouble1 = jsonObject.getInteger("_widget_1718086369846"); - Integer aDouble3 = jsonObject.getInteger("_widget_1718086369847"); - - 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_1717666304763 = new JSONObject(); - _widget_1717666304763.put("value",widget_1718085460707); - jsonObject2.put("_widget_1717666304763",_widget_1717666304763); - - JSONObject _widget_1718086086811 = new JSONObject(); - _widget_1718086086811.put("value",aDouble); - jsonObject2.put("_widget_1718086086811",_widget_1718086086811); - - JSONObject _widget_1718086086812 = new JSONObject(); - _widget_1718086086812.put("value",aDouble2); - jsonObject2.put("_widget_1718086086812",_widget_1718086086812); - - JSONObject _widget_1718086086813 = new JSONObject(); - _widget_1718086086813.put("value",aDouble1); - jsonObject2.put("_widget_1718086086813",_widget_1718086086813); - - JSONObject _widget_1718086086814 = new JSONObject(); - _widget_1718086086814.put("value",aDouble3); - jsonObject2.put("_widget_1718086086814",_widget_1718086086814); - - - - - 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); - - jsonObject1.put("data",jsonObject2); - - String jsonString = jsonObject1.toJSONString(); - String updata = V5utils.updata(jsonString); - System.out.println(updata); - - - } - } - - - } - } - - @Scheduled(cron = "0 0 7 25 * ?") - 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_1717557644376"); - String id = test.getString("_id"); - JSONArray jsonArray1 = KeChengWeiWanchengDao.jsonArray(idCard); - if (jsonArray1.size() != 0 && jsonArray1 != null){ - for (Object object : jsonArray1){ - JSONObject jsonObject = (JSONObject) object; - String widget_1718085460707 = jsonObject.getString("_widget_1718085460707"); - Integer aDouble = jsonObject.getInteger("_widget_1718086369844"); - Integer aDouble2 = jsonObject.getInteger("_widget_1718086369845"); - Integer aDouble1 = jsonObject.getInteger("_widget_1718086369846"); - Integer aDouble3 = jsonObject.getInteger("_widget_1718086369847"); - - 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_1717666304763 = new JSONObject(); - _widget_1717666304763.put("value",widget_1718085460707); - jsonObject2.put("_widget_1717666304763",_widget_1717666304763); - - JSONObject _widget_1718086086811 = new JSONObject(); - _widget_1718086086811.put("value",aDouble); - jsonObject2.put("_widget_1718086086811",_widget_1718086086811); - - JSONObject _widget_1718086086812 = new JSONObject(); - _widget_1718086086812.put("value",aDouble2); - jsonObject2.put("_widget_1718086086812",_widget_1718086086812); - - JSONObject _widget_1718086086813 = new JSONObject(); - _widget_1718086086813.put("value",aDouble1); - jsonObject2.put("_widget_1718086086813",_widget_1718086086813); - - JSONObject _widget_1718086086814 = new JSONObject(); - _widget_1718086086814.put("value",aDouble3); - jsonObject2.put("_widget_1718086086814",_widget_1718086086814); - - - - - 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); - - jsonObject1.put("data",jsonObject2); - - String jsonString = jsonObject1.toJSONString(); - String updata = V5utils.updata(jsonString); - System.out.println(updata); - - - } - } - - - } - } - - @Scheduled(cron = "0 0 7 26 * ?") - 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_1717557644376"); - String id = test.getString("_id"); - JSONArray jsonArray1 = KeChengWeiWanchengDao.jsonArray(idCard); - if (jsonArray1.size() != 0 && jsonArray1 != null){ - for (Object object : jsonArray1){ - JSONObject jsonObject = (JSONObject) object; - String widget_1718085460707 = jsonObject.getString("_widget_1718085460707"); - Integer aDouble = jsonObject.getInteger("_widget_1718086369844"); - Integer aDouble2 = jsonObject.getInteger("_widget_1718086369845"); - Integer aDouble1 = jsonObject.getInteger("_widget_1718086369846"); - Integer aDouble3 = jsonObject.getInteger("_widget_1718086369847"); - - 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_1717666304763 = new JSONObject(); - _widget_1717666304763.put("value",widget_1718085460707); - jsonObject2.put("_widget_1717666304763",_widget_1717666304763); - - JSONObject _widget_1718086086811 = new JSONObject(); - _widget_1718086086811.put("value",aDouble); - jsonObject2.put("_widget_1718086086811",_widget_1718086086811); - - JSONObject _widget_1718086086812 = new JSONObject(); - _widget_1718086086812.put("value",aDouble2); - jsonObject2.put("_widget_1718086086812",_widget_1718086086812); - - JSONObject _widget_1718086086813 = new JSONObject(); - _widget_1718086086813.put("value",aDouble1); - jsonObject2.put("_widget_1718086086813",_widget_1718086086813); - - JSONObject _widget_1718086086814 = new JSONObject(); - _widget_1718086086814.put("value",aDouble3); - jsonObject2.put("_widget_1718086086814",_widget_1718086086814); - - - - - 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); - - jsonObject1.put("data",jsonObject2); - - String jsonString = jsonObject1.toJSONString(); - String updata = V5utils.updata(jsonString); - System.out.println(updata); - - - } - } - - - } - } - - @Scheduled(cron = "0 0 7 27 * ?") - 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_1717557644376"); - String id = test.getString("_id"); - JSONArray jsonArray1 = KeChengWeiWanchengDao.jsonArray(idCard); - if (jsonArray1.size() != 0 && jsonArray1 != null){ - for (Object object : jsonArray1){ - JSONObject jsonObject = (JSONObject) object; - String widget_1718085460707 = jsonObject.getString("_widget_1718085460707"); - Integer aDouble = jsonObject.getInteger("_widget_1718086369844"); - Integer aDouble2 = jsonObject.getInteger("_widget_1718086369845"); - Integer aDouble1 = jsonObject.getInteger("_widget_1718086369846"); - Integer aDouble3 = jsonObject.getInteger("_widget_1718086369847"); - - 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_1717666304763 = new JSONObject(); - _widget_1717666304763.put("value",widget_1718085460707); - jsonObject2.put("_widget_1717666304763",_widget_1717666304763); - - JSONObject _widget_1718086086811 = new JSONObject(); - _widget_1718086086811.put("value",aDouble); - jsonObject2.put("_widget_1718086086811",_widget_1718086086811); - - JSONObject _widget_1718086086812 = new JSONObject(); - _widget_1718086086812.put("value",aDouble2); - jsonObject2.put("_widget_1718086086812",_widget_1718086086812); - - JSONObject _widget_1718086086813 = new JSONObject(); - _widget_1718086086813.put("value",aDouble1); - jsonObject2.put("_widget_1718086086813",_widget_1718086086813); - - JSONObject _widget_1718086086814 = new JSONObject(); - _widget_1718086086814.put("value",aDouble3); - jsonObject2.put("_widget_1718086086814",_widget_1718086086814); - - - - - 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); - - jsonObject1.put("data",jsonObject2); - - String jsonString = jsonObject1.toJSONString(); - String updata = V5utils.updata(jsonString); - System.out.println(updata); - - - } - } - - - } - } - - @Scheduled(cron = "0 0 7 28 * ?") - 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_1717557644376"); - String id = test.getString("_id"); - JSONArray jsonArray1 = KeChengWeiWanchengDao.jsonArray(idCard); - if (jsonArray1.size() != 0 && jsonArray1 != null){ - for (Object object : jsonArray1){ - JSONObject jsonObject = (JSONObject) object; - String widget_1718085460707 = jsonObject.getString("_widget_1718085460707"); - Integer aDouble = jsonObject.getInteger("_widget_1718086369844"); - Integer aDouble2 = jsonObject.getInteger("_widget_1718086369845"); - Integer aDouble1 = jsonObject.getInteger("_widget_1718086369846"); - Integer aDouble3 = jsonObject.getInteger("_widget_1718086369847"); - - 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_1717666304763 = new JSONObject(); - _widget_1717666304763.put("value",widget_1718085460707); - jsonObject2.put("_widget_1717666304763",_widget_1717666304763); - - JSONObject _widget_1718086086811 = new JSONObject(); - _widget_1718086086811.put("value",aDouble); - jsonObject2.put("_widget_1718086086811",_widget_1718086086811); - - JSONObject _widget_1718086086812 = new JSONObject(); - _widget_1718086086812.put("value",aDouble2); - jsonObject2.put("_widget_1718086086812",_widget_1718086086812); - - JSONObject _widget_1718086086813 = new JSONObject(); - _widget_1718086086813.put("value",aDouble1); - jsonObject2.put("_widget_1718086086813",_widget_1718086086813); - - JSONObject _widget_1718086086814 = new JSONObject(); - _widget_1718086086814.put("value",aDouble3); - jsonObject2.put("_widget_1718086086814",_widget_1718086086814); - - - - - 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); - - jsonObject1.put("data",jsonObject2); - - String jsonString = jsonObject1.toJSONString(); - String updata = V5utils.updata(jsonString); - System.out.println(updata); - - - } - } - - - } - } - - @Scheduled(cron = "0 0 7 29 * ?") - 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_1717557644376"); - String id = test.getString("_id"); - JSONArray jsonArray1 = KeChengWeiWanchengDao.jsonArray(idCard); - if (jsonArray1.size() != 0 && jsonArray1 != null){ - for (Object object : jsonArray1){ - JSONObject jsonObject = (JSONObject) object; - String widget_1718085460707 = jsonObject.getString("_widget_1718085460707"); - Integer aDouble = jsonObject.getInteger("_widget_1718086369844"); - Integer aDouble2 = jsonObject.getInteger("_widget_1718086369845"); - Integer aDouble1 = jsonObject.getInteger("_widget_1718086369846"); - Integer aDouble3 = jsonObject.getInteger("_widget_1718086369847"); - - 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_1717666304763 = new JSONObject(); - _widget_1717666304763.put("value",widget_1718085460707); - jsonObject2.put("_widget_1717666304763",_widget_1717666304763); - - JSONObject _widget_1718086086811 = new JSONObject(); - _widget_1718086086811.put("value",aDouble); - jsonObject2.put("_widget_1718086086811",_widget_1718086086811); - - JSONObject _widget_1718086086812 = new JSONObject(); - _widget_1718086086812.put("value",aDouble2); - jsonObject2.put("_widget_1718086086812",_widget_1718086086812); - - JSONObject _widget_1718086086813 = new JSONObject(); - _widget_1718086086813.put("value",aDouble1); - jsonObject2.put("_widget_1718086086813",_widget_1718086086813); - - JSONObject _widget_1718086086814 = new JSONObject(); - _widget_1718086086814.put("value",aDouble3); - jsonObject2.put("_widget_1718086086814",_widget_1718086086814); - - - - - 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); - - jsonObject1.put("data",jsonObject2); - - String jsonString = jsonObject1.toJSONString(); - String updata = V5utils.updata(jsonString); - System.out.println(updata); - - - } - } - - - } - } - - @Scheduled(cron = "0 0 7 30 * ?") - 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_1717557644376"); - String id = test.getString("_id"); - JSONArray jsonArray1 = KeChengWeiWanchengDao.jsonArray(idCard); - if (jsonArray1.size() != 0 && jsonArray1 != null){ - for (Object object : jsonArray1){ - JSONObject jsonObject = (JSONObject) object; - String widget_1718085460707 = jsonObject.getString("_widget_1718085460707"); - Integer aDouble = jsonObject.getInteger("_widget_1718086369844"); - Integer aDouble2 = jsonObject.getInteger("_widget_1718086369845"); - Integer aDouble1 = jsonObject.getInteger("_widget_1718086369846"); - Integer aDouble3 = jsonObject.getInteger("_widget_1718086369847"); - - 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_1717666304763 = new JSONObject(); - _widget_1717666304763.put("value",widget_1718085460707); - jsonObject2.put("_widget_1717666304763",_widget_1717666304763); - - JSONObject _widget_1718086086811 = new JSONObject(); - _widget_1718086086811.put("value",aDouble); - jsonObject2.put("_widget_1718086086811",_widget_1718086086811); - - JSONObject _widget_1718086086812 = new JSONObject(); - _widget_1718086086812.put("value",aDouble2); - jsonObject2.put("_widget_1718086086812",_widget_1718086086812); - - JSONObject _widget_1718086086813 = new JSONObject(); - _widget_1718086086813.put("value",aDouble1); - jsonObject2.put("_widget_1718086086813",_widget_1718086086813); - - JSONObject _widget_1718086086814 = new JSONObject(); - _widget_1718086086814.put("value",aDouble3); - jsonObject2.put("_widget_1718086086814",_widget_1718086086814); - - - - - 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); - - jsonObject1.put("data",jsonObject2); - - String jsonString = jsonObject1.toJSONString(); - String updata = V5utils.updata(jsonString); - System.out.println(updata); - - - } - } - - - } - } - - @Scheduled(cron = "0 0 7 31 * ?") - 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_1717557644376"); - String id = test.getString("_id"); - JSONArray jsonArray1 = KeChengWeiWanchengDao.jsonArray(idCard); - if (jsonArray1.size() != 0 && jsonArray1 != null){ - for (Object object : jsonArray1){ - JSONObject jsonObject = (JSONObject) object; - String widget_1718085460707 = jsonObject.getString("_widget_1718085460707"); - Integer aDouble = jsonObject.getInteger("_widget_1718086369844"); - Integer aDouble2 = jsonObject.getInteger("_widget_1718086369845"); - Integer aDouble1 = jsonObject.getInteger("_widget_1718086369846"); - Integer aDouble3 = jsonObject.getInteger("_widget_1718086369847"); - - 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_1717666304763 = new JSONObject(); - _widget_1717666304763.put("value",widget_1718085460707); - jsonObject2.put("_widget_1717666304763",_widget_1717666304763); - - JSONObject _widget_1718086086811 = new JSONObject(); - _widget_1718086086811.put("value",aDouble); - jsonObject2.put("_widget_1718086086811",_widget_1718086086811); - - JSONObject _widget_1718086086812 = new JSONObject(); - _widget_1718086086812.put("value",aDouble2); - jsonObject2.put("_widget_1718086086812",_widget_1718086086812); - - JSONObject _widget_1718086086813 = new JSONObject(); - _widget_1718086086813.put("value",aDouble1); - jsonObject2.put("_widget_1718086086813",_widget_1718086086813); - - JSONObject _widget_1718086086814 = new JSONObject(); - _widget_1718086086814.put("value",aDouble3); - jsonObject2.put("_widget_1718086086814",_widget_1718086086814); - - - - - 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); - - jsonObject1.put("data",jsonObject2); - - String jsonString = jsonObject1.toJSONString(); - String updata = V5utils.updata(jsonString); - System.out.println(updata); - - - } - } - - - } - } - - -} diff --git a/src/main/java/com/example/sso/controller/QianFei.java b/src/main/java/com/example/sso/controller/QianFei.java deleted file mode 100644 index d080db4..0000000 --- a/src/main/java/com/example/sso/controller/QianFei.java +++ /dev/null @@ -1,930 +0,0 @@ -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.QfDao; -import com.example.sso.util.V5utils; -import org.springframework.scheduling.annotation.Scheduled; -import org.springframework.stereotype.Component; - -@Component -public class QianFei { - /* @Scheduled(cron = "0 59 23 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_1717557644376"); - String id = test.getString("_id"); - JSONArray jsonArray1 = QfDao.jsonArray(idCard); - if (jsonArray1.size() != 0 && jsonArray1 != null){ - for (Object object : jsonArray1){ - JSONObject jsonObject = (JSONObject) object; - String widget1717726834808 = jsonObject.getString("_widget_1717726834808"); - Double aDouble = jsonObject.getDouble("_widget_1717726834804"); - Double aDouble2 = jsonObject.getDouble("_widget_1717726834807"); - Double aDouble1 = jsonObject.getDouble("_widget_1717726834805"); - - 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_1717726834808 = new JSONObject(); - _widget_1717726834808.put("value",widget1717726834808); - jsonObject2.put("_widget_1717666304762",_widget_1717726834808); - - JSONObject _widget_1717726834804 = new JSONObject(); - _widget_1717726834804.put("value",aDouble); - jsonObject2.put("_widget_1718086086807",_widget_1717726834804); - - JSONObject _widget_1717726834807 = new JSONObject(); - _widget_1717726834807.put("value",aDouble2); - jsonObject2.put("_widget_1718086086810",_widget_1717726834807); - - JSONObject _widget_1717726834805 = new JSONObject(); - _widget_1717726834805.put("value",aDouble1); - jsonObject2.put("_widget_1718086086808",_widget_1717726834805); - - 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); - - jsonObject1.put("data",jsonObject2); - - String jsonString = jsonObject1.toJSONString(); - String updata = V5utils.updata(jsonString); - System.out.println(updata); - - - } - } - - - } - } - - @Scheduled(cron = "0 59 23 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_1717557644376"); - String id = test.getString("_id"); - JSONArray jsonArray1 = QfDao.jsonArray(idCard); - if (jsonArray1.size() != 0 && jsonArray1 != null){ - for (Object object : jsonArray1){ - JSONObject jsonObject = (JSONObject) object; - String widget1717726834808 = jsonObject.getString("_widget_1717726834808"); - Double aDouble = jsonObject.getDouble("_widget_1717726834804"); - Double aDouble2 = jsonObject.getDouble("_widget_1717726834807"); - Double aDouble1 = jsonObject.getDouble("_widget_1717726834805"); - - 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_1717726834808 = new JSONObject(); - _widget_1717726834808.put("value",widget1717726834808); - jsonObject2.put("_widget_1717666304762",_widget_1717726834808); - - JSONObject _widget_1717726834804 = new JSONObject(); - _widget_1717726834804.put("value",aDouble); - jsonObject2.put("_widget_1718086086807",_widget_1717726834804); - - JSONObject _widget_1717726834807 = new JSONObject(); - _widget_1717726834807.put("value",aDouble2); - jsonObject2.put("_widget_1718086086810",_widget_1717726834807); - - JSONObject _widget_1717726834805 = new JSONObject(); - _widget_1717726834805.put("value",aDouble1); - jsonObject2.put("_widget_1718086086808",_widget_1717726834805); - - 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); - - jsonObject1.put("data",jsonObject2); - - String jsonString = jsonObject1.toJSONString(); - String updata = V5utils.updata(jsonString); - System.out.println(updata); - - - } - } - - - } - } - - @Scheduled(cron = "0 59 23 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_1717557644376"); - String id = test.getString("_id"); - JSONArray jsonArray1 = QfDao.jsonArray(idCard); - if (jsonArray1.size() != 0 && jsonArray1 != null){ - for (Object object : jsonArray1){ - JSONObject jsonObject = (JSONObject) object; - String widget1717726834808 = jsonObject.getString("_widget_1717726834808"); - Double aDouble = jsonObject.getDouble("_widget_1717726834804"); - Double aDouble2 = jsonObject.getDouble("_widget_1717726834807"); - Double aDouble1 = jsonObject.getDouble("_widget_1717726834805"); - - 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_1717726834808 = new JSONObject(); - _widget_1717726834808.put("value",widget1717726834808); - jsonObject2.put("_widget_1717666304762",_widget_1717726834808); - - JSONObject _widget_1717726834804 = new JSONObject(); - _widget_1717726834804.put("value",aDouble); - jsonObject2.put("_widget_1718086086807",_widget_1717726834804); - - JSONObject _widget_1717726834807 = new JSONObject(); - _widget_1717726834807.put("value",aDouble2); - jsonObject2.put("_widget_1718086086810",_widget_1717726834807); - - JSONObject _widget_1717726834805 = new JSONObject(); - _widget_1717726834805.put("value",aDouble1); - jsonObject2.put("_widget_1718086086808",_widget_1717726834805); - - 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); - - jsonObject1.put("data",jsonObject2); - - String jsonString = jsonObject1.toJSONString(); - String updata = V5utils.updata(jsonString); - System.out.println(updata); - - - } - } - - - } - } - - @Scheduled(cron = "0 59 23 22 * ?") - public void main4() 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 = QfDao.jsonArray(idCard); - if (jsonArray1.size() != 0 && jsonArray1 != null){ - for (Object object : jsonArray1){ - JSONObject jsonObject = (JSONObject) object; - String widget1717726834808 = jsonObject.getString("_widget_1717726834808"); - Double aDouble = jsonObject.getDouble("_widget_1717726834804"); - Double aDouble2 = jsonObject.getDouble("_widget_1717726834807"); - Double aDouble1 = jsonObject.getDouble("_widget_1717726834805"); - - 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_1717726834808 = new JSONObject(); - _widget_1717726834808.put("value",widget1717726834808); - jsonObject2.put("_widget_1717666304762",_widget_1717726834808); - - JSONObject _widget_1717726834804 = new JSONObject(); - _widget_1717726834804.put("value",aDouble); - jsonObject2.put("_widget_1718086086807",_widget_1717726834804); - - JSONObject _widget_1717726834807 = new JSONObject(); - _widget_1717726834807.put("value",aDouble2); - jsonObject2.put("_widget_1718086086810",_widget_1717726834807); - - JSONObject _widget_1717726834805 = new JSONObject(); - _widget_1717726834805.put("value",aDouble1); - jsonObject2.put("_widget_1718086086808",_widget_1717726834805); - - 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); - - jsonObject1.put("data",jsonObject2); - - String jsonString = jsonObject1.toJSONString(); - String updata = V5utils.updata(jsonString); - System.out.println(updata); - - - } - } - - - } - } - - @Scheduled(cron = "0 59 23 23 * ?") - 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_1717557644376"); - String id = test.getString("_id"); - JSONArray jsonArray1 = QfDao.jsonArray(idCard); - if (jsonArray1.size() != 0 && jsonArray1 != null){ - for (Object object : jsonArray1){ - JSONObject jsonObject = (JSONObject) object; - String widget1717726834808 = jsonObject.getString("_widget_1717726834808"); - Double aDouble = jsonObject.getDouble("_widget_1717726834804"); - Double aDouble2 = jsonObject.getDouble("_widget_1717726834807"); - Double aDouble1 = jsonObject.getDouble("_widget_1717726834805"); - - 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_1717726834808 = new JSONObject(); - _widget_1717726834808.put("value",widget1717726834808); - jsonObject2.put("_widget_1717666304762",_widget_1717726834808); - - JSONObject _widget_1717726834804 = new JSONObject(); - _widget_1717726834804.put("value",aDouble); - jsonObject2.put("_widget_1718086086807",_widget_1717726834804); - - JSONObject _widget_1717726834807 = new JSONObject(); - _widget_1717726834807.put("value",aDouble2); - jsonObject2.put("_widget_1718086086810",_widget_1717726834807); - - JSONObject _widget_1717726834805 = new JSONObject(); - _widget_1717726834805.put("value",aDouble1); - jsonObject2.put("_widget_1718086086808",_widget_1717726834805); - - 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); - - jsonObject1.put("data",jsonObject2); - - String jsonString = jsonObject1.toJSONString(); - String updata = V5utils.updata(jsonString); - System.out.println(updata); - - - } - } - - - } - } - - @Scheduled(cron = "0 59 23 24 * ?") - 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_1717557644376"); - String id = test.getString("_id"); - JSONArray jsonArray1 = QfDao.jsonArray(idCard); - if (jsonArray1.size() != 0 && jsonArray1 != null){ - for (Object object : jsonArray1){ - JSONObject jsonObject = (JSONObject) object; - String widget1717726834808 = jsonObject.getString("_widget_1717726834808"); - Double aDouble = jsonObject.getDouble("_widget_1717726834804"); - Double aDouble2 = jsonObject.getDouble("_widget_1717726834807"); - Double aDouble1 = jsonObject.getDouble("_widget_1717726834805"); - - 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_1717726834808 = new JSONObject(); - _widget_1717726834808.put("value",widget1717726834808); - jsonObject2.put("_widget_1717666304762",_widget_1717726834808); - - JSONObject _widget_1717726834804 = new JSONObject(); - _widget_1717726834804.put("value",aDouble); - jsonObject2.put("_widget_1718086086807",_widget_1717726834804); - - JSONObject _widget_1717726834807 = new JSONObject(); - _widget_1717726834807.put("value",aDouble2); - jsonObject2.put("_widget_1718086086810",_widget_1717726834807); - - JSONObject _widget_1717726834805 = new JSONObject(); - _widget_1717726834805.put("value",aDouble1); - jsonObject2.put("_widget_1718086086808",_widget_1717726834805); - - 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); - - jsonObject1.put("data",jsonObject2); - - String jsonString = jsonObject1.toJSONString(); - String updata = V5utils.updata(jsonString); - System.out.println(updata); - - - } - } - - - } - } - - @Scheduled(cron = "0 59 23 25 * ?") - 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_1717557644376"); - String id = test.getString("_id"); - JSONArray jsonArray1 = QfDao.jsonArray(idCard); - if (jsonArray1.size() != 0 && jsonArray1 != null){ - for (Object object : jsonArray1){ - JSONObject jsonObject = (JSONObject) object; - String widget1717726834808 = jsonObject.getString("_widget_1717726834808"); - Double aDouble = jsonObject.getDouble("_widget_1717726834804"); - Double aDouble2 = jsonObject.getDouble("_widget_1717726834807"); - Double aDouble1 = jsonObject.getDouble("_widget_1717726834805"); - - 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_1717726834808 = new JSONObject(); - _widget_1717726834808.put("value",widget1717726834808); - jsonObject2.put("_widget_1717666304762",_widget_1717726834808); - - JSONObject _widget_1717726834804 = new JSONObject(); - _widget_1717726834804.put("value",aDouble); - jsonObject2.put("_widget_1718086086807",_widget_1717726834804); - - JSONObject _widget_1717726834807 = new JSONObject(); - _widget_1717726834807.put("value",aDouble2); - jsonObject2.put("_widget_1718086086810",_widget_1717726834807); - - JSONObject _widget_1717726834805 = new JSONObject(); - _widget_1717726834805.put("value",aDouble1); - jsonObject2.put("_widget_1718086086808",_widget_1717726834805); - - 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); - - jsonObject1.put("data",jsonObject2); - - String jsonString = jsonObject1.toJSONString(); - String updata = V5utils.updata(jsonString); - System.out.println(updata); - - - } - } - - - } - } - - @Scheduled(cron = "0 59 23 26 * ?") - 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_1717557644376"); - String id = test.getString("_id"); - JSONArray jsonArray1 = QfDao.jsonArray(idCard); - if (jsonArray1.size() != 0 && jsonArray1 != null){ - for (Object object : jsonArray1){ - JSONObject jsonObject = (JSONObject) object; - String widget1717726834808 = jsonObject.getString("_widget_1717726834808"); - Double aDouble = jsonObject.getDouble("_widget_1717726834804"); - Double aDouble2 = jsonObject.getDouble("_widget_1717726834807"); - Double aDouble1 = jsonObject.getDouble("_widget_1717726834805"); - - 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_1717726834808 = new JSONObject(); - _widget_1717726834808.put("value",widget1717726834808); - jsonObject2.put("_widget_1717666304762",_widget_1717726834808); - - JSONObject _widget_1717726834804 = new JSONObject(); - _widget_1717726834804.put("value",aDouble); - jsonObject2.put("_widget_1718086086807",_widget_1717726834804); - - JSONObject _widget_1717726834807 = new JSONObject(); - _widget_1717726834807.put("value",aDouble2); - jsonObject2.put("_widget_1718086086810",_widget_1717726834807); - - JSONObject _widget_1717726834805 = new JSONObject(); - _widget_1717726834805.put("value",aDouble1); - jsonObject2.put("_widget_1718086086808",_widget_1717726834805); - - 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); - - jsonObject1.put("data",jsonObject2); - - String jsonString = jsonObject1.toJSONString(); - String updata = V5utils.updata(jsonString); - System.out.println(updata); - - - } - } - - - } - } - - @Scheduled(cron = "0 59 23 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_1717557644376"); - String id = test.getString("_id"); - JSONArray jsonArray1 = QfDao.jsonArray(idCard); - if (jsonArray1.size() != 0 && jsonArray1 != null){ - for (Object object : jsonArray1){ - JSONObject jsonObject = (JSONObject) object; - String widget1717726834808 = jsonObject.getString("_widget_1717726834808"); - Double aDouble = jsonObject.getDouble("_widget_1717726834804"); - Double aDouble2 = jsonObject.getDouble("_widget_1717726834807"); - Double aDouble1 = jsonObject.getDouble("_widget_1717726834805"); - - 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_1717726834808 = new JSONObject(); - _widget_1717726834808.put("value",widget1717726834808); - jsonObject2.put("_widget_1717666304762",_widget_1717726834808); - - JSONObject _widget_1717726834804 = new JSONObject(); - _widget_1717726834804.put("value",aDouble); - jsonObject2.put("_widget_1718086086807",_widget_1717726834804); - - JSONObject _widget_1717726834807 = new JSONObject(); - _widget_1717726834807.put("value",aDouble2); - jsonObject2.put("_widget_1718086086810",_widget_1717726834807); - - JSONObject _widget_1717726834805 = new JSONObject(); - _widget_1717726834805.put("value",aDouble1); - jsonObject2.put("_widget_1718086086808",_widget_1717726834805); - - 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); - - jsonObject1.put("data",jsonObject2); - - String jsonString = jsonObject1.toJSONString(); - String updata = V5utils.updata(jsonString); - System.out.println(updata); - - - } - } - - - } - } - - @Scheduled(cron = "0 59 23 28 * ?") - 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_1717557644376"); - String id = test.getString("_id"); - JSONArray jsonArray1 = QfDao.jsonArray(idCard); - if (jsonArray1.size() != 0 && jsonArray1 != null){ - for (Object object : jsonArray1){ - JSONObject jsonObject = (JSONObject) object; - String widget1717726834808 = jsonObject.getString("_widget_1717726834808"); - Double aDouble = jsonObject.getDouble("_widget_1717726834804"); - Double aDouble2 = jsonObject.getDouble("_widget_1717726834807"); - Double aDouble1 = jsonObject.getDouble("_widget_1717726834805"); - - 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_1717726834808 = new JSONObject(); - _widget_1717726834808.put("value",widget1717726834808); - jsonObject2.put("_widget_1717666304762",_widget_1717726834808); - - JSONObject _widget_1717726834804 = new JSONObject(); - _widget_1717726834804.put("value",aDouble); - jsonObject2.put("_widget_1718086086807",_widget_1717726834804); - - JSONObject _widget_1717726834807 = new JSONObject(); - _widget_1717726834807.put("value",aDouble2); - jsonObject2.put("_widget_1718086086810",_widget_1717726834807); - - JSONObject _widget_1717726834805 = new JSONObject(); - _widget_1717726834805.put("value",aDouble1); - jsonObject2.put("_widget_1718086086808",_widget_1717726834805); - - 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); - - jsonObject1.put("data",jsonObject2); - - String jsonString = jsonObject1.toJSONString(); - String updata = V5utils.updata(jsonString); - System.out.println(updata); - - - } - } - - - } - } - - @Scheduled(cron = "0 59 23 29 * ?") - 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_1717557644376"); - String id = test.getString("_id"); - JSONArray jsonArray1 = QfDao.jsonArray(idCard); - if (jsonArray1.size() != 0 && jsonArray1 != null){ - for (Object object : jsonArray1){ - JSONObject jsonObject = (JSONObject) object; - String widget1717726834808 = jsonObject.getString("_widget_1717726834808"); - Double aDouble = jsonObject.getDouble("_widget_1717726834804"); - Double aDouble2 = jsonObject.getDouble("_widget_1717726834807"); - Double aDouble1 = jsonObject.getDouble("_widget_1717726834805"); - - 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_1717726834808 = new JSONObject(); - _widget_1717726834808.put("value",widget1717726834808); - jsonObject2.put("_widget_1717666304762",_widget_1717726834808); - - JSONObject _widget_1717726834804 = new JSONObject(); - _widget_1717726834804.put("value",aDouble); - jsonObject2.put("_widget_1718086086807",_widget_1717726834804); - - JSONObject _widget_1717726834807 = new JSONObject(); - _widget_1717726834807.put("value",aDouble2); - jsonObject2.put("_widget_1718086086810",_widget_1717726834807); - - JSONObject _widget_1717726834805 = new JSONObject(); - _widget_1717726834805.put("value",aDouble1); - jsonObject2.put("_widget_1718086086808",_widget_1717726834805); - - 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); - - jsonObject1.put("data",jsonObject2); - - String jsonString = jsonObject1.toJSONString(); - String updata = V5utils.updata(jsonString); - System.out.println(updata); - - - } - } - - - } - } - - @Scheduled(cron = "0 59 23 30 * ?") - 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_1717557644376"); - String id = test.getString("_id"); - JSONArray jsonArray1 = QfDao.jsonArray(idCard); - if (jsonArray1.size() != 0 && jsonArray1 != null){ - for (Object object : jsonArray1){ - JSONObject jsonObject = (JSONObject) object; - String widget1717726834808 = jsonObject.getString("_widget_1717726834808"); - Double aDouble = jsonObject.getDouble("_widget_1717726834804"); - Double aDouble2 = jsonObject.getDouble("_widget_1717726834807"); - Double aDouble1 = jsonObject.getDouble("_widget_1717726834805"); - - 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_1717726834808 = new JSONObject(); - _widget_1717726834808.put("value",widget1717726834808); - jsonObject2.put("_widget_1717666304762",_widget_1717726834808); - - JSONObject _widget_1717726834804 = new JSONObject(); - _widget_1717726834804.put("value",aDouble); - jsonObject2.put("_widget_1718086086807",_widget_1717726834804); - - JSONObject _widget_1717726834807 = new JSONObject(); - _widget_1717726834807.put("value",aDouble2); - jsonObject2.put("_widget_1718086086810",_widget_1717726834807); - - JSONObject _widget_1717726834805 = new JSONObject(); - _widget_1717726834805.put("value",aDouble1); - jsonObject2.put("_widget_1718086086808",_widget_1717726834805); - - 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); - - jsonObject1.put("data",jsonObject2); - - String jsonString = jsonObject1.toJSONString(); - String updata = V5utils.updata(jsonString); - System.out.println(updata); - - - } - } - - - } - } - - - @Scheduled(cron = "0 59 23 31 * ?") - 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_1717557644376"); - String id = test.getString("_id"); - JSONArray jsonArray1 = QfDao.jsonArray(idCard); - if (jsonArray1.size() != 0 && jsonArray1 != null){ - for (Object object : jsonArray1){ - JSONObject jsonObject = (JSONObject) object; - String widget1717726834808 = jsonObject.getString("_widget_1717726834808"); - Double aDouble = jsonObject.getDouble("_widget_1717726834804"); - Double aDouble2 = jsonObject.getDouble("_widget_1717726834807"); - Double aDouble1 = jsonObject.getDouble("_widget_1717726834805"); - - 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_1717726834808 = new JSONObject(); - _widget_1717726834808.put("value",widget1717726834808); - jsonObject2.put("_widget_1717666304762",_widget_1717726834808); - - JSONObject _widget_1717726834804 = new JSONObject(); - _widget_1717726834804.put("value",aDouble); - jsonObject2.put("_widget_1718086086807",_widget_1717726834804); - - JSONObject _widget_1717726834807 = new JSONObject(); - _widget_1717726834807.put("value",aDouble2); - jsonObject2.put("_widget_1718086086810",_widget_1717726834807); - - JSONObject _widget_1717726834805 = new JSONObject(); - _widget_1717726834805.put("value",aDouble1); - jsonObject2.put("_widget_1718086086808",_widget_1717726834805); - - 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); - - jsonObject1.put("data",jsonObject2); - - String jsonString = jsonObject1.toJSONString(); - String updata = V5utils.updata(jsonString); - System.out.println(updata); - - - } - } - - - } - } - -*/ - - public static void qianfei() 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 = QfDao.jsonArray(idCard); - if (jsonArray1.size() != 0 && jsonArray1 != null){ - for (Object object : jsonArray1){ - JSONObject jsonObject = (JSONObject) object; - String widget1717726834808 = jsonObject.getString("_widget_1717726834808"); - Double aDouble = jsonObject.getDouble("_widget_1717726834804"); - Double aDouble2 = jsonObject.getDouble("_widget_1717726834807"); - Double aDouble1 = jsonObject.getDouble("_widget_1717726834805"); - - 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_1717726834808 = new JSONObject(); - _widget_1717726834808.put("value",widget1717726834808); - jsonObject2.put("_widget_1717666304762",_widget_1717726834808); - - JSONObject _widget_1717726834804 = new JSONObject(); - _widget_1717726834804.put("value",aDouble); - jsonObject2.put("_widget_1718086086807",_widget_1717726834804); - - JSONObject _widget_1717726834807 = new JSONObject(); - _widget_1717726834807.put("value",aDouble2); - jsonObject2.put("_widget_1718086086810",_widget_1717726834807); - - JSONObject _widget_1717726834805 = new JSONObject(); - _widget_1717726834805.put("value",aDouble1); - jsonObject2.put("_widget_1718086086808",_widget_1717726834805); - - 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); - - jsonObject1.put("data",jsonObject2); - - String jsonString = jsonObject1.toJSONString(); - String updata = V5utils.updata(jsonString); - System.out.println(updata); - - - } - } - - - } - } - - - - - - -} diff --git a/src/main/java/com/example/sso/controller/YuanChengJiHuo.java b/src/main/java/com/example/sso/controller/YuanChengJiHuo.java deleted file mode 100644 index ac07ced..0000000 --- a/src/main/java/com/example/sso/controller/YuanChengJiHuo.java +++ /dev/null @@ -1,81 +0,0 @@ -package com.example.sso.controller; - -import com.alibaba.fastjson.JSON; -import com.alibaba.fastjson.JSONArray; -import com.alibaba.fastjson.JSONObject; -import com.example.sso.util.TimeUtil; -import com.example.sso.util.V5utils; -import org.springframework.scheduling.annotation.Scheduled; -import org.springframework.stereotype.Component; - -@Component -public class YuanChengJiHuo { - // @Scheduled(cron = "0 0 12 1 * ?") - public void main123() { - JSONObject jsonObject = new JSONObject(); - jsonObject.put("app_id","665ea38ef718f1edccf7b20d"); - jsonObject.put("entry_id","665fd98bf718f1edcc00377c"); - jsonObject.put("limit",10000); - String jsonString = jsonObject.toJSONString(); - String list = V5utils.list(jsonString); - JSONObject jsonObject1 = JSON.parseObject(list); - JSONArray jsonArray = jsonObject1.getJSONArray("data"); - String two = TimeUtil.two(); - String now = TimeUtil.now(); - for (Object o : jsonArray){ - JSONObject te = (JSONObject) o; - String widget1717727492391 = te.getString("_widget_1717727492391"); - String widget1718100655891 = te.getString("_widget_1718100655891"); - String widget1718098344622 = te.getString("_widget_1718098344622"); - String widget1717557644374 = te.getString("_widget_1717557644374"); - String widget1717557644376 = te.getString("_widget_1717557644376"); - String widget1717727492392 = te.getString("_widget_1717727492392"); - if (widget1717727492391.equals("是")) { - - JSONObject jsonObject2 = new JSONObject(); - jsonObject2.put("app_id", "665ea38ef718f1edccf7b20d"); - jsonObject2.put("entry_id", "666959e5f718f1edcc291a08"); - jsonObject2.put("is_start_workflow", true); - jsonObject2.put("is_start_trigger", true); - JSONObject data = new JSONObject(); - - JSONObject _widget_1718181789185 = new JSONObject(); - _widget_1718181789185.put("value",widget1718098344622); - - JSONObject id_card = new JSONObject(); - id_card.put("value",widget1717557644376); - - JSONObject car = new JSONObject(); - car.put("value",widget1717557644374); - - JSONObject start_time = new JSONObject(); - start_time.put("value",now); - - JSONObject end_time = new JSONObject(); - end_time.put("value",two); - - - JSONObject next_date = new JSONObject(); - next_date.put("value",widget1717727492392); - - data.put("_widget_1718181789185",_widget_1718181789185); - data.put("id_card",id_card); - data.put("car",car); - data.put("start_time",start_time); - data.put("end_time",end_time); - data.put("next_date",next_date); - - jsonObject2.put("data",data); - String jsonString1 = jsonObject2.toJSONString(); - String add = V5utils.add(jsonString1); - System.out.println(add); - - - } - - - - } - - } -} diff --git a/src/main/java/com/example/sso/newcontroller/DpChongXie.java b/src/main/java/com/example/sso/newcontroller/DpChongXie.java index 6882995..e786883 100644 --- a/src/main/java/com/example/sso/newcontroller/DpChongXie.java +++ b/src/main/java/com/example/sso/newcontroller/DpChongXie.java @@ -5,10 +5,14 @@ import com.alibaba.fastjson.JSONArray; import com.alibaba.fastjson.JSONObject; import com.example.sso.util.V5utils; import lombok.extern.slf4j.Slf4j; +import org.springframework.scheduling.annotation.Scheduled; +import org.springframework.stereotype.Component; @Slf4j +@Component public class DpChongXie { - public static void main(String[] args) { + @Scheduled(cron = "0 10 2 * * ?") + public void main() { Boolean flag = true; @@ -68,7 +72,7 @@ public class DpChongXie { JSONObject jsonObject12 = new JSONObject(); jsonObject12.put("app_id", "665ea38ef718f1edccf7b20d"); - jsonObject12.put("entry_id", "695c7a4c2b2ce8cf415cc0e6"); + jsonObject12.put("entry_id", "665fd98bf718f1edcc00377c"); jsonObject12.put("limit", 100); @@ -104,7 +108,7 @@ public class DpChongXie { JSONObject jsonObject1123 = new JSONObject(); jsonObject1123.put("app_id", "665ea38ef718f1edccf7b20d"); - jsonObject1123.put("entry_id", "695c7a4c2b2ce8cf415cc0e6"); + jsonObject1123.put("entry_id", "665fd98bf718f1edcc00377c"); jsonObject1123.put("data_id", id); JSONObject jsonObject2 = new JSONObject(); diff --git a/src/main/java/com/example/sso/newcontroller/DpZhiKong.java b/src/main/java/com/example/sso/newcontroller/DpZhiKong.java index eb6d0f9..9b4ad58 100644 --- a/src/main/java/com/example/sso/newcontroller/DpZhiKong.java +++ b/src/main/java/com/example/sso/newcontroller/DpZhiKong.java @@ -16,7 +16,7 @@ import java.util.List; @Component public class DpZhiKong { //每天置空空 - @Scheduled + @Scheduled(cron = "0 0 0 * * ?") public void main1() { String yue1 = TimeUtil.yue(); @@ -62,7 +62,7 @@ public class DpZhiKong { JSONObject jsonObject = new JSONObject(); jsonObject.put("app_id", "665ea38ef718f1edccf7b20d"); - jsonObject.put("entry_id", "695c7a4c2b2ce8cf415cc0e6"); + jsonObject.put("entry_id", "665fd98bf718f1edcc00377c"); jsonObject.put("limit", 10000); JSONArray fields = new JSONArray(); fields.add("createTime"); @@ -89,7 +89,7 @@ public class DpZhiKong { if (lists.size() == 100) { JSONObject jsonObject2 = new JSONObject(); jsonObject2.put("app_id", "665ea38ef718f1edccf7b20d"); - jsonObject2.put("entry_id", "695c7a4c2b2ce8cf415cc0e6"); + jsonObject2.put("entry_id", "665fd98bf718f1edcc00377c"); jsonObject2.put("data_ids", lists); JSONObject datas = new JSONObject(); @@ -232,7 +232,7 @@ public class DpZhiKong { if (lists.size() == 100) { JSONObject jsonObject2 = new JSONObject(); jsonObject2.put("app_id", "665ea38ef718f1edccf7b20d"); - jsonObject2.put("entry_id", "695c7a4c2b2ce8cf415cc0e6"); + jsonObject2.put("entry_id", "665fd98bf718f1edcc00377c"); jsonObject2.put("data_ids", lists); JSONObject datas = new JSONObject(); @@ -373,7 +373,7 @@ public class DpZhiKong { JSONObject jsonObject2 = new JSONObject(); jsonObject2.put("app_id", "665ea38ef718f1edccf7b20d"); - jsonObject2.put("entry_id", "695c7a4c2b2ce8cf415cc0e6"); + jsonObject2.put("entry_id", "665fd98bf718f1edcc00377c"); jsonObject2.put("data_ids", lists); JSONObject datas = new JSONObject(); @@ -508,180 +508,183 @@ public class DpZhiKong { //月初置空 - @Scheduled + @Scheduled(cron = "0 50 23 28-31 * ?") + public void executeOnLastDay() { + // 验证是否确实是当月最后一天 + if (isLastDayOfMonth()) { - public void main2() { + JSONObject yue = new JSONObject(); + yue.put("app_id", "665ea38ef718f1edccf7b20d"); + yue.put("entry_id", "68ac12b80499bc3808905065"); + yue.put("limit", 1); + JSONArray fields1 = new JSONArray(); + fields1.add("dpsj"); + yue.put("fields", fields1); - JSONObject yue = new JSONObject(); - yue.put("app_id", "665ea38ef718f1edccf7b20d"); - yue.put("entry_id", "68ac12b80499bc3808905065"); - yue.put("limit", 1); - JSONArray fields1 = new JSONArray(); - fields1.add("dpsj"); - yue.put("fields", fields1); + String jsonString2 = yue.toJSONString(); + String list1 = V5utils.list(jsonString2); + System.out.println(list1); + JSONObject jsonObject11 = JSON.parseObject(list1); + JSONArray data1 = jsonObject11.getJSONArray("data"); - String jsonString2 = yue.toJSONString(); - String list1 = V5utils.list(jsonString2); - System.out.println(list1); - JSONObject jsonObject11 = JSON.parseObject(list1); - JSONArray data1 = jsonObject11.getJSONArray("data"); + Boolean flag = true; + String id = ""; + List lists = new ArrayList<>(); + while (flag) { - - Boolean flag = true; - String id = ""; - List lists = new ArrayList<>(); - while (flag) { - - JSONObject jsonObject = new JSONObject(); - jsonObject.put("app_id", "665ea38ef718f1edccf7b20d"); - jsonObject.put("entry_id", "695c7a4c2b2ce8cf415cc0e6"); - jsonObject.put("limit", 10000); - JSONArray fields = new JSONArray(); - fields.add("createTime"); - jsonObject.put("fields", fields); - if (!id.equals("")) { - jsonObject.put("data_id", id); - } - - String jsonString = jsonObject.toJSONString(); - String list = V5utils.list(jsonString); - JSONObject jsonObject1 = JSON.parseObject(list); - JSONArray data = jsonObject1.getJSONArray("data"); - - - int size = data.size(); - log.info("我是长度 " + size); - - - if (size < 10000) { - for (Object o : data) { - JSONObject test = (JSONObject) o; - String string = test.getString("_id"); - lists.add(string); - if (lists.size() == 100) { - JSONObject jsonObject2 = new JSONObject(); - jsonObject2.put("app_id", "665ea38ef718f1edccf7b20d"); - jsonObject2.put("entry_id", "695c7a4c2b2ce8cf415cc0e6"); - jsonObject2.put("data_ids", lists); - JSONObject datas = new JSONObject(); - - JSONObject _widget_1717727879724 = new JSONObject(); - _widget_1717727879724.put("value", "否"); - datas.put("_widget_1729302240116", _widget_1717727879724); - - JSONObject _widget_1717727879725 = new JSONObject(); - _widget_1717727879725.put("value", ""); - datas.put("_widget_1729302240117", _widget_1717727879725); - - JSONObject _widget_1717727492391 = new JSONObject(); - _widget_1717727492391.put("value", ""); - datas.put("_widget_1724117232219", _widget_1717727492391); - - - JSONObject _widget_1718157291962 = new JSONObject(); - _widget_1718157291962.put("value", ""); - datas.put("_widget_1724396148712", _widget_1718157291962); - - - jsonObject2.put("data", datas); - - - String jsonString1 = jsonObject2.toJSONString(); - log.info("我是更新参数 " + jsonString1); - V5utils.updatas(jsonString1); - lists.clear(); - } + JSONObject jsonObject = new JSONObject(); + jsonObject.put("app_id", "665ea38ef718f1edccf7b20d"); + jsonObject.put("entry_id", "665fd98bf718f1edcc00377c"); + jsonObject.put("limit", 10000); + JSONArray fields = new JSONArray(); + fields.add("createTime"); + jsonObject.put("fields", fields); + if (!id.equals("")) { + jsonObject.put("data_id", id); } - - flag = false; - - } else { - for (Object o : data) { - JSONObject test = (JSONObject) o; - String string = test.getString("_id"); - lists.add(string); - id = string; - if (lists.size() == 100) { - JSONObject jsonObject2 = new JSONObject(); - jsonObject2.put("app_id", "665ea38ef718f1edccf7b20d"); - jsonObject2.put("entry_id", "695c7a4c2b2ce8cf415cc0e6"); - jsonObject2.put("data_ids", lists); - JSONObject datas = new JSONObject(); - - JSONObject _widget_1717727879724 = new JSONObject(); - _widget_1717727879724.put("value", "否"); - datas.put("_widget_1729302240116", _widget_1717727879724); - - JSONObject _widget_1717727879725 = new JSONObject(); - _widget_1717727879725.put("value", ""); - datas.put("_widget_1729302240117", _widget_1717727879725); - - JSONObject _widget_1717727492391 = new JSONObject(); - _widget_1717727492391.put("value", ""); - datas.put("_widget_1724117232219", _widget_1717727492391); + String jsonString = jsonObject.toJSONString(); + String list = V5utils.list(jsonString); + JSONObject jsonObject1 = JSON.parseObject(list); + JSONArray data = jsonObject1.getJSONArray("data"); - JSONObject _widget_1718157291962 = new JSONObject(); - _widget_1718157291962.put("value", ""); - datas.put("_widget_1724396148712", _widget_1718157291962); - - jsonObject2.put("data", datas); + int size = data.size(); + log.info("我是长度 " + size); - String jsonString1 = jsonObject2.toJSONString(); - log.info("我是更新参数 " + jsonString1); - V5utils.updatas(jsonString1); - lists.clear(); + if (size < 10000) { + for (Object o : data) { + JSONObject test = (JSONObject) o; + String string = test.getString("_id"); + lists.add(string); + if (lists.size() == 100) { + JSONObject jsonObject2 = new JSONObject(); + jsonObject2.put("app_id", "665ea38ef718f1edccf7b20d"); + jsonObject2.put("entry_id", "665fd98bf718f1edcc00377c"); + jsonObject2.put("data_ids", lists); + JSONObject datas = new JSONObject(); + + JSONObject _widget_1717727879724 = new JSONObject(); + _widget_1717727879724.put("value", "否"); + datas.put("_widget_1729302240116", _widget_1717727879724); + + JSONObject _widget_1717727879725 = new JSONObject(); + _widget_1717727879725.put("value", ""); + datas.put("_widget_1729302240117", _widget_1717727879725); + + JSONObject _widget_1717727492391 = new JSONObject(); + _widget_1717727492391.put("value", ""); + datas.put("_widget_1724117232219", _widget_1717727492391); + + + JSONObject _widget_1718157291962 = new JSONObject(); + _widget_1718157291962.put("value", ""); + datas.put("_widget_1724396148712", _widget_1718157291962); + + + jsonObject2.put("data", datas); + + + String jsonString1 = jsonObject2.toJSONString(); + log.info("我是更新参数 " + jsonString1); + V5utils.updatas(jsonString1); + lists.clear(); + } } + + + flag = false; + + } else { + for (Object o : data) { + JSONObject test = (JSONObject) o; + String string = test.getString("_id"); + lists.add(string); + id = string; + if (lists.size() == 100) { + JSONObject jsonObject2 = new JSONObject(); + jsonObject2.put("app_id", "665ea38ef718f1edccf7b20d"); + jsonObject2.put("entry_id", "665fd98bf718f1edcc00377c"); + jsonObject2.put("data_ids", lists); + JSONObject datas = new JSONObject(); + + JSONObject _widget_1717727879724 = new JSONObject(); + _widget_1717727879724.put("value", "否"); + datas.put("_widget_1729302240116", _widget_1717727879724); + + JSONObject _widget_1717727879725 = new JSONObject(); + _widget_1717727879725.put("value", ""); + datas.put("_widget_1729302240117", _widget_1717727879725); + + JSONObject _widget_1717727492391 = new JSONObject(); + _widget_1717727492391.put("value", ""); + datas.put("_widget_1724117232219", _widget_1717727492391); + + + JSONObject _widget_1718157291962 = new JSONObject(); + _widget_1718157291962.put("value", ""); + datas.put("_widget_1724396148712", _widget_1718157291962); + + jsonObject2.put("data", datas); + + + String jsonString1 = jsonObject2.toJSONString(); + log.info("我是更新参数 " + jsonString1); + V5utils.updatas(jsonString1); + lists.clear(); + } + } + + } } + JSONObject jsonObject2 = new JSONObject(); + jsonObject2.put("app_id", "665ea38ef718f1edccf7b20d"); + jsonObject2.put("entry_id", "665fd98bf718f1edcc00377c"); + jsonObject2.put("data_ids", lists); + JSONObject datas = new JSONObject(); + + JSONObject _widget_1717727879724 = new JSONObject(); + _widget_1717727879724.put("value", "否"); + datas.put("_widget_1729302240116", _widget_1717727879724); + + JSONObject _widget_1717727879725 = new JSONObject(); + _widget_1717727879725.put("value", ""); + datas.put("_widget_1729302240117", _widget_1717727879725); + + JSONObject _widget_1717727492391 = new JSONObject(); + _widget_1717727492391.put("value", ""); + datas.put("_widget_1724117232219", _widget_1717727492391); + + + JSONObject _widget_1718157291962 = new JSONObject(); + _widget_1718157291962.put("value", ""); + datas.put("_widget_1724396148712", _widget_1718157291962); + + jsonObject2.put("data", datas); + + + String jsonString1 = jsonObject2.toJSONString(); + log.info("我是更新参数 " + jsonString1); + V5utils.updatas(jsonString1); + lists.clear(); } - - JSONObject jsonObject2 = new JSONObject(); - jsonObject2.put("app_id", "665ea38ef718f1edccf7b20d"); - jsonObject2.put("entry_id", "695c7a4c2b2ce8cf415cc0e6"); - jsonObject2.put("data_ids", lists); - JSONObject datas = new JSONObject(); - - - JSONObject _widget_1717727879724 = new JSONObject(); - _widget_1717727879724.put("value", "否"); - datas.put("_widget_1729302240116", _widget_1717727879724); - - JSONObject _widget_1717727879725 = new JSONObject(); - _widget_1717727879725.put("value", ""); - datas.put("_widget_1729302240117", _widget_1717727879725); - - JSONObject _widget_1717727492391 = new JSONObject(); - _widget_1717727492391.put("value", ""); - datas.put("_widget_1724117232219", _widget_1717727492391); - - - JSONObject _widget_1718157291962 = new JSONObject(); - _widget_1718157291962.put("value", ""); - datas.put("_widget_1724396148712", _widget_1718157291962); - - jsonObject2.put("data", datas); - - - String jsonString1 = jsonObject2.toJSONString(); - log.info("我是更新参数 " + jsonString1); - V5utils.updatas(jsonString1); - lists.clear(); - } - //每天置空前置空 - public static void main(String[] args) { + + + //每天置空前置空 + @Scheduled(cron = "0 0 23 * * ?") + public void main3() { Boolean flag = true; @@ -691,7 +694,7 @@ public class DpZhiKong { try { JSONObject jsonObject = new JSONObject(); jsonObject.put("app_id", "665ea38ef718f1edccf7b20d"); - jsonObject.put("entry_id", "695c7a4c2b2ce8cf415cc0e6"); + jsonObject.put("entry_id", "665fd98bf718f1edcc00377c"); jsonObject.put("limit", 1); JSONArray fields = new JSONArray(); fields.add("_widget_1717727492391"); @@ -728,7 +731,7 @@ public class DpZhiKong { JSONObject jsonObject1123 = new JSONObject(); jsonObject1123.put("app_id", "665ea38ef718f1edccf7b20d"); - jsonObject1123.put("entry_id", "695c7a4c2b2ce8cf415cc0e6"); + jsonObject1123.put("entry_id", "665fd98bf718f1edcc00377c"); jsonObject1123.put("data_id", id); JSONObject jsonObject2 = new JSONObject(); @@ -763,4 +766,15 @@ public class DpZhiKong { } + + + + + private boolean isLastDayOfMonth() { + java.time.LocalDate today = java.time.LocalDate.now(); + java.time.LocalDate tomorrow = today.plusDays(1); + return tomorrow.getDayOfMonth() == 1; + } + + } diff --git a/src/main/java/com/example/sso/newcontroller/LianYingChongXie.java b/src/main/java/com/example/sso/newcontroller/LianYingChongXie.java index 4524ab1..db999b5 100644 --- a/src/main/java/com/example/sso/newcontroller/LianYingChongXie.java +++ b/src/main/java/com/example/sso/newcontroller/LianYingChongXie.java @@ -5,11 +5,14 @@ import com.alibaba.fastjson.JSONArray; import com.alibaba.fastjson.JSONObject; import com.example.sso.util.V5utils; import lombok.extern.slf4j.Slf4j; +import org.springframework.scheduling.annotation.Scheduled; +import org.springframework.stereotype.Component; @Slf4j +@Component public class LianYingChongXie { - - public static void main(String[] args) { + @Scheduled(cron = "0 10 2 * * ?") + public void main1() { Boolean flag = true; while (flag) { @@ -53,7 +56,7 @@ public class LianYingChongXie { String wfs = te.getString("wfs"); String wfjf = te.getString("wfjf"); String wfje = te.getString("wfje"); - String wfzz = te.getString("dj"); + String wfzz = te.getString("wfzz"); String yqys = te.getString("yqys"); String njyf = te.getString("njyf"); String ch = te.getString("ch"); @@ -65,7 +68,7 @@ public class LianYingChongXie { JSONObject jsonObject12 = new JSONObject(); jsonObject12.put("app_id", "665ea38ef718f1edccf7b20d"); - jsonObject12.put("entry_id", "696aed462b2ce8cf410b8b6f"); + jsonObject12.put("entry_id", "68a7c86a0499bc38086d05ce"); jsonObject12.put("limit", 100); @@ -111,7 +114,7 @@ public class LianYingChongXie { JSONObject jsonObject1123 = new JSONObject(); jsonObject1123.put("app_id", "665ea38ef718f1edccf7b20d"); - jsonObject1123.put("entry_id", "696aed462b2ce8cf410b8b6f"); + jsonObject1123.put("entry_id", "68a7c86a0499bc38086d05ce"); jsonObject1123.put("data_id", id); JSONObject jsonObject2 = new JSONObject(); diff --git a/src/main/java/com/example/sso/newcontroller/LyZhiKong.java b/src/main/java/com/example/sso/newcontroller/LyZhiKong.java index e64fb44..a102245 100644 --- a/src/main/java/com/example/sso/newcontroller/LyZhiKong.java +++ b/src/main/java/com/example/sso/newcontroller/LyZhiKong.java @@ -16,7 +16,7 @@ import java.util.List; @Component public class LyZhiKong { - @Scheduled + @Scheduled(cron = "0 0 0 * * ?") public void main1() { String yue1 = TimeUtil.yue(); @@ -62,7 +62,7 @@ public class LyZhiKong { JSONObject jsonObject = new JSONObject(); jsonObject.put("app_id", "665ea38ef718f1edccf7b20d"); - jsonObject.put("entry_id", "696aed462b2ce8cf410b8b6f"); + jsonObject.put("entry_id", "68a7c86a0499bc38086d05ce"); jsonObject.put("limit", 10000); JSONArray fields = new JSONArray(); fields.add("createTime"); @@ -89,7 +89,7 @@ public class LyZhiKong { if (lists.size() == 100) { JSONObject jsonObject2 = new JSONObject(); jsonObject2.put("app_id", "665ea38ef718f1edccf7b20d"); - jsonObject2.put("entry_id", "696aed462b2ce8cf410b8b6f"); + jsonObject2.put("entry_id", "68a7c86a0499bc38086d05ce"); jsonObject2.put("data_ids", lists); JSONObject datas = new JSONObject(); @@ -373,7 +373,7 @@ public class LyZhiKong { JSONObject jsonObject2 = new JSONObject(); jsonObject2.put("app_id", "665ea38ef718f1edccf7b20d"); - jsonObject2.put("entry_id", "696aed462b2ce8cf410b8b6f"); + jsonObject2.put("entry_id", "68a7c86a0499bc38086d05ce"); jsonObject2.put("data_ids", lists); JSONObject datas = new JSONObject(); @@ -505,180 +505,185 @@ public class LyZhiKong { //月初置空 - @Scheduled + @Scheduled(cron = "0 50 23 28-31 * ?") - public void main2() { + public void executeOnLastDay() { + if (isLastDayOfMonth()) { + JSONObject yue = new JSONObject(); + yue.put("app_id", "665ea38ef718f1edccf7b20d"); + yue.put("entry_id", "68a7c86a0499bc38086d05ce"); + yue.put("limit", 1); + JSONArray fields1 = new JSONArray(); + fields1.add("dpsj"); + yue.put("fields", fields1); - JSONObject yue = new JSONObject(); - yue.put("app_id", "665ea38ef718f1edccf7b20d"); - yue.put("entry_id", "696aed462b2ce8cf410b8b6f"); - yue.put("limit", 1); - JSONArray fields1 = new JSONArray(); - fields1.add("dpsj"); - yue.put("fields", fields1); + String jsonString2 = yue.toJSONString(); + String list1 = V5utils.list(jsonString2); + System.out.println(list1); + JSONObject jsonObject11 = JSON.parseObject(list1); + JSONArray data1 = jsonObject11.getJSONArray("data"); - String jsonString2 = yue.toJSONString(); - String list1 = V5utils.list(jsonString2); - System.out.println(list1); - JSONObject jsonObject11 = JSON.parseObject(list1); - JSONArray data1 = jsonObject11.getJSONArray("data"); + Boolean flag = true; + String id = ""; + List lists = new ArrayList<>(); + while (flag) { - - Boolean flag = true; - String id = ""; - List lists = new ArrayList<>(); - while (flag) { - - JSONObject jsonObject = new JSONObject(); - jsonObject.put("app_id", "665ea38ef718f1edccf7b20d"); - jsonObject.put("entry_id", "696aed462b2ce8cf410b8b6f"); - jsonObject.put("limit", 10000); - JSONArray fields = new JSONArray(); - fields.add("createTime"); - jsonObject.put("fields", fields); - if (!id.equals("")) { - jsonObject.put("data_id", id); - } - - String jsonString = jsonObject.toJSONString(); - String list = V5utils.list(jsonString); - JSONObject jsonObject1 = JSON.parseObject(list); - JSONArray data = jsonObject1.getJSONArray("data"); - - - int size = data.size(); - log.info("我是长度 " + size); - - - if (size < 10000) { - for (Object o : data) { - JSONObject test = (JSONObject) o; - String string = test.getString("_id"); - lists.add(string); - if (lists.size() == 100) { - JSONObject jsonObject2 = new JSONObject(); - jsonObject2.put("app_id", "665ea38ef718f1edccf7b20d"); - jsonObject2.put("entry_id", "696aed462b2ce8cf410b8b6f"); - jsonObject2.put("data_ids", lists); - JSONObject datas = new JSONObject(); - - JSONObject _widget_1717727879724 = new JSONObject(); - _widget_1717727879724.put("value", "否"); - datas.put("_widget_1729302240116", _widget_1717727879724); - - JSONObject _widget_1717727879725 = new JSONObject(); - _widget_1717727879725.put("value", ""); - datas.put("_widget_1729302240117", _widget_1717727879725); - - JSONObject _widget_1717727492391 = new JSONObject(); - _widget_1717727492391.put("value", ""); - datas.put("_widget_1724117232219", _widget_1717727492391); - - - JSONObject _widget_1718157291962 = new JSONObject(); - _widget_1718157291962.put("value", ""); - datas.put("_widget_1724396148712", _widget_1718157291962); - - - jsonObject2.put("data", datas); - - - String jsonString1 = jsonObject2.toJSONString(); - log.info("我是更新参数 " + jsonString1); - V5utils.updatas(jsonString1); - lists.clear(); - } + JSONObject jsonObject = new JSONObject(); + jsonObject.put("app_id", "665ea38ef718f1edccf7b20d"); + jsonObject.put("entry_id", "68a7c86a0499bc38086d05ce"); + jsonObject.put("limit", 10000); + JSONArray fields = new JSONArray(); + fields.add("createTime"); + jsonObject.put("fields", fields); + if (!id.equals("")) { + jsonObject.put("data_id", id); } - - flag = false; - - } else { - for (Object o : data) { - JSONObject test = (JSONObject) o; - String string = test.getString("_id"); - lists.add(string); - id = string; - if (lists.size() == 100) { - JSONObject jsonObject2 = new JSONObject(); - jsonObject2.put("app_id", "665ea38ef718f1edccf7b20d"); - jsonObject2.put("entry_id", "695c7a4c2b2ce8cf415cc0e6"); - jsonObject2.put("data_ids", lists); - JSONObject datas = new JSONObject(); - - JSONObject _widget_1717727879724 = new JSONObject(); - _widget_1717727879724.put("value", "否"); - datas.put("_widget_1729302240116", _widget_1717727879724); - - JSONObject _widget_1717727879725 = new JSONObject(); - _widget_1717727879725.put("value", ""); - datas.put("_widget_1729302240117", _widget_1717727879725); - - JSONObject _widget_1717727492391 = new JSONObject(); - _widget_1717727492391.put("value", ""); - datas.put("_widget_1724117232219", _widget_1717727492391); + String jsonString = jsonObject.toJSONString(); + String list = V5utils.list(jsonString); + JSONObject jsonObject1 = JSON.parseObject(list); + JSONArray data = jsonObject1.getJSONArray("data"); - JSONObject _widget_1718157291962 = new JSONObject(); - _widget_1718157291962.put("value", ""); - datas.put("_widget_1724396148712", _widget_1718157291962); - - jsonObject2.put("data", datas); + int size = data.size(); + log.info("我是长度 " + size); - String jsonString1 = jsonObject2.toJSONString(); - log.info("我是更新参数 " + jsonString1); - V5utils.updatas(jsonString1); - lists.clear(); + if (size < 10000) { + for (Object o : data) { + JSONObject test = (JSONObject) o; + String string = test.getString("_id"); + lists.add(string); + if (lists.size() == 100) { + JSONObject jsonObject2 = new JSONObject(); + jsonObject2.put("app_id", "665ea38ef718f1edccf7b20d"); + jsonObject2.put("entry_id", "68a7c86a0499bc38086d05ce"); + jsonObject2.put("data_ids", lists); + JSONObject datas = new JSONObject(); + + JSONObject _widget_1717727879724 = new JSONObject(); + _widget_1717727879724.put("value", "否"); + datas.put("_widget_1729302240116", _widget_1717727879724); + + JSONObject _widget_1717727879725 = new JSONObject(); + _widget_1717727879725.put("value", ""); + datas.put("_widget_1729302240117", _widget_1717727879725); + + JSONObject _widget_1717727492391 = new JSONObject(); + _widget_1717727492391.put("value", ""); + datas.put("_widget_1724117232219", _widget_1717727492391); + + + JSONObject _widget_1718157291962 = new JSONObject(); + _widget_1718157291962.put("value", ""); + datas.put("_widget_1724396148712", _widget_1718157291962); + + + jsonObject2.put("data", datas); + + + String jsonString1 = jsonObject2.toJSONString(); + log.info("我是更新参数 " + jsonString1); + V5utils.updatas(jsonString1); + lists.clear(); + } } + + + flag = false; + + } else { + for (Object o : data) { + JSONObject test = (JSONObject) o; + String string = test.getString("_id"); + lists.add(string); + id = string; + if (lists.size() == 100) { + JSONObject jsonObject2 = new JSONObject(); + jsonObject2.put("app_id", "665ea38ef718f1edccf7b20d"); + jsonObject2.put("entry_id", "695c7a4c2b2ce8cf415cc0e6"); + jsonObject2.put("data_ids", lists); + JSONObject datas = new JSONObject(); + + JSONObject _widget_1717727879724 = new JSONObject(); + _widget_1717727879724.put("value", "否"); + datas.put("_widget_1729302240116", _widget_1717727879724); + + JSONObject _widget_1717727879725 = new JSONObject(); + _widget_1717727879725.put("value", ""); + datas.put("_widget_1729302240117", _widget_1717727879725); + + JSONObject _widget_1717727492391 = new JSONObject(); + _widget_1717727492391.put("value", ""); + datas.put("_widget_1724117232219", _widget_1717727492391); + + + JSONObject _widget_1718157291962 = new JSONObject(); + _widget_1718157291962.put("value", ""); + datas.put("_widget_1724396148712", _widget_1718157291962); + + jsonObject2.put("data", datas); + + + String jsonString1 = jsonObject2.toJSONString(); + log.info("我是更新参数 " + jsonString1); + V5utils.updatas(jsonString1); + lists.clear(); + } + } + + } } + JSONObject jsonObject2 = new JSONObject(); + jsonObject2.put("app_id", "665ea38ef718f1edccf7b20d"); + jsonObject2.put("entry_id", "68a7c86a0499bc38086d05ce"); + jsonObject2.put("data_ids", lists); + JSONObject datas = new JSONObject(); + + + JSONObject _widget_1717727879724 = new JSONObject(); + _widget_1717727879724.put("value", "否"); + datas.put("_widget_1729302240116", _widget_1717727879724); + + JSONObject _widget_1717727879725 = new JSONObject(); + _widget_1717727879725.put("value", ""); + datas.put("_widget_1729302240117", _widget_1717727879725); + + JSONObject _widget_1717727492391 = new JSONObject(); + _widget_1717727492391.put("value", ""); + datas.put("_widget_1724117232219", _widget_1717727492391); + + + JSONObject _widget_1718157291962 = new JSONObject(); + _widget_1718157291962.put("value", ""); + datas.put("_widget_1724396148712", _widget_1718157291962); + + jsonObject2.put("data", datas); + + + String jsonString1 = jsonObject2.toJSONString(); + log.info("我是更新参数 " + jsonString1); + V5utils.updatas(jsonString1); + lists.clear(); } - JSONObject jsonObject2 = new JSONObject(); - jsonObject2.put("app_id", "665ea38ef718f1edccf7b20d"); - jsonObject2.put("entry_id", "696aed462b2ce8cf410b8b6f"); - jsonObject2.put("data_ids", lists); - JSONObject datas = new JSONObject(); - - - JSONObject _widget_1717727879724 = new JSONObject(); - _widget_1717727879724.put("value", "否"); - datas.put("_widget_1729302240116", _widget_1717727879724); - - JSONObject _widget_1717727879725 = new JSONObject(); - _widget_1717727879725.put("value", ""); - datas.put("_widget_1729302240117", _widget_1717727879725); - - JSONObject _widget_1717727492391 = new JSONObject(); - _widget_1717727492391.put("value", ""); - datas.put("_widget_1724117232219", _widget_1717727492391); - - - JSONObject _widget_1718157291962 = new JSONObject(); - _widget_1718157291962.put("value", ""); - datas.put("_widget_1724396148712", _widget_1718157291962); - - jsonObject2.put("data", datas); - - - String jsonString1 = jsonObject2.toJSONString(); - log.info("我是更新参数 " + jsonString1); - V5utils.updatas(jsonString1); - lists.clear(); - } - //每天置空前置空 - public static void main(String[] args) { + + + + //每天置空前置空 + @Scheduled(cron = "0 0 23 * * ?") + public void main3() { Boolean flag = true; @@ -688,7 +693,7 @@ public class LyZhiKong { try { JSONObject jsonObject = new JSONObject(); jsonObject.put("app_id", "665ea38ef718f1edccf7b20d"); - jsonObject.put("entry_id", "696aed462b2ce8cf410b8b6f"); + jsonObject.put("entry_id", "68a7c86a0499bc38086d05ce"); jsonObject.put("limit", 1); JSONArray fields = new JSONArray(); fields.add("_widget_1717727492391"); @@ -725,7 +730,7 @@ public class LyZhiKong { JSONObject jsonObject1123 = new JSONObject(); jsonObject1123.put("app_id", "665ea38ef718f1edccf7b20d"); - jsonObject1123.put("entry_id", "696aed462b2ce8cf410b8b6f"); + jsonObject1123.put("entry_id", "68a7c86a0499bc38086d05ce"); jsonObject1123.put("data_id", id); JSONObject jsonObject2 = new JSONObject(); @@ -757,4 +762,12 @@ public class LyZhiKong { } } + + + + private boolean isLastDayOfMonth() { + java.time.LocalDate today = java.time.LocalDate.now(); + java.time.LocalDate tomorrow = today.plusDays(1); + return tomorrow.getDayOfMonth() == 1; + } } diff --git a/src/main/java/com/example/sso/newcontroller/ZhiKongDelete.java b/src/main/java/com/example/sso/newcontroller/ZhiKongDelete.java index d7451be..d3a9beb 100644 --- a/src/main/java/com/example/sso/newcontroller/ZhiKongDelete.java +++ b/src/main/java/com/example/sso/newcontroller/ZhiKongDelete.java @@ -1,9 +1,13 @@ package com.example.sso.newcontroller; import com.example.sso.newdao.*; +import org.springframework.scheduling.annotation.Scheduled; +import org.springframework.stereotype.Component; +@Component public class ZhiKongDelete { - public static void main(String[] args) { + @Scheduled(cron = "0 0 15 * * ?") + public void main() { DeleteZhiKong.main1(); DeleteZhiKong1.main2(); DeleteZhiKong2.main3(); diff --git a/src/main/java/com/example/sso/test/A.java b/src/main/java/com/example/sso/test/A.java index 607310d..193ceef 100644 --- a/src/main/java/com/example/sso/test/A.java +++ b/src/main/java/com/example/sso/test/A.java @@ -3,55 +3,503 @@ package com.example.sso.test; import com.alibaba.fastjson.JSON; 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.TimeUtil; import com.example.sso.util.V5utils; +import lombok.extern.slf4j.Slf4j; import org.springframework.scheduling.annotation.Scheduled; import java.time.Duration; import java.time.LocalDateTime; import java.time.format.DateTimeFormatter; - +import java.util.ArrayList; +import java.util.List; +@Slf4j public class A { - public static void main(String[] args){ + public static void main(String[] args) { String yue1 = TimeUtil.yue(); JSONObject yue = new JSONObject(); - yue.put("app_id","665ea38ef718f1edccf7b20d"); - yue.put("entry_id","68ac12b80499bc3808905065"); - yue.put("limit",1); + yue.put("app_id", "665ea38ef718f1edccf7b20d"); + yue.put("entry_id", "68ac12b80499bc3808905065"); + yue.put("limit", 1); JSONArray fields1 = new JSONArray(); - fields1.add("dpsj"); - yue.put("fields",fields1); + fields1.add("lysjsj"); + yue.put("fields", fields1); JSONObject filter = new JSONObject(); - filter.put("rel","and"); + filter.put("rel", "and"); JSONArray cond = new JSONArray(); JSONObject oo = new JSONObject(); - oo.put("field","_widget_1756107451181"); - oo.put("method","eq"); + oo.put("field", "_widget_1756107451181"); + oo.put("method", "eq"); JSONArray ii = new JSONArray(); ii.add(yue1); - oo.put("method","eq"); - oo.put("value",ii); + oo.put("method", "eq"); + oo.put("value", ii); cond.add(oo); - filter.put("cond",cond); - yue.put("filter",filter); + filter.put("cond", cond); + yue.put("filter", filter); String jsonString2 = yue.toJSONString(); String list1 = V5utils.list(jsonString2); System.out.println(list1); JSONObject jsonObject11 = JSON.parseObject(list1); JSONArray data1 = jsonObject11.getJSONArray("data"); String qw = ""; - for (Object object : data1){ + for (Object object : data1) { JSONObject pp = (JSONObject) object; - qw = pp.getString("dpsj"); + qw = pp.getString("lysjsj"); } System.out.println(qw); + Boolean flag = true; + String id = ""; + List lists = new ArrayList<>(); + while (flag) { + + JSONObject jsonObject = new JSONObject(); + jsonObject.put("app_id", "665ea38ef718f1edccf7b20d"); + jsonObject.put("entry_id", "696aed462b2ce8cf410b8b6f"); + jsonObject.put("limit", 10000); + JSONArray fields = new JSONArray(); + fields.add("createTime"); + jsonObject.put("fields", fields); + if (!id.equals("")) { + jsonObject.put("data_id", id); + } + + String jsonString = jsonObject.toJSONString(); + String list = V5utils.list(jsonString); + JSONObject jsonObject1 = JSON.parseObject(list); + JSONArray data = jsonObject1.getJSONArray("data"); + + + int size = data.size(); + log.info("我是长度 " + size); + + + if (size < 10000) { + for (Object o : data) { + JSONObject test = (JSONObject) o; + String string = test.getString("_id"); + lists.add(string); + if (lists.size() == 100) { + JSONObject jsonObject2 = new JSONObject(); + jsonObject2.put("app_id", "665ea38ef718f1edccf7b20d"); + jsonObject2.put("entry_id", "696aed462b2ce8cf410b8b6f"); + jsonObject2.put("data_ids", lists); + JSONObject datas = new JSONObject(); + + JSONObject _widget_1717666304762 = new JSONObject(); + _widget_1717666304762.put("value", ""); + datas.put("_widget_1717666304762", _widget_1717666304762); + + JSONObject _widget_1717666304763 = new JSONObject(); + _widget_1717666304763.put("value", ""); + datas.put("_widget_1717666304763", _widget_1717666304763); + + JSONObject _widget_1717666304765 = new JSONObject(); + _widget_1717666304765.put("value", ""); + datas.put("_widget_1717666304765", _widget_1717666304765); + + JSONObject _widget_1717666304764 = new JSONObject(); + _widget_1717666304764.put("value", ""); + datas.put("_widget_1717666304764", _widget_1717666304764); + + JSONObject _widget_1718086086807 = new JSONObject(); + _widget_1718086086807.put("value", 0); + datas.put("_widget_1718086086807", _widget_1718086086807); + + JSONObject _widget_1718086086808 = new JSONObject(); + _widget_1718086086808.put("value", 0); + datas.put("_widget_1718086086808", _widget_1718086086808); + + JSONObject _widget_1718086086810 = new JSONObject(); + _widget_1718086086810.put("value", 0); + datas.put("_widget_1718086086810", _widget_1718086086810); + + JSONObject _widget_1718086086811 = new JSONObject(); + _widget_1718086086811.put("value", 0); + datas.put("_widget_1718086086811", _widget_1718086086811); + + JSONObject _widget_1718086086812 = new JSONObject(); + _widget_1718086086812.put("value", 0); + datas.put("_widget_1718086086812", _widget_1718086086812); + + JSONObject _widget_1718086086813 = new JSONObject(); + _widget_1718086086813.put("value", 0); + datas.put("_widget_1718086086813", _widget_1718086086813); + + JSONObject _widget_1718086086814 = new JSONObject(); + _widget_1718086086814.put("value", 0); + datas.put("_widget_1718086086814", _widget_1718086086814); + + JSONObject _widget_1718347956660 = new JSONObject(); + _widget_1718347956660.put("value", ""); + datas.put("_widget_1718347956660", _widget_1718347956660); + + JSONObject _widget_1718157395046 = new JSONObject(); + _widget_1718157395046.put("value", 0); + datas.put("_widget_1718157395046", _widget_1718157395046); + + JSONObject _widget_1718098344621 = new JSONObject(); + _widget_1718098344621.put("value", 0); + datas.put("_widget_1718098344621", _widget_1718098344621); + + JSONObject _widget_1724396148701 = new JSONObject(); + _widget_1724396148701.put("value", 0); + datas.put("_widget_1724396148701", _widget_1724396148701); + + JSONObject _widget_1724396148706 = new JSONObject(); + _widget_1724396148706.put("value", 0); + datas.put("_widget_1724396148706", _widget_1724396148706); + + JSONObject _widget_1724396148707 = new JSONObject(); + _widget_1724396148707.put("value", 0); + datas.put("_widget_1724396148707", _widget_1724396148707); + + JSONObject _widget_1724396148708 = new JSONObject(); + _widget_1724396148708.put("value", 0); + datas.put("_widget_1724396148708", _widget_1724396148708); + + JSONObject _widget_1724396148709 = new JSONObject(); + _widget_1724396148709.put("value", 0); + datas.put("_widget_1724396148709", _widget_1724396148709); + + JSONObject _widget_1724396148710 = new JSONObject(); + _widget_1724396148710.put("value", 0); + datas.put("_widget_1724396148710", _widget_1724396148710); + + JSONObject _widget_1724396148711 = new JSONObject(); + _widget_1724396148711.put("value", 0); + datas.put("_widget_1724396148711", _widget_1724396148711); + + JSONObject _widget_1718097576151 = new JSONObject(); + _widget_1718097576151.put("value", 0); + datas.put("_widget_1718097576151", _widget_1718097576151); + + JSONObject _widget_1718097576152 = new JSONObject(); + _widget_1718097576152.put("value", ""); + datas.put("_widget_1718097576152", _widget_1718097576152); + + JSONObject _widget_1717727879724 = new JSONObject(); + _widget_1717727879724.put("value", ""); + datas.put("_widget_1717727879724", _widget_1717727879724); + + JSONObject _widget_1717727879725 = new JSONObject(); + _widget_1717727879725.put("value", ""); + datas.put("_widget_1717727879725", _widget_1717727879725); + + JSONObject _widget_1717727492391 = new JSONObject(); + _widget_1717727492391.put("value", "是"); + datas.put("_widget_1717727492391", _widget_1717727492391); + + + JSONObject _widget_1718157291962 = new JSONObject(); + _widget_1718157291962.put("value", ""); + datas.put("_widget_1718157291962", _widget_1718157291962); + + JSONObject _widget_1717727492392 = new JSONObject(); + _widget_1717727492392.put("value", qw); + datas.put("_widget_1717727492392", _widget_1717727492392); + + JSONObject a = new JSONObject(); + a.put("value", ""); + datas.put("a", a); + + jsonObject2.put("data", datas); + + + String jsonString1 = jsonObject2.toJSONString(); + log.info("我是更新参数 " + jsonString1); + V5utils.updatas(jsonString1); + lists.clear(); + } + } + + + flag = false; + + } else { + for (Object o : data) { + JSONObject test = (JSONObject) o; + String string = test.getString("_id"); + lists.add(string); + id = string; + if (lists.size() == 100) { + JSONObject jsonObject2 = new JSONObject(); + jsonObject2.put("app_id", "665ea38ef718f1edccf7b20d"); + jsonObject2.put("entry_id", "695c7a4c2b2ce8cf415cc0e6"); + jsonObject2.put("data_ids", lists); + JSONObject datas = new JSONObject(); + + JSONObject _widget_1717666304762 = new JSONObject(); + _widget_1717666304762.put("value", ""); + datas.put("_widget_1717666304762", _widget_1717666304762); + + JSONObject _widget_1717666304763 = new JSONObject(); + _widget_1717666304763.put("value", ""); + datas.put("_widget_1717666304763", _widget_1717666304763); + + JSONObject _widget_1717666304765 = new JSONObject(); + _widget_1717666304765.put("value", ""); + datas.put("_widget_1717666304765", _widget_1717666304765); + + JSONObject _widget_1717666304764 = new JSONObject(); + _widget_1717666304764.put("value", ""); + datas.put("_widget_1717666304764", _widget_1717666304764); + + JSONObject _widget_1718086086807 = new JSONObject(); + _widget_1718086086807.put("value", 0); + datas.put("_widget_1718086086807", _widget_1718086086807); + + JSONObject _widget_1718086086808 = new JSONObject(); + _widget_1718086086808.put("value", 0); + datas.put("_widget_1718086086808", _widget_1718086086808); + + JSONObject _widget_1718086086810 = new JSONObject(); + _widget_1718086086810.put("value", 0); + datas.put("_widget_1718086086810", _widget_1718086086810); + + JSONObject _widget_1718086086811 = new JSONObject(); + _widget_1718086086811.put("value", 0); + datas.put("_widget_1718086086811", _widget_1718086086811); + + JSONObject _widget_1718086086812 = new JSONObject(); + _widget_1718086086812.put("value", 0); + datas.put("_widget_1718086086812", _widget_1718086086812); + + JSONObject _widget_1718086086813 = new JSONObject(); + _widget_1718086086813.put("value", 0); + datas.put("_widget_1718086086813", _widget_1718086086813); + + JSONObject _widget_1718086086814 = new JSONObject(); + _widget_1718086086814.put("value", 0); + datas.put("_widget_1718086086814", _widget_1718086086814); + + JSONObject _widget_1718347956660 = new JSONObject(); + _widget_1718347956660.put("value", ""); + datas.put("_widget_1718347956660", _widget_1718347956660); + + JSONObject _widget_1718157395046 = new JSONObject(); + _widget_1718157395046.put("value", 0); + datas.put("_widget_1718157395046", _widget_1718157395046); + + JSONObject _widget_1718098344621 = new JSONObject(); + _widget_1718098344621.put("value", 0); + datas.put("_widget_1718098344621", _widget_1718098344621); + + JSONObject _widget_1724396148701 = new JSONObject(); + _widget_1724396148701.put("value", 0); + datas.put("_widget_1724396148701", _widget_1724396148701); + + JSONObject _widget_1724396148706 = new JSONObject(); + _widget_1724396148706.put("value", 0); + datas.put("_widget_1724396148706", _widget_1724396148706); + + JSONObject _widget_1724396148707 = new JSONObject(); + _widget_1724396148707.put("value", 0); + datas.put("_widget_1724396148707", _widget_1724396148707); + + JSONObject _widget_1724396148708 = new JSONObject(); + _widget_1724396148708.put("value", 0); + datas.put("_widget_1724396148708", _widget_1724396148708); + + JSONObject _widget_1724396148709 = new JSONObject(); + _widget_1724396148709.put("value", 0); + datas.put("_widget_1724396148709", _widget_1724396148709); + + JSONObject _widget_1724396148710 = new JSONObject(); + _widget_1724396148710.put("value", 0); + datas.put("_widget_1724396148710", _widget_1724396148710); + + JSONObject _widget_1724396148711 = new JSONObject(); + _widget_1724396148711.put("value", 0); + datas.put("_widget_1724396148711", _widget_1724396148711); + + JSONObject _widget_1718097576151 = new JSONObject(); + _widget_1718097576151.put("value", 0); + datas.put("_widget_1718097576151", _widget_1718097576151); + + JSONObject _widget_1718097576152 = new JSONObject(); + _widget_1718097576152.put("value", ""); + datas.put("_widget_1718097576152", _widget_1718097576152); + + JSONObject _widget_1717727879724 = new JSONObject(); + _widget_1717727879724.put("value", ""); + datas.put("_widget_1717727879724", _widget_1717727879724); + + JSONObject _widget_1717727879725 = new JSONObject(); + _widget_1717727879725.put("value", ""); + datas.put("_widget_1717727879725", _widget_1717727879725); + + JSONObject _widget_1717727492391 = new JSONObject(); + _widget_1717727492391.put("value", "是"); + datas.put("_widget_1717727492391", _widget_1717727492391); + + + JSONObject _widget_1718157291962 = new JSONObject(); + _widget_1718157291962.put("value", ""); + datas.put("_widget_1718157291962", _widget_1718157291962); + + JSONObject _widget_1717727492392 = new JSONObject(); + _widget_1717727492392.put("value", qw); + datas.put("_widget_1717727492392", _widget_1717727492392); + + + JSONObject a = new JSONObject(); + a.put("value", ""); + datas.put("a", a); + + + jsonObject2.put("data", datas); + + + String jsonString1 = jsonObject2.toJSONString(); + log.info("我是更新参数 " + jsonString1); + V5utils.updatas(jsonString1); + lists.clear(); + } + } + + + } + + + } + + JSONObject jsonObject2 = new JSONObject(); + jsonObject2.put("app_id", "665ea38ef718f1edccf7b20d"); + jsonObject2.put("entry_id", "696aed462b2ce8cf410b8b6f"); + jsonObject2.put("data_ids", lists); + JSONObject datas = new JSONObject(); + + JSONObject _widget_1717666304762 = new JSONObject(); + _widget_1717666304762.put("value", ""); + datas.put("_widget_1717666304762", _widget_1717666304762); + + JSONObject _widget_1717666304763 = new JSONObject(); + _widget_1717666304763.put("value", ""); + datas.put("_widget_1717666304763", _widget_1717666304763); + + JSONObject _widget_1717666304765 = new JSONObject(); + _widget_1717666304765.put("value", ""); + datas.put("_widget_1717666304765", _widget_1717666304765); + + JSONObject _widget_1717666304764 = new JSONObject(); + _widget_1717666304764.put("value", ""); + datas.put("_widget_1717666304764", _widget_1717666304764); + + JSONObject _widget_1718086086807 = new JSONObject(); + _widget_1718086086807.put("value", 0); + datas.put("_widget_1718086086807", _widget_1718086086807); + + JSONObject _widget_1718086086808 = new JSONObject(); + _widget_1718086086808.put("value", 0); + datas.put("_widget_1718086086808", _widget_1718086086808); + + JSONObject _widget_1718086086810 = new JSONObject(); + _widget_1718086086810.put("value", 0); + datas.put("_widget_1718086086810", _widget_1718086086810); + + JSONObject _widget_1718086086811 = new JSONObject(); + _widget_1718086086811.put("value", 0); + datas.put("_widget_1718086086811", _widget_1718086086811); + + JSONObject _widget_1718086086812 = new JSONObject(); + _widget_1718086086812.put("value", 0); + datas.put("_widget_1718086086812", _widget_1718086086812); + + JSONObject _widget_1718086086813 = new JSONObject(); + _widget_1718086086813.put("value", 0); + datas.put("_widget_1718086086813", _widget_1718086086813); + + JSONObject _widget_1718086086814 = new JSONObject(); + _widget_1718086086814.put("value", 0); + datas.put("_widget_1718086086814", _widget_1718086086814); + + JSONObject _widget_1718347956660 = new JSONObject(); + _widget_1718347956660.put("value", ""); + datas.put("_widget_1718347956660", _widget_1718347956660); + + JSONObject _widget_1718157395046 = new JSONObject(); + _widget_1718157395046.put("value", 0); + datas.put("_widget_1718157395046", _widget_1718157395046); + + JSONObject _widget_1718098344621 = new JSONObject(); + _widget_1718098344621.put("value", 0); + datas.put("_widget_1718098344621", _widget_1718098344621); + + JSONObject _widget_1724396148701 = new JSONObject(); + _widget_1724396148701.put("value", 0); + datas.put("_widget_1724396148701", _widget_1724396148701); + + JSONObject _widget_1724396148706 = new JSONObject(); + _widget_1724396148706.put("value", 0); + datas.put("_widget_1724396148706", _widget_1724396148706); + + JSONObject _widget_1724396148707 = new JSONObject(); + _widget_1724396148707.put("value", 0); + datas.put("_widget_1724396148707", _widget_1724396148707); + + JSONObject _widget_1724396148708 = new JSONObject(); + _widget_1724396148708.put("value", 0); + datas.put("_widget_1724396148708", _widget_1724396148708); + + JSONObject _widget_1724396148709 = new JSONObject(); + _widget_1724396148709.put("value", 0); + datas.put("_widget_1724396148709", _widget_1724396148709); + + JSONObject _widget_1724396148710 = new JSONObject(); + _widget_1724396148710.put("value", 0); + datas.put("_widget_1724396148710", _widget_1724396148710); + + JSONObject _widget_1724396148711 = new JSONObject(); + _widget_1724396148711.put("value", 0); + datas.put("_widget_1724396148711", _widget_1724396148711); + + JSONObject _widget_1718097576151 = new JSONObject(); + _widget_1718097576151.put("value", 0); + datas.put("_widget_1718097576151", _widget_1718097576151); + + JSONObject _widget_1718097576152 = new JSONObject(); + _widget_1718097576152.put("value", ""); + datas.put("_widget_1718097576152", _widget_1718097576152); + + JSONObject _widget_1717727879724 = new JSONObject(); + _widget_1717727879724.put("value", ""); + datas.put("_widget_1717727879724", _widget_1717727879724); + + JSONObject _widget_1717727879725 = new JSONObject(); + _widget_1717727879725.put("value", ""); + datas.put("_widget_1717727879725", _widget_1717727879725); + + JSONObject _widget_1717727492391 = new JSONObject(); + _widget_1717727492391.put("value", "是"); + datas.put("_widget_1717727492391", _widget_1717727492391); + + + JSONObject _widget_1718157291962 = new JSONObject(); + _widget_1718157291962.put("value", ""); + datas.put("_widget_1718157291962", _widget_1718157291962); + + JSONObject _widget_1717727492392 = new JSONObject(); + _widget_1717727492392.put("value", qw); + datas.put("_widget_1717727492392", _widget_1717727492392); + + JSONObject a = new JSONObject(); + a.put("value", ""); + datas.put("a", a); + + jsonObject2.put("data", datas); + + + String jsonString1 = jsonObject2.toJSONString(); + log.info("我是更新参数 " + jsonString1); + V5utils.updatas(jsonString1); + } } diff --git a/src/main/java/com/example/sso/testbao/KeCheng.java b/src/main/java/com/example/sso/testbao/KeCheng.java deleted file mode 100644 index 900a385..0000000 --- a/src/main/java/com/example/sso/testbao/KeCheng.java +++ /dev/null @@ -1,82 +0,0 @@ -package com.example.sso.testbao; - -import com.alibaba.fastjson.JSONArray; -import com.alibaba.fastjson.JSONObject; -import com.example.sso.dao.JiChuBiaoDao; -import com.example.sso.dao.KeChengWeiWanchengDao; -import com.example.sso.util.V5utils; - -public class KeCheng { - public static 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 = KeChengWeiWanchengDao.jsonArray(idCard); - if (jsonArray1.size() != 0 && jsonArray1 != null){ - for (Object object : jsonArray1){ - JSONObject jsonObject = (JSONObject) object; - String widget_1718085460707 = jsonObject.getString("_widget_1718085460707"); - Integer aDouble = jsonObject.getInteger("_widget_1718086369844"); - Integer aDouble2 = jsonObject.getInteger("_widget_1718086369845"); - Integer aDouble1 = jsonObject.getInteger("_widget_1718086369846"); - Integer aDouble3 = jsonObject.getInteger("_widget_1718086369847"); - - 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_1717666304763 = new JSONObject(); - _widget_1717666304763.put("value",widget_1718085460707); - jsonObject2.put("_widget_1717666304763",_widget_1717666304763); - - JSONObject _widget_1718086086811 = new JSONObject(); - _widget_1718086086811.put("value",aDouble); - jsonObject2.put("_widget_1718086086811",_widget_1718086086811); - - JSONObject _widget_1718086086812 = new JSONObject(); - _widget_1718086086812.put("value",aDouble2); - jsonObject2.put("_widget_1718086086812",_widget_1718086086812); - - JSONObject _widget_1718086086813 = new JSONObject(); - _widget_1718086086813.put("value",aDouble1); - jsonObject2.put("_widget_1718086086813",_widget_1718086086813); - - JSONObject _widget_1718086086814 = new JSONObject(); - _widget_1718086086814.put("value",aDouble3); - jsonObject2.put("_widget_1718086086814",_widget_1718086086814); - - - - - 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); - - jsonObject1.put("data",jsonObject2); - - String jsonString = jsonObject1.toJSONString(); - String updata = V5utils.updata(jsonString); - System.out.println(updata); - - - } - } - - - } - } -} diff --git a/src/main/java/com/example/sso/testbao/Run.java b/src/main/java/com/example/sso/testbao/Run.java deleted file mode 100644 index e485ead..0000000 --- a/src/main/java/com/example/sso/testbao/Run.java +++ /dev/null @@ -1,123 +0,0 @@ -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(); - } -} diff --git a/src/main/java/com/example/sso/testbao/YuQi.java b/src/main/java/com/example/sso/testbao/YuQi.java deleted file mode 100644 index b54f7d7..0000000 --- a/src/main/java/com/example/sso/testbao/YuQi.java +++ /dev/null @@ -1,77 +0,0 @@ -package com.example.sso.testbao; - -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; - -public class YuQi { - public static 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); - - - } - } - - - } - } -}