Files
guolvtingchefei/src/main/java/com/example/sso/dao/TingCheFei.java
2025-10-17 13:55:09 +08:00

1025 lines
33 KiB
Java

package com.example.sso.dao;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.example.sso.util.TimeUtil;
import com.example.sso.util.V5utils;
import lombok.extern.slf4j.Slf4j;
import org.apache.poi.ss.usermodel.Row;
import org.apache.poi.ss.usermodel.Sheet;
import org.apache.poi.ss.usermodel.Workbook;
import org.apache.poi.ss.usermodel.WorkbookFactory;
import org.hibernate.validator.internal.util.logging.Log;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
@Slf4j
public class TingCheFei {
public static void gl() throws IOException {
// QuChong.qu();
//KIllJinCheng.kill();
String desktopPath = System.getProperty("user.home") + "/Desktop/";
// 要移动的Excel文件名
String fileName = "国旅停车费.xlsx";
String excelFilePath = desktopPath + fileName;
JSONArray jsonArray = new JSONArray();
FileInputStream inputStream = new FileInputStream(new File(excelFilePath));
Workbook workbook = WorkbookFactory.create(inputStream);
Sheet sheet = workbook.getSheetAt(0); // 获取第一个工作表
// 迭代行(从第二行开始,因为第一行通常是标题)
for (int rowIndex = 0; rowIndex <= sheet.getLastRowNum(); rowIndex++) {
Row row = sheet.getRow(rowIndex);
if (row != null) {
JSONObject jsonObject = new JSONObject();
// 读取每列数据
String chepai = row.getCell(0).getStringCellValue();
jsonObject.put("chepai", chepai);
String chengqu = row.getCell(1).getStringCellValue();
jsonObject.put("chengqu", chengqu);
String place = row.getCell(2).getStringCellValue();
jsonObject.put("place", place);
try {
String DATA = row.getCell(3).getStringCellValue();
jsonObject.put("DATA", DATA);
} catch (Exception e) {
System.out.println("异常");
jsonObject.put("DATA", "2024-04-22 04:06");
}
try {
String DATAS = row.getCell(4).getStringCellValue();
jsonObject.put("DATAS", DATAS);
} catch (Exception e) {
System.out.println("异常");
jsonObject.put("DATAS", "2024-04-22 04:06");
}
String time = row.getCell(5).getStringCellValue();
jsonObject.put("time", time);
String jine = row.getCell(6).getStringCellValue();
jsonObject.put("jine", jine);
jsonArray.add(jsonObject);
}
}
workbook.close();
String nowmonth = TimeUtil.nowmonth();
JSONArray datasall = new JSONArray();
JSONObject jsonObject = new JSONObject();
jsonObject.put("app_id", "667cc6dbaa923599ad735201");
jsonObject.put("entry_id", "67af1a1a87d6def2232bec44");
if (jsonArray.size() > 0) {
for (Object o : jsonArray) {
JSONObject te = (JSONObject) o;
String chepai = te.getString("chepai");
String chengqu = te.getString("chengqu");
String place = te.getString("place");
String DATAs = te.getString("DATA");
String DATA = TimeUtil.fronteight(DATAs);
String datas = te.getString("DATAS");
String DATAss = TimeUtil.fronteight(datas);
String time = te.getString("time");
String result = time.replace("分钟", "");
int times = Integer.parseInt(result);
String jine = te.getString("jine");
String replace = jine.replace("", "");
double jines = Double.parseDouble(replace);
// CaiId.main2(chepai);
// 新增数据至简道云
JSONObject data = new JSONObject();
JSONObject chepaihaoma = new JSONObject();
chepaihaoma.put("value", chepai);
data.put("chepaihaoma", chepaihaoma);
JSONObject xiaqu = new JSONObject();
xiaqu.put("value", chengqu);
data.put("xiaqu", xiaqu);
JSONObject daolumingcheng = new JSONObject();
daolumingcheng.put("value", place);
data.put("daolumingcheng", daolumingcheng);
JSONObject ruchangshijian = new JSONObject();
ruchangshijian.put("value", DATA);
data.put("ruchangshijian", ruchangshijian);
JSONObject chuchangshijian = new JSONObject();
chuchangshijian.put("value", DATAss);
data.put("chuchangshijian", chuchangshijian);
JSONObject tingcheshichang = new JSONObject();
tingcheshichang.put("value", times);
data.put("tingcheshichang", tingcheshichang);
JSONObject dingdanjine = new JSONObject();
dingdanjine.put("value", jines);
data.put("dingdanjine", dingdanjine);
JSONObject jigou = new JSONObject();
jigou.put("value", "国旅");
data.put("jigou", jigou);
datasall.add(data);
if (datasall.size() == 100) {
jsonObject.put("data_list", datasall);
String jsonString = jsonObject.toJSONString();
V5utils.adds(jsonString);
datasall = new JSONArray();
}
}
jsonObject.put("data_list", datasall);
String jsonString = jsonObject.toJSONString();
// log.info("我是参数+++ " + jsonString);
V5utils.adds(jsonString);
}
}
public static void jinjian() throws IOException {
// QuChong.qu();
//KIllJinCheng.kill();
String desktopPath = System.getProperty("user.home") + "/Desktop/";
// 要移动的Excel文件名
String fileName = "金建停车费.xlsx";
String excelFilePath = desktopPath + fileName;
JSONArray jsonArray = new JSONArray();
FileInputStream inputStream = new FileInputStream(new File(excelFilePath));
Workbook workbook = WorkbookFactory.create(inputStream);
Sheet sheet = workbook.getSheetAt(0); // 获取第一个工作表
// 迭代行(从第二行开始,因为第一行通常是标题)
for (int rowIndex = 0; rowIndex <= sheet.getLastRowNum(); rowIndex++) {
Row row = sheet.getRow(rowIndex);
if (row != null) {
JSONObject jsonObject = new JSONObject();
// 读取每列数据
String chepai = row.getCell(0).getStringCellValue();
jsonObject.put("chepai", chepai);
String chengqu = row.getCell(1).getStringCellValue();
jsonObject.put("chengqu", chengqu);
String place = row.getCell(2).getStringCellValue();
jsonObject.put("place", place);
try {
String DATA = row.getCell(3).getStringCellValue();
jsonObject.put("DATA", DATA);
} catch (Exception e) {
System.out.println("异常");
jsonObject.put("DATA", "2024-04-22 04:06");
}
try {
String DATAS = row.getCell(4).getStringCellValue();
jsonObject.put("DATAS", DATAS);
} catch (Exception e) {
System.out.println("异常");
jsonObject.put("DATAS", "2024-04-22 04:06");
}
String time = row.getCell(5).getStringCellValue();
jsonObject.put("time", time);
String jine = row.getCell(6).getStringCellValue();
jsonObject.put("jine", jine);
jsonArray.add(jsonObject);
}
}
workbook.close();
JSONObject jsonObject = new JSONObject();
jsonObject.put("app_id", "628eeaace7f28c00089a60cc");
jsonObject.put("entry_id", "67b5b486860ce5dac67895e9");
String nowmonth = TimeUtil.nowmonth();
JSONArray datasall = new JSONArray();
if (jsonArray.size() > 0) {
// DeleteAall.DELzy("金建");
for (Object o : jsonArray) {
JSONObject te = (JSONObject) o;
String chepai = te.getString("chepai");
String chengqu = te.getString("chengqu");
String place = te.getString("place");
String DATAs = te.getString("DATA");
String DATA = TimeUtil.fronteight(DATAs);
String datas = te.getString("DATAS");
String DATAss = TimeUtil.fronteight(datas);
String time = te.getString("time");
String result = time.replace("分钟", "");
int times = Integer.parseInt(result);
String jine = te.getString("jine");
String replace = jine.replace("", "");
double jines = Double.parseDouble(replace);
// CaiId.main2(chepai);
// 新增数据至简道云
JSONObject data = new JSONObject();
JSONObject chepaihaoma = new JSONObject();
chepaihaoma.put("value", chepai);
data.put("chepaihaoma", chepaihaoma);
JSONObject xiaqu = new JSONObject();
xiaqu.put("value", chengqu);
data.put("xiaqu", xiaqu);
JSONObject daolumingcheng = new JSONObject();
daolumingcheng.put("value", place);
data.put("daolumingcheng", daolumingcheng);
JSONObject ruchangshijian = new JSONObject();
ruchangshijian.put("value", DATA);
data.put("ruchangshijian", ruchangshijian);
JSONObject chuchangshijian = new JSONObject();
chuchangshijian.put("value", DATAss);
data.put("chuchangshijian", chuchangshijian);
JSONObject tingcheshichang = new JSONObject();
tingcheshichang.put("value", times);
data.put("tingcheshichang", tingcheshichang);
JSONObject dingdanjine = new JSONObject();
dingdanjine.put("value", jines);
data.put("dingdanjine", dingdanjine);
JSONObject jigou = new JSONObject();
jigou.put("value", "金建");
data.put("jigou", jigou);
datasall.add(data);
if (datasall.size() == 100) {
jsonObject.put("data_list", datasall);
String jsonString = jsonObject.toJSONString();
V5utils.adds(jsonString);
datasall = new JSONArray();
}
}
jsonObject.put("data_list", datasall);
String jsonString = jsonObject.toJSONString();
//log.info("我是参数+++ " + jsonString);
V5utils.adds(jsonString);
}
}
public static void yinjian() throws IOException {
// QuChong.qu();
//KIllJinCheng.kill();
String desktopPath = System.getProperty("user.home") + "/Desktop/";
// 要移动的Excel文件名
String fileName = "银建停车费.xlsx";
String excelFilePath = desktopPath + fileName;
JSONArray jsonArray = new JSONArray();
FileInputStream inputStream = new FileInputStream(new File(excelFilePath));
Workbook workbook = WorkbookFactory.create(inputStream);
Sheet sheet = workbook.getSheetAt(0); // 获取第一个工作表
// 迭代行(从第二行开始,因为第一行通常是标题)
for (int rowIndex = 0; rowIndex <= sheet.getLastRowNum(); rowIndex++) {
Row row = sheet.getRow(rowIndex);
if (row != null) {
JSONObject jsonObject = new JSONObject();
// 读取每列数据
String chepai = row.getCell(0).getStringCellValue();
jsonObject.put("chepai", chepai);
String chengqu = row.getCell(1).getStringCellValue();
jsonObject.put("chengqu", chengqu);
String place = row.getCell(2).getStringCellValue();
jsonObject.put("place", place);
try {
String DATA = row.getCell(3).getStringCellValue();
jsonObject.put("DATA", DATA);
} catch (Exception e) {
System.out.println("异常");
jsonObject.put("DATA", "2024-04-22 04:06");
}
try {
String DATAS = row.getCell(4).getStringCellValue();
jsonObject.put("DATAS", DATAS);
} catch (Exception e) {
System.out.println("异常");
jsonObject.put("DATAS", "2024-04-22 04:06");
}
String time = row.getCell(5).getStringCellValue();
jsonObject.put("time", time);
String jine = row.getCell(6).getStringCellValue();
jsonObject.put("jine", jine);
jsonArray.add(jsonObject);
}
}
workbook.close();
JSONObject jsonObject = new JSONObject();
jsonObject.put("app_id", "628eeaace7f28c00089a60cc");
jsonObject.put("entry_id", "67b5b486860ce5dac67895e9");
String nowmonth = TimeUtil.nowmonth();
JSONArray datasall = new JSONArray();
if (jsonArray.size() > 0) {
// DeleteAall.DELzy("银建");
for (Object o : jsonArray) {
JSONObject te = (JSONObject) o;
String chepai = te.getString("chepai");
String chengqu = te.getString("chengqu");
String place = te.getString("place");
String DATAs = te.getString("DATA");
String DATA = TimeUtil.fronteight(DATAs);
String datas = te.getString("DATAS");
String DATAss = TimeUtil.fronteight(datas);
String time = te.getString("time");
String result = time.replace("分钟", "");
int times = Integer.parseInt(result);
String jine = te.getString("jine");
String replace = jine.replace("", "");
double jines = Double.parseDouble(replace);
// CaiId.main2(chepai);
// 新增数据至简道云
JSONObject data = new JSONObject();
JSONObject chepaihaoma = new JSONObject();
chepaihaoma.put("value", chepai);
data.put("chepaihaoma", chepaihaoma);
JSONObject xiaqu = new JSONObject();
xiaqu.put("value", chengqu);
data.put("xiaqu", xiaqu);
JSONObject daolumingcheng = new JSONObject();
daolumingcheng.put("value", place);
data.put("daolumingcheng", daolumingcheng);
JSONObject ruchangshijian = new JSONObject();
ruchangshijian.put("value", DATA);
data.put("ruchangshijian", ruchangshijian);
JSONObject chuchangshijian = new JSONObject();
chuchangshijian.put("value", DATAss);
data.put("chuchangshijian", chuchangshijian);
JSONObject tingcheshichang = new JSONObject();
tingcheshichang.put("value", times);
data.put("tingcheshichang", tingcheshichang);
JSONObject dingdanjine = new JSONObject();
dingdanjine.put("value", jines);
data.put("dingdanjine", dingdanjine);
JSONObject jigou = new JSONObject();
jigou.put("value", "银建");
data.put("jigou", jigou);
datasall.add(data);
if (datasall.size() == 100) {
jsonObject.put("data_list", datasall);
String jsonString = jsonObject.toJSONString();
V5utils.adds(jsonString);
datasall = new JSONArray();
}
}
jsonObject.put("data_list", datasall);
String jsonString = jsonObject.toJSONString();
//log.info("我是参数+++ " + jsonString);
V5utils.adds(jsonString);
}
}
public static void jinyinjian() throws IOException {
// QuChong.qu();
//KIllJinCheng.kill();
String desktopPath = System.getProperty("user.home") + "/Desktop/";
// 要移动的Excel文件名
String fileName = "金银建停车费.xlsx";
String excelFilePath = desktopPath + fileName;
JSONArray jsonArray = new JSONArray();
FileInputStream inputStream = new FileInputStream(new File(excelFilePath));
Workbook workbook = WorkbookFactory.create(inputStream);
Sheet sheet = workbook.getSheetAt(0); // 获取第一个工作表
// 迭代行(从第二行开始,因为第一行通常是标题)
for (int rowIndex = 0; rowIndex <= sheet.getLastRowNum(); rowIndex++) {
Row row = sheet.getRow(rowIndex);
if (row != null) {
JSONObject jsonObject = new JSONObject();
// 读取每列数据
String chepai = row.getCell(0).getStringCellValue();
jsonObject.put("chepai", chepai);
String chengqu = row.getCell(1).getStringCellValue();
jsonObject.put("chengqu", chengqu);
String place = row.getCell(2).getStringCellValue();
jsonObject.put("place", place);
try {
String DATA = row.getCell(3).getStringCellValue();
jsonObject.put("DATA", DATA);
} catch (Exception e) {
System.out.println("异常");
jsonObject.put("DATA", "2024-04-22 04:06");
}
try {
String DATAS = row.getCell(4).getStringCellValue();
jsonObject.put("DATAS", DATAS);
} catch (Exception e) {
System.out.println("异常");
jsonObject.put("DATAS", "2024-04-22 04:06");
}
String time = row.getCell(5).getStringCellValue();
jsonObject.put("time", time);
String jine = row.getCell(6).getStringCellValue();
jsonObject.put("jine", jine);
jsonArray.add(jsonObject);
}
}
workbook.close();
JSONObject jsonObject = new JSONObject();
jsonObject.put("app_id", "628eeaace7f28c00089a60cc");
jsonObject.put("entry_id", "67b5b486860ce5dac67895e9");
String nowmonth = TimeUtil.nowmonth();
JSONArray datasall = new JSONArray();
if (jsonArray.size() > 0) {
// DeleteAall.DELzy("金银建");
for (Object o : jsonArray) {
JSONObject te = (JSONObject) o;
String chepai = te.getString("chepai");
String chengqu = te.getString("chengqu");
String place = te.getString("place");
String DATAs = te.getString("DATA");
String DATA = TimeUtil.fronteight(DATAs);
String datas = te.getString("DATAS");
String DATAss = TimeUtil.fronteight(datas);
String time = te.getString("time");
String result = time.replace("分钟", "");
int times = Integer.parseInt(result);
String jine = te.getString("jine");
String replace = jine.replace("", "");
double jines = Double.parseDouble(replace);
// CaiId.main2(chepai);
// 新增数据至简道云
JSONObject data = new JSONObject();
JSONObject chepaihaoma = new JSONObject();
chepaihaoma.put("value", chepai);
data.put("chepaihaoma", chepaihaoma);
JSONObject xiaqu = new JSONObject();
xiaqu.put("value", chengqu);
data.put("xiaqu", xiaqu);
JSONObject daolumingcheng = new JSONObject();
daolumingcheng.put("value", place);
data.put("daolumingcheng", daolumingcheng);
JSONObject ruchangshijian = new JSONObject();
ruchangshijian.put("value", DATA);
data.put("ruchangshijian", ruchangshijian);
JSONObject chuchangshijian = new JSONObject();
chuchangshijian.put("value", DATAss);
data.put("chuchangshijian", chuchangshijian);
JSONObject tingcheshichang = new JSONObject();
tingcheshichang.put("value", times);
data.put("tingcheshichang", tingcheshichang);
JSONObject dingdanjine = new JSONObject();
dingdanjine.put("value", jines);
data.put("dingdanjine", dingdanjine);
JSONObject jigou = new JSONObject();
jigou.put("value", "金银建");
data.put("jigou", jigou);
datasall.add(data);
if (datasall.size() == 100) {
jsonObject.put("data_list", datasall);
String jsonString = jsonObject.toJSONString();
V5utils.adds(jsonString);
datasall = new JSONArray();
}
}
jsonObject.put("data_list", datasall);
String jsonString = jsonObject.toJSONString();
//log.info("我是参数+++ " + jsonString);
V5utils.adds(jsonString);
}
}
public static void huajian() throws IOException {
// QuChong.qu();
//KIllJinCheng.kill();
String desktopPath = System.getProperty("user.home") + "/Desktop/";
// 要移动的Excel文件名
String fileName = "华建停车费.xlsx";
String excelFilePath = desktopPath + fileName;
JSONArray jsonArray = new JSONArray();
FileInputStream inputStream = new FileInputStream(new File(excelFilePath));
Workbook workbook = WorkbookFactory.create(inputStream);
Sheet sheet = workbook.getSheetAt(0); // 获取第一个工作表
// 迭代行(从第二行开始,因为第一行通常是标题)
for (int rowIndex = 0; rowIndex <= sheet.getLastRowNum(); rowIndex++) {
Row row = sheet.getRow(rowIndex);
if (row != null) {
JSONObject jsonObject = new JSONObject();
// 读取每列数据
String chepai = row.getCell(0).getStringCellValue();
jsonObject.put("chepai", chepai);
String chengqu = row.getCell(1).getStringCellValue();
jsonObject.put("chengqu", chengqu);
String place = row.getCell(2).getStringCellValue();
jsonObject.put("place", place);
try {
String DATA = row.getCell(3).getStringCellValue();
jsonObject.put("DATA", DATA);
} catch (Exception e) {
System.out.println("异常");
jsonObject.put("DATA", "2024-04-22 04:06");
}
try {
String DATAS = row.getCell(4).getStringCellValue();
jsonObject.put("DATAS", DATAS);
} catch (Exception e) {
System.out.println("异常");
jsonObject.put("DATAS", "2024-04-22 04:06");
}
String time = row.getCell(5).getStringCellValue();
jsonObject.put("time", time);
String jine = row.getCell(6).getStringCellValue();
jsonObject.put("jine", jine);
jsonArray.add(jsonObject);
}
}
workbook.close();
JSONObject jsonObject = new JSONObject();
jsonObject.put("app_id", "628eeaace7f28c00089a60cc");
jsonObject.put("entry_id", "67b5b486860ce5dac67895e9");
String nowmonth = TimeUtil.nowmonth();
JSONArray datasall = new JSONArray();
if (jsonArray.size() > 0) {
// DeleteAall.DELzy("华建");
for (Object o : jsonArray) {
JSONObject te = (JSONObject) o;
String chepai = te.getString("chepai");
String chengqu = te.getString("chengqu");
String place = te.getString("place");
String DATAs = te.getString("DATA");
String DATA = TimeUtil.fronteight(DATAs);
String datas = te.getString("DATAS");
String DATAss = TimeUtil.fronteight(datas);
String time = te.getString("time");
String result = time.replace("分钟", "");
int times = Integer.parseInt(result);
String jine = te.getString("jine");
String replace = jine.replace("", "");
double jines = Double.parseDouble(replace);
// CaiId.main2(chepai);
// 新增数据至简道云
JSONObject data = new JSONObject();
JSONObject chepaihaoma = new JSONObject();
chepaihaoma.put("value", chepai);
data.put("chepaihaoma", chepaihaoma);
JSONObject xiaqu = new JSONObject();
xiaqu.put("value", chengqu);
data.put("xiaqu", xiaqu);
JSONObject daolumingcheng = new JSONObject();
daolumingcheng.put("value", place);
data.put("daolumingcheng", daolumingcheng);
JSONObject ruchangshijian = new JSONObject();
ruchangshijian.put("value", DATA);
data.put("ruchangshijian", ruchangshijian);
JSONObject chuchangshijian = new JSONObject();
chuchangshijian.put("value", DATAss);
data.put("chuchangshijian", chuchangshijian);
JSONObject tingcheshichang = new JSONObject();
tingcheshichang.put("value", times);
data.put("tingcheshichang", tingcheshichang);
JSONObject dingdanjine = new JSONObject();
dingdanjine.put("value", jines);
data.put("dingdanjine", dingdanjine);
JSONObject jigou = new JSONObject();
jigou.put("value", "华建");
data.put("jigou", jigou);
datasall.add(data);
if (datasall.size() == 100) {
jsonObject.put("data_list", datasall);
String jsonString = jsonObject.toJSONString();
V5utils.adds(jsonString);
datasall = new JSONArray();
}
}
jsonObject.put("data_list", datasall);
String jsonString = jsonObject.toJSONString();
//log.info("我是参数+++ " + jsonString);
V5utils.adds(jsonString);
}
}
public static void yinjianxinnengyuan() throws IOException {
// QuChong.qu();
//KIllJinCheng.kill();
String desktopPath = System.getProperty("user.home") + "/Desktop/";
// 要移动的Excel文件名
String fileName = "银建新能源停车费.xlsx";
String excelFilePath = desktopPath + fileName;
JSONArray jsonArray = new JSONArray();
FileInputStream inputStream = new FileInputStream(new File(excelFilePath));
Workbook workbook = WorkbookFactory.create(inputStream);
Sheet sheet = workbook.getSheetAt(0); // 获取第一个工作表
// 迭代行(从第二行开始,因为第一行通常是标题)
for (int rowIndex = 0; rowIndex <= sheet.getLastRowNum(); rowIndex++) {
Row row = sheet.getRow(rowIndex);
if (row != null) {
JSONObject jsonObject = new JSONObject();
// 读取每列数据
String chepai = row.getCell(0).getStringCellValue();
jsonObject.put("chepai", chepai);
String chengqu = row.getCell(1).getStringCellValue();
jsonObject.put("chengqu", chengqu);
String place = row.getCell(2).getStringCellValue();
jsonObject.put("place", place);
try {
String DATA = row.getCell(3).getStringCellValue();
jsonObject.put("DATA", DATA);
} catch (Exception e) {
System.out.println("异常");
jsonObject.put("DATA", "2024-04-22 04:06");
}
try {
String DATAS = row.getCell(4).getStringCellValue();
jsonObject.put("DATAS", DATAS);
} catch (Exception e) {
System.out.println("异常");
jsonObject.put("DATAS", "2024-04-22 04:06");
}
String time = row.getCell(5).getStringCellValue();
jsonObject.put("time", time);
String jine = row.getCell(6).getStringCellValue();
jsonObject.put("jine", jine);
jsonArray.add(jsonObject);
}
}
workbook.close();
JSONObject jsonObject = new JSONObject();
jsonObject.put("app_id", "628eeaace7f28c00089a60cc");
jsonObject.put("entry_id", "67b5b486860ce5dac67895e9");
String nowmonth = TimeUtil.nowmonth();
JSONArray datasall = new JSONArray();
if (jsonArray.size() > 0) {
// DeleteAall.DELzy("银建新能源");
for (Object o : jsonArray) {
JSONObject te = (JSONObject) o;
String chepai = te.getString("chepai");
String chengqu = te.getString("chengqu");
String place = te.getString("place");
String DATAs = te.getString("DATA");
String DATA = TimeUtil.fronteight(DATAs);
String datas = te.getString("DATAS");
String DATAss = TimeUtil.fronteight(datas);
String time = te.getString("time");
String result = time.replace("分钟", "");
int times = Integer.parseInt(result);
String jine = te.getString("jine");
String replace = jine.replace("", "");
double jines = Double.parseDouble(replace);
// CaiId.main2(chepai);
// 新增数据至简道云
JSONObject data = new JSONObject();
JSONObject chepaihaoma = new JSONObject();
chepaihaoma.put("value", chepai);
data.put("chepaihaoma", chepaihaoma);
JSONObject xiaqu = new JSONObject();
xiaqu.put("value", chengqu);
data.put("xiaqu", xiaqu);
JSONObject daolumingcheng = new JSONObject();
daolumingcheng.put("value", place);
data.put("daolumingcheng", daolumingcheng);
JSONObject ruchangshijian = new JSONObject();
ruchangshijian.put("value", DATA);
data.put("ruchangshijian", ruchangshijian);
JSONObject chuchangshijian = new JSONObject();
chuchangshijian.put("value", DATAss);
data.put("chuchangshijian", chuchangshijian);
JSONObject tingcheshichang = new JSONObject();
tingcheshichang.put("value", times);
data.put("tingcheshichang", tingcheshichang);
JSONObject dingdanjine = new JSONObject();
dingdanjine.put("value", jines);
data.put("dingdanjine", dingdanjine);
JSONObject jigou = new JSONObject();
jigou.put("value", "银建新能源");
data.put("jigou", jigou);
datasall.add(data);
if (datasall.size() == 100) {
jsonObject.put("data_list", datasall);
String jsonString = jsonObject.toJSONString();
V5utils.adds(jsonString);
datasall = new JSONArray();
}
}
jsonObject.put("data_list", datasall);
String jsonString = jsonObject.toJSONString();
//log.info("我是参数+++ " + jsonString);
V5utils.adds(jsonString);
}
}
}