改bug
This commit is contained in:
@ -466,7 +466,7 @@ public class JiaoTong1 {
|
|||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
if (pkOrg.equals("银建(山西)汽车服务有限公司") && zht.equals("1")) {
|
if (pkOrg.equals("海南银建汽车服务有限公司") && zht.equals("1")) {
|
||||||
JSONObject jsonObject = new JSONObject();
|
JSONObject jsonObject = new JSONObject();
|
||||||
jsonObject.put("pk_account", string);
|
jsonObject.put("pk_account", string);
|
||||||
jsonObject.put("objecttype", "0");
|
jsonObject.put("objecttype", "0");
|
||||||
@ -1000,7 +1000,7 @@ public class JiaoTong1 {
|
|||||||
jsonArray.add(test);
|
jsonArray.add(test);
|
||||||
|
|
||||||
JSONObject yjds = new JSONObject();
|
JSONObject yjds = new JSONObject();
|
||||||
yjds.put("pk_org", "银建(山西)汽车服务有限公司");
|
yjds.put("pk_org", "海南银建汽车服务有限公司");
|
||||||
yjds.put("bill_date", wbtime);
|
yjds.put("bill_date", wbtime);
|
||||||
yjds.put("pk_balatype", "13");
|
yjds.put("pk_balatype", "13");
|
||||||
yjds.put("def20", def20);
|
yjds.put("def20", def20);
|
||||||
|
|||||||
@ -13,14 +13,7 @@ import lombok.extern.slf4j.Slf4j;
|
|||||||
@Slf4j
|
@Slf4j
|
||||||
public class A {
|
public class A {
|
||||||
public static void main(String[] args) throws Exception {
|
public static void main(String[] args) throws Exception {
|
||||||
|
JSONArray shouyinmingxi = ShouYinMingXi.shouyinmingxi();
|
||||||
String A = "";
|
|
||||||
String B = "";
|
|
||||||
String C = "";
|
|
||||||
String D = "";
|
|
||||||
|
|
||||||
|
|
||||||
JSONArray shouyinmingxi = ShouYinMingXi.jiaotong();
|
|
||||||
|
|
||||||
for (Object khda : shouyinmingxi) {
|
for (Object khda : shouyinmingxi) {
|
||||||
JSONObject khdas = (JSONObject) khda;
|
JSONObject khdas = (JSONObject) khda;
|
||||||
@ -28,14 +21,13 @@ public class A {
|
|||||||
String timec = khdas.getString("timec");
|
String timec = khdas.getString("timec");
|
||||||
String id = khdas.getString("_id");//数据id
|
String id = khdas.getString("_id");//数据id
|
||||||
|
|
||||||
|
|
||||||
if (timec != "") {
|
if (timec != "") {
|
||||||
long time = Long.parseLong(timec);
|
long time = Long.parseLong(timec);
|
||||||
|
|
||||||
long currentTimestamp = System.currentTimeMillis();
|
long currentTimestamp = System.currentTimeMillis();
|
||||||
Long tim = TimeUtils.tim(currentTimestamp);
|
Long tim = TimeUtils.tim2(currentTimestamp);
|
||||||
|
|
||||||
if (time >= tim && time <= currentTimestamp) {
|
if (jine > 0 && time >= tim && time <= currentTimestamp) {
|
||||||
String name = khdas.getString("yh_name"); //银行名称
|
String name = khdas.getString("yh_name"); //银行名称
|
||||||
String taxpayerid = khdas.getString("yh_code"); //银行编码
|
String taxpayerid = khdas.getString("yh_code"); //银行编码
|
||||||
|
|
||||||
@ -60,7 +52,6 @@ public class A {
|
|||||||
jsonObject1.put("data", jsonObject3);
|
jsonObject1.put("data", jsonObject3);
|
||||||
String jsonString1 = jsonObject1.toJSONString();
|
String jsonString1 = jsonObject1.toJSONString();
|
||||||
NcUtils.updatas(jsonString1);
|
NcUtils.updatas(jsonString1);
|
||||||
A = "1";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -72,15 +63,14 @@ public class A {
|
|||||||
JSONObject khdas = (JSONObject) khda;
|
JSONObject khdas = (JSONObject) khda;
|
||||||
Double jine = khdas.getDouble("jine");
|
Double jine = khdas.getDouble("jine");
|
||||||
String timec = khdas.getString("timec");
|
String timec = khdas.getString("timec");
|
||||||
String id = khdas.getString("_id");
|
String id = khdas.getString("_id");//数据id
|
||||||
|
|
||||||
if (timec != "") {
|
if (timec != "") {
|
||||||
long time = Long.parseLong(timec);
|
long time = Long.parseLong(timec);
|
||||||
|
|
||||||
long currentTimestamp = System.currentTimeMillis();
|
long currentTimestamp = System.currentTimeMillis();
|
||||||
Long tim = TimeUtils.tim(currentTimestamp);
|
Long tim = TimeUtils.tim2(currentTimestamp);
|
||||||
|
|
||||||
if (time >= tim && time <= currentTimestamp) {
|
if (jine > 0 && time >= tim && time <= currentTimestamp) {
|
||||||
String yhCode = khdas.getString("yh_code");//银行编码
|
String yhCode = khdas.getString("yh_code");//银行编码
|
||||||
String zhhCode = khdas.getString("zhh_code");//支行编码
|
String zhhCode = khdas.getString("zhh_code");//支行编码
|
||||||
String zhhName = khdas.getString("zhh_name");//支行名称
|
String zhhName = khdas.getString("zhh_name");//支行名称
|
||||||
@ -110,7 +100,6 @@ public class A {
|
|||||||
jsonObject1.put("data", jsonObject3);
|
jsonObject1.put("data", jsonObject3);
|
||||||
String jsonString1 = jsonObject1.toJSONString();
|
String jsonString1 = jsonObject1.toJSONString();
|
||||||
NcUtils.updatas(jsonString1);
|
NcUtils.updatas(jsonString1);
|
||||||
B = "1";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -123,76 +112,41 @@ public class A {
|
|||||||
Double jine = khdas.getDouble("jine");
|
Double jine = khdas.getDouble("jine");
|
||||||
String timec = khdas.getString("timec");
|
String timec = khdas.getString("timec");
|
||||||
String id = khdas.getString("_id");
|
String id = khdas.getString("_id");
|
||||||
|
|
||||||
if (timec != "") {
|
if (timec != "") {
|
||||||
long time = Long.parseLong(timec);
|
long time = Long.parseLong(timec);
|
||||||
|
|
||||||
long currentTimestamp = System.currentTimeMillis();
|
long currentTimestamp = System.currentTimeMillis();
|
||||||
Long tim = TimeUtils.tim(currentTimestamp);
|
Long tim = TimeUtils.tim2(currentTimestamp);
|
||||||
|
|
||||||
if (time >= tim && time <= currentTimestamp) {
|
if (jine > 0 && time >= tim && time <= currentTimestamp) {
|
||||||
String name = khdas.getString("name"); //姓名
|
String name = khdas.getString("name"); //姓名
|
||||||
String taxpayerid = khdas.getString("taxpayerid"); //纳税人登记号(身份证号)
|
String taxpayerid = khdas.getString("taxpayerid"); //纳税人登记号(身份证号)
|
||||||
String accountproperty = khdas.getString("accountproperty");
|
System.out.println(khdas);
|
||||||
|
|
||||||
|
String enablestate = "Y"; //生效状态
|
||||||
|
String pk_customerclass = "03"; //客户基本分类
|
||||||
|
JSONObject jsonObject = new JSONObject();
|
||||||
|
jsonObject.put("name", name);
|
||||||
|
jsonObject.put("taxpayerid", taxpayerid);
|
||||||
|
jsonObject.put("enablestate", enablestate);
|
||||||
|
jsonObject.put("pk_customerclass", pk_customerclass);
|
||||||
|
jsonObject.put("custtype", "1");
|
||||||
|
String jsonString = jsonObject.toJSONString();
|
||||||
|
|
||||||
if (accountproperty.equals("公司")) {
|
String kehudangan = NcUtils.kehudangan(jsonString);
|
||||||
String enablestate = "Y"; //生效状态
|
if (!kehudangan.contains("同步成功")) {
|
||||||
String pk_customerclass = "03"; //客户基本分类
|
JSONObject jsonObject1 = new JSONObject();
|
||||||
JSONObject jsonObject = new JSONObject();
|
jsonObject1.put("app_id", "675b8d1a24d61bca7bf1cb4c");
|
||||||
jsonObject.put("name", name);
|
jsonObject1.put("entry_id", "6865ed5afa23289ab34ddc60");
|
||||||
//jsonObject.put("taxpayerid", taxpayerid);
|
jsonObject1.put("data_id", id);
|
||||||
jsonObject.put("enablestate", enablestate);
|
jsonObject1.put("is_start_trigger", true);
|
||||||
jsonObject.put("pk_customerclass", pk_customerclass);
|
JSONObject jsonObject3 = new JSONObject(); //字段
|
||||||
jsonObject.put("custtype", "0");
|
JSONObject jsonObject4 = new JSONObject(); //值
|
||||||
String jsonString = jsonObject.toJSONString();
|
jsonObject4.put("value",kehudangan);
|
||||||
|
jsonObject3.put("zht", jsonObject4);
|
||||||
String kehudangan = NcUtils.kehudangan(jsonString);
|
jsonObject1.put("data", jsonObject3);
|
||||||
if (!kehudangan.contains("同步成功")) {
|
String jsonString1 = jsonObject1.toJSONString();
|
||||||
JSONObject jsonObject1 = new JSONObject();
|
NcUtils.updatas(jsonString1);
|
||||||
jsonObject1.put("app_id", "675b8d1a24d61bca7bf1cb4c");
|
|
||||||
jsonObject1.put("entry_id", "6865ed5afa23289ab34ddc60");
|
|
||||||
jsonObject1.put("data_id", id);
|
|
||||||
jsonObject1.put("is_start_trigger", true);
|
|
||||||
JSONObject jsonObject3 = new JSONObject(); //字段
|
|
||||||
JSONObject jsonObject4 = new JSONObject(); //值
|
|
||||||
jsonObject4.put("value", kehudangan);
|
|
||||||
jsonObject3.put("zht", jsonObject4);
|
|
||||||
jsonObject1.put("data", jsonObject3);
|
|
||||||
String jsonString1 = jsonObject1.toJSONString();
|
|
||||||
NcUtils.updatas(jsonString1);
|
|
||||||
C = "1";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (accountproperty.equals("个人")) {
|
|
||||||
String enablestate = "Y"; //生效状态
|
|
||||||
String pk_customerclass = "03"; //客户基本分类
|
|
||||||
JSONObject jsonObject = new JSONObject();
|
|
||||||
jsonObject.put("name", name);
|
|
||||||
jsonObject.put("taxpayerid", taxpayerid);
|
|
||||||
jsonObject.put("enablestate", enablestate);
|
|
||||||
jsonObject.put("pk_customerclass", pk_customerclass);
|
|
||||||
jsonObject.put("custtype", "1");
|
|
||||||
String jsonString = jsonObject.toJSONString();
|
|
||||||
|
|
||||||
String kehudangan = NcUtils.kehudangan(jsonString);
|
|
||||||
if (!kehudangan.contains("同步成功")) {
|
|
||||||
JSONObject jsonObject1 = new JSONObject();
|
|
||||||
jsonObject1.put("app_id", "675b8d1a24d61bca7bf1cb4c");
|
|
||||||
jsonObject1.put("entry_id", "6865ed5afa23289ab34ddc60");
|
|
||||||
jsonObject1.put("data_id", id);
|
|
||||||
jsonObject1.put("is_start_trigger", true);
|
|
||||||
JSONObject jsonObject3 = new JSONObject(); //字段
|
|
||||||
JSONObject jsonObject4 = new JSONObject(); //值
|
|
||||||
jsonObject4.put("value", kehudangan);
|
|
||||||
jsonObject3.put("zht", jsonObject4);
|
|
||||||
jsonObject1.put("data", jsonObject3);
|
|
||||||
String jsonString1 = jsonObject1.toJSONString();
|
|
||||||
NcUtils.updatas(jsonString1);
|
|
||||||
C = "1";
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -204,82 +158,48 @@ public class A {
|
|||||||
JSONObject khdas = (JSONObject) khda;
|
JSONObject khdas = (JSONObject) khda;
|
||||||
Double jine = khdas.getDouble("jine");
|
Double jine = khdas.getDouble("jine");
|
||||||
String timec = khdas.getString("timec");
|
String timec = khdas.getString("timec");
|
||||||
|
String id = khdas.getString("_id");
|
||||||
if (timec != "") {
|
if (timec != "") {
|
||||||
long time = Long.parseLong(timec);
|
long time = Long.parseLong(timec);
|
||||||
|
|
||||||
long currentTimestamp = System.currentTimeMillis();
|
long currentTimestamp = System.currentTimeMillis();
|
||||||
Long tim = TimeUtils.tim(currentTimestamp);
|
Long tim = TimeUtils.tim2(currentTimestamp);
|
||||||
|
|
||||||
if (time >= tim && time <= currentTimestamp) {
|
if (jine > 0 && time >= tim && time <= currentTimestamp) {
|
||||||
String name = khdas.getString("name"); //姓名
|
String name = khdas.getString("name"); //姓名
|
||||||
String taxpayerid = khdas.getString("taxpayerid"); //纳税人登记号(身份证号)
|
String taxpayerid = khdas.getString("taxpayerid"); //纳税人登记号(身份证号)
|
||||||
String enablestate = "Y"; //生效状态
|
String enablestate = "Y"; //生效状态
|
||||||
String accnum = khdas.getString("accnum");//账号
|
String accnum = khdas.getString("accnum");//账号
|
||||||
String zhhCode = khdas.getString("zhh_code");//支行编码
|
String zhhCode = khdas.getString("zhh_code");//支行编码
|
||||||
String accountproperty1 = khdas.getString("accountproperty");//性质
|
String accountproperty = "1";
|
||||||
String id = khdas.getString("_id");
|
|
||||||
if (accountproperty1.equals("公司")) {
|
|
||||||
String accountproperty = "0";
|
|
||||||
|
|
||||||
|
|
||||||
JSONObject jsonObject = new JSONObject();
|
JSONObject jsonObject = new JSONObject();
|
||||||
jsonObject.put("accname", name);
|
jsonObject.put("accname", name);
|
||||||
jsonObject.put("customercode", name);
|
jsonObject.put("customercode", taxpayerid);
|
||||||
jsonObject.put("enablestate", enablestate);
|
jsonObject.put("enablestate", enablestate);
|
||||||
jsonObject.put("pk_bankdoc", zhhCode);
|
jsonObject.put("pk_bankdoc", zhhCode);
|
||||||
jsonObject.put("accnum", accnum);
|
jsonObject.put("accnum", accnum);
|
||||||
jsonObject.put("accountproperty", accountproperty);
|
jsonObject.put("accountproperty", accountproperty);
|
||||||
String jsonString = jsonObject.toJSONString();
|
String jsonString = jsonObject.toJSONString();
|
||||||
|
|
||||||
String keshangyinhang = NcUtils.keshangyinhang(jsonString);
|
|
||||||
if (!keshangyinhang.contains("同步成功")) {
|
|
||||||
JSONObject jsonObject1 = new JSONObject();
|
|
||||||
jsonObject1.put("app_id", "675b8d1a24d61bca7bf1cb4c");
|
|
||||||
jsonObject1.put("entry_id", "6865ed5afa23289ab34ddc60");
|
|
||||||
jsonObject1.put("data_id", id);
|
|
||||||
jsonObject1.put("is_start_trigger", true);
|
|
||||||
JSONObject jsonObject3 = new JSONObject(); //字段
|
|
||||||
JSONObject jsonObject4 = new JSONObject(); //值
|
|
||||||
jsonObject4.put("value", keshangyinhang);
|
|
||||||
jsonObject3.put("zht", jsonObject4);
|
|
||||||
jsonObject1.put("data", jsonObject3);
|
|
||||||
String jsonString1 = jsonObject1.toJSONString();
|
|
||||||
NcUtils.updatas(jsonString1);
|
|
||||||
D = "1";
|
|
||||||
}
|
|
||||||
|
|
||||||
} else if (accountproperty1.equals("个人")) {
|
|
||||||
String accountproperty = "1";
|
|
||||||
|
|
||||||
|
|
||||||
JSONObject jsonObject = new JSONObject();
|
|
||||||
jsonObject.put("accname", name);
|
|
||||||
jsonObject.put("customercode", taxpayerid);
|
|
||||||
jsonObject.put("enablestate", enablestate);
|
|
||||||
jsonObject.put("pk_bankdoc", zhhCode);
|
|
||||||
jsonObject.put("accnum", accnum);
|
|
||||||
jsonObject.put("accountproperty", accountproperty);
|
|
||||||
String jsonString = jsonObject.toJSONString();
|
|
||||||
|
|
||||||
String keshangyinhang = NcUtils.keshangyinhang(jsonString);
|
|
||||||
if (!keshangyinhang.contains("同步成功")) {
|
|
||||||
JSONObject jsonObject1 = new JSONObject();
|
|
||||||
jsonObject1.put("app_id", "675b8d1a24d61bca7bf1cb4c");
|
|
||||||
jsonObject1.put("entry_id", "6865ed5afa23289ab34ddc60");
|
|
||||||
jsonObject1.put("data_id", id);
|
|
||||||
jsonObject1.put("is_start_trigger", true);
|
|
||||||
JSONObject jsonObject3 = new JSONObject(); //字段
|
|
||||||
JSONObject jsonObject4 = new JSONObject(); //值
|
|
||||||
jsonObject4.put("value", keshangyinhang);
|
|
||||||
jsonObject3.put("zht", jsonObject4);
|
|
||||||
jsonObject1.put("data", jsonObject3);
|
|
||||||
String jsonString1 = jsonObject1.toJSONString();
|
|
||||||
NcUtils.updatas(jsonString1);
|
|
||||||
D = "1";
|
|
||||||
}
|
|
||||||
|
|
||||||
|
String keshangyinhang = NcUtils.keshangyinhang(jsonString);
|
||||||
|
if (!keshangyinhang.contains("同步成功")) {
|
||||||
|
JSONObject jsonObject1 = new JSONObject();
|
||||||
|
jsonObject1.put("app_id", "675b8d1a24d61bca7bf1cb4c");
|
||||||
|
jsonObject1.put("entry_id", "6865ed5afa23289ab34ddc60");
|
||||||
|
jsonObject1.put("data_id", id);
|
||||||
|
jsonObject1.put("is_start_trigger", true);
|
||||||
|
JSONObject jsonObject3 = new JSONObject(); //字段
|
||||||
|
JSONObject jsonObject4 = new JSONObject(); //值
|
||||||
|
jsonObject4.put("value",keshangyinhang);
|
||||||
|
jsonObject3.put("zht", jsonObject4);
|
||||||
|
jsonObject1.put("data", jsonObject3);
|
||||||
|
String jsonString1 = jsonObject1.toJSONString();
|
||||||
|
NcUtils.updatas(jsonString1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -293,326 +213,186 @@ public class A {
|
|||||||
JSONArray HJ = new JSONArray();
|
JSONArray HJ = new JSONArray();
|
||||||
String wbtime = "";
|
String wbtime = "";
|
||||||
|
|
||||||
|
JSONArray shouyinmingxi1 = ShouYinMingXi.shouyinmingxi();
|
||||||
|
|
||||||
JSONArray shouyinmingxi1 = ShouYinMingXi.jiaotong();
|
|
||||||
|
|
||||||
|
|
||||||
for (Object khda : shouyinmingxi1) {
|
for (Object khda : shouyinmingxi1) {
|
||||||
JSONObject khdas = (JSONObject) khda;
|
JSONObject khdas = (JSONObject) khda;
|
||||||
|
|
||||||
|
|
||||||
Double jine = khdas.getDouble("jine");
|
Double jine = khdas.getDouble("jine");
|
||||||
String name = khdas.getString("name");
|
|
||||||
String timec = khdas.getString("timec");
|
String timec = khdas.getString("timec");
|
||||||
String string = khdas.getString("accnum");
|
String string = khdas.getString("accnum");
|
||||||
String string1 = khdas.getString("taxpayerid");
|
String string1 = khdas.getString("taxpayerid");
|
||||||
String def20 = khdas.getString("def20");
|
|
||||||
Double aDoubles = khdas.getDouble("jine");
|
Double aDoubles = khdas.getDouble("jine");
|
||||||
String zht = khdas.getString("zht");
|
String zht = khdas.getString("zht");
|
||||||
|
String def20 = khdas.getString("def20");
|
||||||
String id = khdas.getString("_id");//数据id
|
String id = khdas.getString("_id");//数据id
|
||||||
|
String szxmbm = khdas.getString("szxmbm");
|
||||||
double aDouble = Math.abs(aDoubles);
|
double aDouble = Math.abs(aDoubles);
|
||||||
String format = String.format("%.2f", aDouble);
|
String format = String.format("%.2f", aDouble);
|
||||||
String leibie = khdas.getString("zfyt");
|
|
||||||
|
|
||||||
if (timec != "") {
|
if (timec != "") {
|
||||||
long time = Long.parseLong(timec);
|
long time = Long.parseLong(timec);
|
||||||
|
|
||||||
long currentTimestamp = System.currentTimeMillis();
|
long currentTimestamp = System.currentTimeMillis();
|
||||||
Long tim = TimeUtils.tim(currentTimestamp);
|
Long tim = TimeUtils.tim2(currentTimestamp);
|
||||||
|
|
||||||
if (time >= tim && time <= currentTimestamp) {
|
if (jine > 0 && time >= tim && time <= currentTimestamp) {
|
||||||
String pkOrg = khdas.getString("pk_org");
|
String pkOrg = khdas.getString("pk_org");
|
||||||
String wbTime = khdas.getString("wb_time");
|
String wbTime = khdas.getString("wb_time");
|
||||||
String accountproperty = khdas.getString("accountproperty");
|
|
||||||
wbtime = wbTime;
|
wbtime = wbTime;
|
||||||
if (accountproperty.equals("个人")) {
|
|
||||||
if (pkOrg.equals("北京银建的士管理有限公司") && zht.equals("1")) {
|
|
||||||
JSONObject jsonObject = new JSONObject();
|
|
||||||
jsonObject.put("pk_account", string);
|
|
||||||
jsonObject.put("objecttype", "0");
|
|
||||||
jsonObject.put("pk_customer", string1);
|
|
||||||
jsonObject.put("pay_primal", format);
|
|
||||||
jsonObject.put("memo", leibie);
|
|
||||||
jsonObject.put("custtype", "1");
|
|
||||||
jsonObject.put("def20", def20);
|
|
||||||
jsonObject.put("ids", id);
|
|
||||||
|
|
||||||
YJ.add(jsonObject);
|
|
||||||
JSONObject jsonObject1 = new JSONObject();
|
|
||||||
jsonObject1.put("app_id", "675b8d1a24d61bca7bf1cb4c");
|
|
||||||
jsonObject1.put("entry_id", "6865ed5afa23289ab34ddc60");
|
|
||||||
jsonObject1.put("data_id", id);
|
|
||||||
jsonObject1.put("is_start_trigger", true);
|
|
||||||
JSONObject jsonObject3 = new JSONObject(); //字段
|
|
||||||
JSONObject jsonObject4 = new JSONObject(); //值
|
|
||||||
jsonObject4.put("value", "推送成功");
|
|
||||||
jsonObject3.put("zht", jsonObject4);
|
|
||||||
jsonObject1.put("data", jsonObject3);
|
|
||||||
String jsonString1 = jsonObject1.toJSONString();
|
|
||||||
NcUtils.updatas(jsonString1);
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
if (pkOrg.equals("北京银建实业股份有限公司") && zht.equals("1")) {
|
|
||||||
JSONObject jsonObject = new JSONObject();
|
|
||||||
jsonObject.put("pk_account", string);
|
|
||||||
jsonObject.put("objecttype", "0");
|
|
||||||
jsonObject.put("pk_customer", string1);
|
|
||||||
jsonObject.put("pay_primal", format);
|
|
||||||
jsonObject.put("memo", leibie);
|
|
||||||
jsonObject.put("custtype", "1");
|
|
||||||
jsonObject.put("def20", def20);
|
|
||||||
jsonObject.put("ids", id);
|
|
||||||
YJSY.add(jsonObject);
|
|
||||||
JSONObject jsonObject1 = new JSONObject();
|
|
||||||
jsonObject1.put("app_id", "675b8d1a24d61bca7bf1cb4c");
|
|
||||||
jsonObject1.put("entry_id", "6865ed5afa23289ab34ddc60");
|
|
||||||
jsonObject1.put("data_id", id);
|
|
||||||
jsonObject1.put("is_start_trigger", true);
|
|
||||||
JSONObject jsonObject3 = new JSONObject(); //字段
|
|
||||||
JSONObject jsonObject4 = new JSONObject(); //值
|
|
||||||
jsonObject4.put("value", "推送成功");
|
|
||||||
jsonObject3.put("zht", jsonObject4);
|
|
||||||
jsonObject1.put("data", jsonObject3);
|
|
||||||
String jsonString1 = jsonObject1.toJSONString();
|
|
||||||
NcUtils.updatas(jsonString1);
|
|
||||||
|
|
||||||
|
if (pkOrg.equals("北京银建的士管理有限公司") && zht.equals("1")) {
|
||||||
|
JSONObject jsonObject = new JSONObject();
|
||||||
|
jsonObject.put("pk_account", string);
|
||||||
|
jsonObject.put("objecttype", "0");
|
||||||
|
jsonObject.put("pk_customer", string1);
|
||||||
|
jsonObject.put("pay_primal", format);
|
||||||
|
jsonObject.put("memo", "司机结算款");
|
||||||
|
jsonObject.put("custtype", "1");
|
||||||
|
jsonObject.put("def20", def20);
|
||||||
|
jsonObject.put("pk_recproject", szxmbm);
|
||||||
|
|
||||||
}
|
YJ.add(jsonObject);
|
||||||
if (pkOrg.equals("北京金银建出租汽车有限公司") && zht.equals("1")) {
|
JSONObject jsonObject1 = new JSONObject();
|
||||||
JSONObject jsonObject = new JSONObject();
|
jsonObject1.put("app_id", "675b8d1a24d61bca7bf1cb4c");
|
||||||
jsonObject.put("pk_account", string);
|
jsonObject1.put("entry_id", "6865ed5afa23289ab34ddc60");
|
||||||
jsonObject.put("objecttype", "0");
|
jsonObject1.put("data_id", id);
|
||||||
jsonObject.put("pk_customer", string1);
|
jsonObject1.put("is_start_trigger", true);
|
||||||
jsonObject.put("pay_primal", format);
|
JSONObject jsonObject3 = new JSONObject(); //字段
|
||||||
jsonObject.put("memo", leibie);
|
JSONObject jsonObject4 = new JSONObject(); //值
|
||||||
jsonObject.put("custtype", "1");
|
jsonObject4.put("value", "推送成功");
|
||||||
jsonObject.put("def20", def20);
|
jsonObject3.put("zht", jsonObject4);
|
||||||
jsonObject.put("ids", id);
|
jsonObject1.put("data", jsonObject3);
|
||||||
JYJ.add(jsonObject);
|
String jsonString1 = jsonObject1.toJSONString();
|
||||||
JSONObject jsonObject1 = new JSONObject();
|
NcUtils.updatas(jsonString1);
|
||||||
jsonObject1.put("app_id", "675b8d1a24d61bca7bf1cb4c");
|
|
||||||
jsonObject1.put("entry_id", "6865ed5afa23289ab34ddc60");
|
|
||||||
jsonObject1.put("data_id", id);
|
|
||||||
jsonObject1.put("is_start_trigger", true);
|
|
||||||
JSONObject jsonObject3 = new JSONObject(); //字段
|
|
||||||
JSONObject jsonObject4 = new JSONObject(); //值
|
|
||||||
jsonObject4.put("value", "推送成功");
|
|
||||||
jsonObject3.put("zht", jsonObject4);
|
|
||||||
jsonObject1.put("data", jsonObject3);
|
|
||||||
String jsonString1 = jsonObject1.toJSONString();
|
|
||||||
NcUtils.updatas(jsonString1);
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
if (pkOrg.equals("北京金建出租汽车有限公司") && zht.equals("1")) {
|
|
||||||
JSONObject jsonObject = new JSONObject();
|
|
||||||
jsonObject.put("pk_account", string);
|
|
||||||
jsonObject.put("objecttype", "0");
|
|
||||||
jsonObject.put("pk_customer", string1);
|
|
||||||
jsonObject.put("pay_primal", format);
|
|
||||||
jsonObject.put("memo", leibie);
|
|
||||||
jsonObject.put("custtype", "1");
|
|
||||||
jsonObject.put("def20", def20);
|
|
||||||
jsonObject.put("ids", id);
|
|
||||||
JJ.add(jsonObject);
|
|
||||||
JSONObject jsonObject1 = new JSONObject();
|
|
||||||
jsonObject1.put("app_id", "675b8d1a24d61bca7bf1cb4c");
|
|
||||||
jsonObject1.put("entry_id", "6865ed5afa23289ab34ddc60");
|
|
||||||
jsonObject1.put("data_id", id);
|
|
||||||
jsonObject1.put("is_start_trigger", true);
|
|
||||||
JSONObject jsonObject3 = new JSONObject(); //字段
|
|
||||||
JSONObject jsonObject4 = new JSONObject(); //值
|
|
||||||
jsonObject4.put("value", "推送成功");
|
|
||||||
jsonObject3.put("zht", jsonObject4);
|
|
||||||
jsonObject1.put("data", jsonObject3);
|
|
||||||
String jsonString1 = jsonObject1.toJSONString();
|
|
||||||
NcUtils.updatas(jsonString1);
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
if (pkOrg.equals("北京华建出租车客运有限公司") && zht.equals("1")) {
|
|
||||||
JSONObject jsonObject = new JSONObject();
|
|
||||||
jsonObject.put("pk_account", string);
|
|
||||||
jsonObject.put("objecttype", "0");
|
|
||||||
jsonObject.put("pk_customer", string1);
|
|
||||||
jsonObject.put("pay_primal", format);
|
|
||||||
jsonObject.put("memo", leibie);
|
|
||||||
jsonObject.put("custtype", "1");
|
|
||||||
jsonObject.put("def20", def20);
|
|
||||||
jsonObject.put("ids", id);
|
|
||||||
HJ.add(jsonObject);
|
|
||||||
JSONObject jsonObject1 = new JSONObject();
|
|
||||||
jsonObject1.put("app_id", "675b8d1a24d61bca7bf1cb4c");
|
|
||||||
jsonObject1.put("entry_id", "6865ed5afa23289ab34ddc60");
|
|
||||||
jsonObject1.put("data_id", id);
|
|
||||||
jsonObject1.put("is_start_trigger", true);
|
|
||||||
JSONObject jsonObject3 = new JSONObject(); //字段
|
|
||||||
JSONObject jsonObject4 = new JSONObject(); //值
|
|
||||||
jsonObject4.put("value", "推送成功");
|
|
||||||
jsonObject3.put("zht", jsonObject4);
|
|
||||||
jsonObject1.put("data", jsonObject3);
|
|
||||||
String jsonString1 = jsonObject1.toJSONString();
|
|
||||||
NcUtils.updatas(jsonString1);
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (accountproperty.equals("公司")) {
|
|
||||||
if (pkOrg.equals("北京银建的士管理有限公司") && zht.equals("1")) {
|
|
||||||
JSONObject jsonObject = new JSONObject();
|
|
||||||
jsonObject.put("pk_account", string);
|
|
||||||
jsonObject.put("objecttype", "0");
|
|
||||||
jsonObject.put("pk_customer", name);
|
|
||||||
jsonObject.put("pay_primal", format);
|
|
||||||
jsonObject.put("memo", leibie);
|
|
||||||
jsonObject.put("custtype", "0");
|
|
||||||
jsonObject.put("def20", def20);
|
|
||||||
jsonObject.put("ids", id);
|
|
||||||
YJ.add(jsonObject);
|
|
||||||
JSONObject jsonObject1 = new JSONObject();
|
|
||||||
jsonObject1.put("app_id", "675b8d1a24d61bca7bf1cb4c");
|
|
||||||
jsonObject1.put("entry_id", "6865ed5afa23289ab34ddc60");
|
|
||||||
jsonObject1.put("data_id", id);
|
|
||||||
jsonObject1.put("is_start_trigger", true);
|
|
||||||
JSONObject jsonObject3 = new JSONObject(); //字段
|
|
||||||
JSONObject jsonObject4 = new JSONObject(); //值
|
|
||||||
jsonObject4.put("value", "推送成功");
|
|
||||||
jsonObject3.put("zht", jsonObject4);
|
|
||||||
jsonObject1.put("data", jsonObject3);
|
|
||||||
String jsonString1 = jsonObject1.toJSONString();
|
|
||||||
NcUtils.updatas(jsonString1);
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
if (pkOrg.equals("北京银建实业股份有限公司") && zht.equals("1")) {
|
|
||||||
JSONObject jsonObject = new JSONObject();
|
|
||||||
jsonObject.put("pk_account", string);
|
|
||||||
jsonObject.put("objecttype", "0");
|
|
||||||
jsonObject.put("pk_customer", name);
|
|
||||||
jsonObject.put("pay_primal", format);
|
|
||||||
jsonObject.put("memo", leibie);
|
|
||||||
jsonObject.put("custtype", "0");
|
|
||||||
jsonObject.put("def20", def20);
|
|
||||||
jsonObject.put("ids", id);
|
|
||||||
YJSY.add(jsonObject);
|
|
||||||
JSONObject jsonObject1 = new JSONObject();
|
|
||||||
jsonObject1.put("app_id", "675b8d1a24d61bca7bf1cb4c");
|
|
||||||
jsonObject1.put("entry_id", "6865ed5afa23289ab34ddc60");
|
|
||||||
jsonObject1.put("data_id", id);
|
|
||||||
jsonObject1.put("is_start_trigger", true);
|
|
||||||
JSONObject jsonObject3 = new JSONObject(); //字段
|
|
||||||
JSONObject jsonObject4 = new JSONObject(); //值
|
|
||||||
jsonObject4.put("value", "推送成功");
|
|
||||||
jsonObject3.put("zht", jsonObject4);
|
|
||||||
jsonObject1.put("data", jsonObject3);
|
|
||||||
String jsonString1 = jsonObject1.toJSONString();
|
|
||||||
NcUtils.updatas(jsonString1);
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
if (pkOrg.equals("北京金银建出租汽车有限公司") && zht.equals("1")) {
|
|
||||||
JSONObject jsonObject = new JSONObject();
|
|
||||||
jsonObject.put("pk_account", string);
|
|
||||||
jsonObject.put("objecttype", "0");
|
|
||||||
jsonObject.put("pk_customer", name);
|
|
||||||
jsonObject.put("pay_primal", format);
|
|
||||||
jsonObject.put("memo", leibie);
|
|
||||||
jsonObject.put("custtype", "0");
|
|
||||||
jsonObject.put("def20", def20);
|
|
||||||
jsonObject.put("ids", id);
|
|
||||||
JYJ.add(jsonObject);
|
|
||||||
JSONObject jsonObject1 = new JSONObject();
|
|
||||||
jsonObject1.put("app_id", "675b8d1a24d61bca7bf1cb4c");
|
|
||||||
jsonObject1.put("entry_id", "6865ed5afa23289ab34ddc60");
|
|
||||||
jsonObject1.put("data_id", id);
|
|
||||||
jsonObject1.put("is_start_trigger", true);
|
|
||||||
JSONObject jsonObject3 = new JSONObject(); //字段
|
|
||||||
JSONObject jsonObject4 = new JSONObject(); //值
|
|
||||||
jsonObject4.put("value", "推送成功");
|
|
||||||
jsonObject3.put("zht", jsonObject4);
|
|
||||||
jsonObject1.put("data", jsonObject3);
|
|
||||||
String jsonString1 = jsonObject1.toJSONString();
|
|
||||||
NcUtils.updatas(jsonString1);
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
if (pkOrg.equals("北京金建出租汽车有限公司") && zht.equals("1")) {
|
|
||||||
JSONObject jsonObject = new JSONObject();
|
|
||||||
jsonObject.put("pk_account", string);
|
|
||||||
jsonObject.put("objecttype", "0");
|
|
||||||
jsonObject.put("pk_customer", name);
|
|
||||||
jsonObject.put("pay_primal", format);
|
|
||||||
jsonObject.put("memo", leibie);
|
|
||||||
jsonObject.put("custtype", "0");
|
|
||||||
jsonObject.put("def20", def20);
|
|
||||||
jsonObject.put("ids", id);
|
|
||||||
JJ.add(jsonObject);
|
|
||||||
JSONObject jsonObject1 = new JSONObject();
|
|
||||||
jsonObject1.put("app_id", "675b8d1a24d61bca7bf1cb4c");
|
|
||||||
jsonObject1.put("entry_id", "6865ed5afa23289ab34ddc60");
|
|
||||||
jsonObject1.put("data_id", id);
|
|
||||||
jsonObject1.put("is_start_trigger", true);
|
|
||||||
JSONObject jsonObject3 = new JSONObject(); //字段
|
|
||||||
JSONObject jsonObject4 = new JSONObject(); //值
|
|
||||||
jsonObject4.put("value", "推送成功");
|
|
||||||
jsonObject3.put("zht", jsonObject4);
|
|
||||||
jsonObject1.put("data", jsonObject3);
|
|
||||||
String jsonString1 = jsonObject1.toJSONString();
|
|
||||||
NcUtils.updatas(jsonString1);
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
if (pkOrg.equals("北京华建出租车客运有限公司") && zht.equals("1")) {
|
|
||||||
JSONObject jsonObject = new JSONObject();
|
|
||||||
jsonObject.put("pk_account", string);
|
|
||||||
jsonObject.put("objecttype", "0");
|
|
||||||
jsonObject.put("pk_customer", name);
|
|
||||||
jsonObject.put("pay_primal", format);
|
|
||||||
jsonObject.put("memo", leibie);
|
|
||||||
jsonObject.put("custtype", "0");
|
|
||||||
jsonObject.put("def20", def20);
|
|
||||||
jsonObject.put("ids", id);
|
|
||||||
HJ.add(jsonObject);
|
|
||||||
JSONObject jsonObject1 = new JSONObject();
|
|
||||||
jsonObject1.put("app_id", "675b8d1a24d61bca7bf1cb4c");
|
|
||||||
jsonObject1.put("entry_id", "6865ed5afa23289ab34ddc60");
|
|
||||||
jsonObject1.put("data_id", id);
|
|
||||||
jsonObject1.put("is_start_trigger", true);
|
|
||||||
JSONObject jsonObject3 = new JSONObject(); //字段
|
|
||||||
JSONObject jsonObject4 = new JSONObject(); //值
|
|
||||||
jsonObject4.put("value", "推送成功");
|
|
||||||
jsonObject3.put("zht", jsonObject4);
|
|
||||||
jsonObject1.put("data", jsonObject3);
|
|
||||||
String jsonString1 = jsonObject1.toJSONString();
|
|
||||||
NcUtils.updatas(jsonString1);
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
if (pkOrg.equals("北京银建实业股份有限公司") && zht.equals("1")) {
|
||||||
|
JSONObject jsonObject = new JSONObject();
|
||||||
|
jsonObject.put("pk_account", string);
|
||||||
|
jsonObject.put("objecttype", "0");
|
||||||
|
jsonObject.put("pk_customer", string1);
|
||||||
|
jsonObject.put("pay_primal", format);
|
||||||
|
jsonObject.put("memo", "司机结算款");
|
||||||
|
jsonObject.put("custtype", "1");
|
||||||
|
jsonObject.put("def20", def20);
|
||||||
|
jsonObject.put("pk_recproject", szxmbm);
|
||||||
|
YJSY.add(jsonObject);
|
||||||
|
JSONObject jsonObject1 = new JSONObject();
|
||||||
|
jsonObject1.put("app_id", "675b8d1a24d61bca7bf1cb4c");
|
||||||
|
jsonObject1.put("entry_id", "6865ed5afa23289ab34ddc60");
|
||||||
|
jsonObject1.put("data_id", id);
|
||||||
|
jsonObject1.put("is_start_trigger", true);
|
||||||
|
JSONObject jsonObject3 = new JSONObject(); //字段
|
||||||
|
JSONObject jsonObject4 = new JSONObject(); //值
|
||||||
|
jsonObject4.put("value", "推送成功");
|
||||||
|
jsonObject3.put("zht", jsonObject4);
|
||||||
|
jsonObject1.put("data", jsonObject3);
|
||||||
|
String jsonString1 = jsonObject1.toJSONString();
|
||||||
|
NcUtils.updatas(jsonString1);
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
if (pkOrg.equals("北京金银建出租汽车有限公司") && zht.equals("1")) {
|
||||||
|
JSONObject jsonObject = new JSONObject();
|
||||||
|
jsonObject.put("pk_account", string);
|
||||||
|
jsonObject.put("objecttype", "0");
|
||||||
|
jsonObject.put("pk_customer", string1);
|
||||||
|
jsonObject.put("pay_primal", format);
|
||||||
|
jsonObject.put("memo", "司机结算款");
|
||||||
|
jsonObject.put("custtype", "1");
|
||||||
|
jsonObject.put("def20", def20);
|
||||||
|
jsonObject.put("pk_recproject", szxmbm);
|
||||||
|
JYJ.add(jsonObject);
|
||||||
|
JSONObject jsonObject1 = new JSONObject();
|
||||||
|
jsonObject1.put("app_id", "675b8d1a24d61bca7bf1cb4c");
|
||||||
|
jsonObject1.put("entry_id", "6865ed5afa23289ab34ddc60");
|
||||||
|
jsonObject1.put("data_id", id);
|
||||||
|
jsonObject1.put("is_start_trigger", true);
|
||||||
|
JSONObject jsonObject3 = new JSONObject(); //字段
|
||||||
|
JSONObject jsonObject4 = new JSONObject(); //值
|
||||||
|
jsonObject4.put("value", "推送成功");
|
||||||
|
jsonObject3.put("zht", jsonObject4);
|
||||||
|
jsonObject1.put("data", jsonObject3);
|
||||||
|
String jsonString1 = jsonObject1.toJSONString();
|
||||||
|
NcUtils.updatas(jsonString1);
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
if (pkOrg.equals("北京金建出租汽车有限公司") && zht.equals("1")) {
|
||||||
|
JSONObject jsonObject = new JSONObject();
|
||||||
|
jsonObject.put("pk_account", string);
|
||||||
|
jsonObject.put("objecttype", "0");
|
||||||
|
jsonObject.put("pk_customer", string1);
|
||||||
|
jsonObject.put("pay_primal", format);
|
||||||
|
jsonObject.put("memo", "司机结算款");
|
||||||
|
jsonObject.put("custtype", "1");
|
||||||
|
jsonObject.put("def20", def20);
|
||||||
|
jsonObject.put("pk_recproject", szxmbm);
|
||||||
|
JJ.add(jsonObject);
|
||||||
|
JSONObject jsonObject1 = new JSONObject();
|
||||||
|
jsonObject1.put("app_id", "675b8d1a24d61bca7bf1cb4c");
|
||||||
|
jsonObject1.put("entry_id", "6865ed5afa23289ab34ddc60");
|
||||||
|
jsonObject1.put("data_id", id);
|
||||||
|
jsonObject1.put("is_start_trigger", true);
|
||||||
|
JSONObject jsonObject3 = new JSONObject(); //字段
|
||||||
|
JSONObject jsonObject4 = new JSONObject(); //值
|
||||||
|
jsonObject4.put("value", "推送成功");
|
||||||
|
jsonObject3.put("zht", jsonObject4);
|
||||||
|
jsonObject1.put("data", jsonObject3);
|
||||||
|
String jsonString1 = jsonObject1.toJSONString();
|
||||||
|
NcUtils.updatas(jsonString1);
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
if (pkOrg.equals("北京华建出租车客运有限公司") && zht.equals("1")) {
|
||||||
|
JSONObject jsonObject = new JSONObject();
|
||||||
|
jsonObject.put("pk_account", string);
|
||||||
|
jsonObject.put("objecttype", "0");
|
||||||
|
jsonObject.put("pk_customer", string1);
|
||||||
|
jsonObject.put("pay_primal", format);
|
||||||
|
jsonObject.put("memo", "司机结算款");
|
||||||
|
jsonObject.put("custtype", "1");
|
||||||
|
jsonObject.put("def20", def20);
|
||||||
|
jsonObject.put("pk_recproject", szxmbm);
|
||||||
|
HJ.add(jsonObject);
|
||||||
|
JSONObject jsonObject1 = new JSONObject();
|
||||||
|
jsonObject1.put("app_id", "675b8d1a24d61bca7bf1cb4c");
|
||||||
|
jsonObject1.put("entry_id", "6865ed5afa23289ab34ddc60");
|
||||||
|
jsonObject1.put("data_id", id);
|
||||||
|
jsonObject1.put("is_start_trigger", true);
|
||||||
|
JSONObject jsonObject3 = new JSONObject(); //字段
|
||||||
|
JSONObject jsonObject4 = new JSONObject(); //值
|
||||||
|
jsonObject4.put("value", "推送成功");
|
||||||
|
jsonObject3.put("zht", jsonObject4);
|
||||||
|
jsonObject1.put("data", jsonObject3);
|
||||||
|
String jsonString1 = jsonObject1.toJSONString();
|
||||||
|
NcUtils.updatas(jsonString1);
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
A = "1";
|
|
||||||
B = "1";
|
|
||||||
C = "1";
|
|
||||||
D = "1";
|
|
||||||
|
|
||||||
|
|
||||||
if (!YJ.isEmpty()) {
|
if (!YJ.isEmpty()) {
|
||||||
/* UUID uuid = UUID.randomUUID();
|
/* UUID uuid = UUID.randomUUID();
|
||||||
String uuidString = uuid.toString();*/
|
String uuidString = uuid.toString();
|
||||||
for (Object o : YJ) {
|
*/
|
||||||
|
for (Object o : YJ){
|
||||||
JSONObject test = (JSONObject) o;
|
JSONObject test = (JSONObject) o;
|
||||||
|
|
||||||
String def20 = test.getString("def20");
|
String def20 = test.getString("def20");
|
||||||
String id = test.getString("ids");
|
String szxmbm = test.getString("szxmbm");
|
||||||
JSONArray jsonArray = new JSONArray();
|
JSONArray jsonArray = new JSONArray();
|
||||||
jsonArray.add(test);
|
jsonArray.add(test);
|
||||||
|
|
||||||
@ -623,53 +403,25 @@ public class A {
|
|||||||
yjds.put("def20", def20);
|
yjds.put("def20", def20);
|
||||||
yjds.put("bodys", jsonArray);
|
yjds.put("bodys", jsonArray);
|
||||||
yjds.put("memo", "YJ");
|
yjds.put("memo", "YJ");
|
||||||
|
|
||||||
String jsonString = yjds.toJSONString();
|
String jsonString = yjds.toJSONString();
|
||||||
System.out.println(jsonString);
|
System.out.println(jsonString);
|
||||||
String fukuan = NcUtils.fukuan(jsonString);
|
String fukuan = NcUtils.fukuan(jsonString);
|
||||||
System.out.println(fukuan);
|
System.out.println(fukuan);
|
||||||
if (!fukuan.contains("同步成功")) {
|
|
||||||
JSONObject jsonObject1 = new JSONObject();
|
|
||||||
jsonObject1.put("app_id", "675b8d1a24d61bca7bf1cb4c");
|
|
||||||
jsonObject1.put("entry_id", "6865ed5afa23289ab34ddc60");
|
|
||||||
jsonObject1.put("data_id", id);
|
|
||||||
jsonObject1.put("is_start_trigger", true);
|
|
||||||
JSONObject jsonObject3 = new JSONObject(); //字段
|
|
||||||
JSONObject jsonObject4 = new JSONObject(); //值
|
|
||||||
jsonObject4.put("value", fukuan);
|
|
||||||
jsonObject3.put("zht", jsonObject4);
|
|
||||||
jsonObject1.put("data", jsonObject3);
|
|
||||||
String jsonString1 = jsonObject1.toJSONString();
|
|
||||||
NcUtils.updatas(jsonString1);
|
|
||||||
} else {
|
|
||||||
JSONObject jsonObject1 = new JSONObject();
|
|
||||||
jsonObject1.put("app_id", "675b8d1a24d61bca7bf1cb4c");
|
|
||||||
jsonObject1.put("entry_id", "6865ed5afa23289ab34ddc60");
|
|
||||||
jsonObject1.put("data_id", id);
|
|
||||||
jsonObject1.put("is_start_trigger", true);
|
|
||||||
JSONObject jsonObject3 = new JSONObject(); //字段
|
|
||||||
JSONObject jsonObject4 = new JSONObject(); //值
|
|
||||||
jsonObject4.put("value", "推送成功");
|
|
||||||
jsonObject3.put("zht", jsonObject4);
|
|
||||||
jsonObject1.put("data", jsonObject3);
|
|
||||||
String jsonString1 = jsonObject1.toJSONString();
|
|
||||||
NcUtils.updatas(jsonString1);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!YJSY.isEmpty()) {
|
if (!YJSY.isEmpty()) {
|
||||||
/* UUID uuid = UUID.randomUUID();
|
/* UUID uuid = UUID.randomUUID();
|
||||||
String uuidString = uuid.toString();*/
|
String uuidString = uuid.toString();*/
|
||||||
|
|
||||||
for (Object o : YJSY) {
|
for (Object o : YJSY){
|
||||||
JSONObject test = (JSONObject) o;
|
JSONObject test = (JSONObject) o;
|
||||||
|
|
||||||
String def20 = test.getString("def20");
|
String def20 = test.getString("def20");
|
||||||
String id = test.getString("ids");
|
String szxmbm = test.getString("szxmbm");
|
||||||
JSONArray jsonArray = new JSONArray();
|
JSONArray jsonArray = new JSONArray();
|
||||||
jsonArray.add(test);
|
jsonArray.add(test);
|
||||||
|
|
||||||
@ -680,52 +432,25 @@ public class A {
|
|||||||
yjds.put("def20", def20);
|
yjds.put("def20", def20);
|
||||||
yjds.put("bodys", jsonArray);
|
yjds.put("bodys", jsonArray);
|
||||||
yjds.put("memo", "YJ");
|
yjds.put("memo", "YJ");
|
||||||
|
|
||||||
String jsonString = yjds.toJSONString();
|
String jsonString = yjds.toJSONString();
|
||||||
System.out.println(jsonString);
|
System.out.println(jsonString);
|
||||||
String fukuan = NcUtils.fukuan(jsonString);
|
String fukuan = NcUtils.fukuan(jsonString);
|
||||||
System.out.println(fukuan);
|
System.out.println(fukuan);
|
||||||
if (!fukuan.contains("同步成功")) {
|
|
||||||
JSONObject jsonObject1 = new JSONObject();
|
|
||||||
jsonObject1.put("app_id", "675b8d1a24d61bca7bf1cb4c");
|
|
||||||
jsonObject1.put("entry_id", "6865ed5afa23289ab34ddc60");
|
|
||||||
jsonObject1.put("data_id", id);
|
|
||||||
jsonObject1.put("is_start_trigger", true);
|
|
||||||
JSONObject jsonObject3 = new JSONObject(); //字段
|
|
||||||
JSONObject jsonObject4 = new JSONObject(); //值
|
|
||||||
jsonObject4.put("value", fukuan);
|
|
||||||
jsonObject3.put("zht", jsonObject4);
|
|
||||||
jsonObject1.put("data", jsonObject3);
|
|
||||||
String jsonString1 = jsonObject1.toJSONString();
|
|
||||||
NcUtils.updatas(jsonString1);
|
|
||||||
} else {
|
|
||||||
JSONObject jsonObject1 = new JSONObject();
|
|
||||||
jsonObject1.put("app_id", "675b8d1a24d61bca7bf1cb4c");
|
|
||||||
jsonObject1.put("entry_id", "6865ed5afa23289ab34ddc60");
|
|
||||||
jsonObject1.put("data_id", id);
|
|
||||||
jsonObject1.put("is_start_trigger", true);
|
|
||||||
JSONObject jsonObject3 = new JSONObject(); //字段
|
|
||||||
JSONObject jsonObject4 = new JSONObject(); //值
|
|
||||||
jsonObject4.put("value", "推送成功");
|
|
||||||
jsonObject3.put("zht", jsonObject4);
|
|
||||||
jsonObject1.put("data", jsonObject3);
|
|
||||||
String jsonString1 = jsonObject1.toJSONString();
|
|
||||||
NcUtils.updatas(jsonString1);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!JYJ.isEmpty()) {
|
if (!JYJ.isEmpty()) {
|
||||||
/* UUID uuid = UUID.randomUUID();
|
/* UUID uuid = UUID.randomUUID();
|
||||||
String uuidString = uuid.toString();*/
|
String uuidString = uuid.toString();*/
|
||||||
|
|
||||||
for (Object o : JYJ) {
|
for (Object o : JYJ){
|
||||||
JSONObject test = (JSONObject) o;
|
JSONObject test = (JSONObject) o;
|
||||||
|
|
||||||
String def20 = test.getString("def20");
|
String def20 = test.getString("def20");
|
||||||
String id = test.getString("ids");
|
String szxmbm = test.getString("szxmbm");
|
||||||
JSONArray jsonArray = new JSONArray();
|
JSONArray jsonArray = new JSONArray();
|
||||||
jsonArray.add(test);
|
jsonArray.add(test);
|
||||||
|
|
||||||
@ -736,37 +461,11 @@ public class A {
|
|||||||
yjds.put("def20", def20);
|
yjds.put("def20", def20);
|
||||||
yjds.put("bodys", jsonArray);
|
yjds.put("bodys", jsonArray);
|
||||||
yjds.put("memo", "YJ");
|
yjds.put("memo", "YJ");
|
||||||
|
|
||||||
String jsonString = yjds.toJSONString();
|
String jsonString = yjds.toJSONString();
|
||||||
System.out.println(jsonString);
|
System.out.println(jsonString);
|
||||||
String fukuan = NcUtils.fukuan(jsonString);
|
String fukuan = NcUtils.fukuan(jsonString);
|
||||||
System.out.println(fukuan);
|
System.out.println(fukuan);
|
||||||
if (!fukuan.contains("同步成功")) {
|
|
||||||
JSONObject jsonObject1 = new JSONObject();
|
|
||||||
jsonObject1.put("app_id", "675b8d1a24d61bca7bf1cb4c");
|
|
||||||
jsonObject1.put("entry_id", "6865ed5afa23289ab34ddc60");
|
|
||||||
jsonObject1.put("data_id", id);
|
|
||||||
jsonObject1.put("is_start_trigger", true);
|
|
||||||
JSONObject jsonObject3 = new JSONObject(); //字段
|
|
||||||
JSONObject jsonObject4 = new JSONObject(); //值
|
|
||||||
jsonObject4.put("value", fukuan);
|
|
||||||
jsonObject3.put("zht", jsonObject4);
|
|
||||||
jsonObject1.put("data", jsonObject3);
|
|
||||||
String jsonString1 = jsonObject1.toJSONString();
|
|
||||||
NcUtils.updatas(jsonString1);
|
|
||||||
} else {
|
|
||||||
JSONObject jsonObject1 = new JSONObject();
|
|
||||||
jsonObject1.put("app_id", "675b8d1a24d61bca7bf1cb4c");
|
|
||||||
jsonObject1.put("entry_id", "6865ed5afa23289ab34ddc60");
|
|
||||||
jsonObject1.put("data_id", id);
|
|
||||||
jsonObject1.put("is_start_trigger", true);
|
|
||||||
JSONObject jsonObject3 = new JSONObject(); //字段
|
|
||||||
JSONObject jsonObject4 = new JSONObject(); //值
|
|
||||||
jsonObject4.put("value", "推送成功");
|
|
||||||
jsonObject3.put("zht", jsonObject4);
|
|
||||||
jsonObject1.put("data", jsonObject3);
|
|
||||||
String jsonString1 = jsonObject1.toJSONString();
|
|
||||||
NcUtils.updatas(jsonString1);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -776,11 +475,11 @@ public class A {
|
|||||||
/* UUID uuid = UUID.randomUUID();
|
/* UUID uuid = UUID.randomUUID();
|
||||||
String uuidString = uuid.toString();
|
String uuidString = uuid.toString();
|
||||||
*/
|
*/
|
||||||
for (Object o : JJ) {
|
for (Object o : JJ){
|
||||||
JSONObject test = (JSONObject) o;
|
JSONObject test = (JSONObject) o;
|
||||||
|
|
||||||
String def20 = test.getString("def20");
|
String def20 = test.getString("def20");
|
||||||
String id = test.getString("ids");
|
String szxmbm = test.getString("szxmbm");
|
||||||
JSONArray jsonArray = new JSONArray();
|
JSONArray jsonArray = new JSONArray();
|
||||||
jsonArray.add(test);
|
jsonArray.add(test);
|
||||||
|
|
||||||
@ -791,37 +490,11 @@ public class A {
|
|||||||
yjds.put("def20", def20);
|
yjds.put("def20", def20);
|
||||||
yjds.put("bodys", jsonArray);
|
yjds.put("bodys", jsonArray);
|
||||||
yjds.put("memo", "YJ");
|
yjds.put("memo", "YJ");
|
||||||
|
|
||||||
String jsonString = yjds.toJSONString();
|
String jsonString = yjds.toJSONString();
|
||||||
System.out.println(jsonString);
|
System.out.println(jsonString);
|
||||||
String fukuan = NcUtils.fukuan(jsonString);
|
String fukuan = NcUtils.fukuan(jsonString);
|
||||||
System.out.println(fukuan);
|
System.out.println(fukuan);
|
||||||
if (!fukuan.contains("同步成功")) {
|
|
||||||
JSONObject jsonObject1 = new JSONObject();
|
|
||||||
jsonObject1.put("app_id", "675b8d1a24d61bca7bf1cb4c");
|
|
||||||
jsonObject1.put("entry_id", "6865ed5afa23289ab34ddc60");
|
|
||||||
jsonObject1.put("data_id", id);
|
|
||||||
jsonObject1.put("is_start_trigger", true);
|
|
||||||
JSONObject jsonObject3 = new JSONObject(); //字段
|
|
||||||
JSONObject jsonObject4 = new JSONObject(); //值
|
|
||||||
jsonObject4.put("value", fukuan);
|
|
||||||
jsonObject3.put("zht", jsonObject4);
|
|
||||||
jsonObject1.put("data", jsonObject3);
|
|
||||||
String jsonString1 = jsonObject1.toJSONString();
|
|
||||||
NcUtils.updatas(jsonString1);
|
|
||||||
} else {
|
|
||||||
JSONObject jsonObject1 = new JSONObject();
|
|
||||||
jsonObject1.put("app_id", "675b8d1a24d61bca7bf1cb4c");
|
|
||||||
jsonObject1.put("entry_id", "6865ed5afa23289ab34ddc60");
|
|
||||||
jsonObject1.put("data_id", id);
|
|
||||||
jsonObject1.put("is_start_trigger", true);
|
|
||||||
JSONObject jsonObject3 = new JSONObject(); //字段
|
|
||||||
JSONObject jsonObject4 = new JSONObject(); //值
|
|
||||||
jsonObject4.put("value", "推送成功");
|
|
||||||
jsonObject3.put("zht", jsonObject4);
|
|
||||||
jsonObject1.put("data", jsonObject3);
|
|
||||||
String jsonString1 = jsonObject1.toJSONString();
|
|
||||||
NcUtils.updatas(jsonString1);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -831,11 +504,11 @@ public class A {
|
|||||||
/* UUID uuid = UUID.randomUUID();
|
/* UUID uuid = UUID.randomUUID();
|
||||||
String uuidString = uuid.toString();
|
String uuidString = uuid.toString();
|
||||||
*/
|
*/
|
||||||
for (Object o : HJ) {
|
for (Object o : HJ){
|
||||||
JSONObject test = (JSONObject) o;
|
JSONObject test = (JSONObject) o;
|
||||||
|
|
||||||
String def20 = test.getString("def20");
|
String def20 = test.getString("def20");
|
||||||
String id = test.getString("ids");
|
String szxmbm = test.getString("szxmbm");
|
||||||
JSONArray jsonArray = new JSONArray();
|
JSONArray jsonArray = new JSONArray();
|
||||||
jsonArray.add(test);
|
jsonArray.add(test);
|
||||||
|
|
||||||
@ -846,44 +519,16 @@ public class A {
|
|||||||
yjds.put("def20", def20);
|
yjds.put("def20", def20);
|
||||||
yjds.put("bodys", jsonArray);
|
yjds.put("bodys", jsonArray);
|
||||||
yjds.put("memo", "YJ");
|
yjds.put("memo", "YJ");
|
||||||
|
|
||||||
String jsonString = yjds.toJSONString();
|
String jsonString = yjds.toJSONString();
|
||||||
System.out.println(jsonString);
|
System.out.println(jsonString);
|
||||||
String fukuan = NcUtils.fukuan(jsonString);
|
String fukuan = NcUtils.fukuan(jsonString);
|
||||||
System.out.println(fukuan);
|
System.out.println(fukuan);
|
||||||
if (!fukuan.contains("同步成功")) {
|
|
||||||
JSONObject jsonObject1 = new JSONObject();
|
|
||||||
jsonObject1.put("app_id", "675b8d1a24d61bca7bf1cb4c");
|
|
||||||
jsonObject1.put("entry_id", "6865ed5afa23289ab34ddc60");
|
|
||||||
jsonObject1.put("data_id", id);
|
|
||||||
jsonObject1.put("is_start_trigger", true);
|
|
||||||
JSONObject jsonObject3 = new JSONObject(); //字段
|
|
||||||
JSONObject jsonObject4 = new JSONObject(); //值
|
|
||||||
jsonObject4.put("value", fukuan);
|
|
||||||
jsonObject3.put("zht", jsonObject4);
|
|
||||||
jsonObject1.put("data", jsonObject3);
|
|
||||||
String jsonString1 = jsonObject1.toJSONString();
|
|
||||||
NcUtils.updatas(jsonString1);
|
|
||||||
} else {
|
|
||||||
JSONObject jsonObject1 = new JSONObject();
|
|
||||||
jsonObject1.put("app_id", "675b8d1a24d61bca7bf1cb4c");
|
|
||||||
jsonObject1.put("entry_id", "6865ed5afa23289ab34ddc60");
|
|
||||||
jsonObject1.put("data_id", id);
|
|
||||||
jsonObject1.put("is_start_trigger", true);
|
|
||||||
JSONObject jsonObject3 = new JSONObject(); //字段
|
|
||||||
JSONObject jsonObject4 = new JSONObject(); //值
|
|
||||||
jsonObject4.put("value", "推送成功");
|
|
||||||
jsonObject3.put("zht", jsonObject4);
|
|
||||||
jsonObject1.put("data", jsonObject3);
|
|
||||||
String jsonString1 = jsonObject1.toJSONString();
|
|
||||||
NcUtils.updatas(jsonString1);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -458,7 +458,7 @@ public class B {
|
|||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
if (pkOrg.equals("银建(山西)汽车服务有限公司") && zht.equals("1")) {
|
if (pkOrg.equals("海南银建汽车服务有限公司") && zht.equals("1")) {
|
||||||
JSONObject jsonObject = new JSONObject();
|
JSONObject jsonObject = new JSONObject();
|
||||||
jsonObject.put("pk_account", string);
|
jsonObject.put("pk_account", string);
|
||||||
jsonObject.put("objecttype", "0");
|
jsonObject.put("objecttype", "0");
|
||||||
@ -921,7 +921,7 @@ public class B {
|
|||||||
jsonArray.add(test);
|
jsonArray.add(test);
|
||||||
|
|
||||||
JSONObject yjds = new JSONObject();
|
JSONObject yjds = new JSONObject();
|
||||||
yjds.put("pk_org", "银建(山西)汽车服务有限公司");
|
yjds.put("pk_org", "海南银建汽车服务有限公司");
|
||||||
yjds.put("bill_date", wbtime);
|
yjds.put("bill_date", wbtime);
|
||||||
yjds.put("pk_balatype", "3");
|
yjds.put("pk_balatype", "3");
|
||||||
yjds.put("def20", def20);
|
yjds.put("def20", def20);
|
||||||
|
|||||||
Reference in New Issue
Block a user