代码说明

This commit is contained in:
lijiazhuo
2026-01-30 15:26:27 +08:00
parent 78afd900d4
commit 528b638ff4
14 changed files with 825 additions and 4945 deletions

View File

@ -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();

View File

@ -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<String> lists = new ArrayList<>();
while (flag) {
Boolean flag = true;
String id = "";
List<String> 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;
}
}

View File

@ -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();

View File

@ -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<String> lists = new ArrayList<>();
while (flag) {
Boolean flag = true;
String id = "";
List<String> 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;
}
}

View File

@ -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();