改bug
This commit is contained in:
@ -10,6 +10,7 @@ import org.springframework.scheduling.annotation.Scheduled;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
@Component
|
||||
@Slf4j
|
||||
public class JiaoTong1 {
|
||||
@ -291,12 +292,12 @@ public class JiaoTong1 {
|
||||
JSONArray JYJ = new JSONArray();
|
||||
JSONArray JJ = new JSONArray();
|
||||
JSONArray HJ = new JSONArray();
|
||||
JSONArray GL = new JSONArray();
|
||||
|
||||
JSONArray SH = new JSONArray();
|
||||
String wbtime = "";
|
||||
|
||||
|
||||
|
||||
JSONArray shouyinmingxi1 = ShouYinMingXi.jiaotong20();
|
||||
for (Object khda : shouyinmingxi1) {
|
||||
JSONObject khdas = (JSONObject) khda;
|
||||
@ -491,6 +492,33 @@ public class JiaoTong1 {
|
||||
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);
|
||||
jsonObject.put("pk_recproject", szxmbm);
|
||||
GL.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);
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@ -630,6 +658,33 @@ public class JiaoTong1 {
|
||||
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);
|
||||
jsonObject.put("pk_recproject", szxmbm);
|
||||
GL.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);
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@ -987,9 +1042,62 @@ public class JiaoTong1 {
|
||||
|
||||
}
|
||||
}
|
||||
if (!GL.isEmpty()) {
|
||||
/* UUID uuid = UUID.randomUUID();
|
||||
String uuidString = uuid.toString();
|
||||
*/
|
||||
for (Object o : GL) {
|
||||
JSONObject test = (JSONObject) o;
|
||||
|
||||
String def20 = test.getString("def20");
|
||||
String id = test.getString("ids");
|
||||
String szxmbm = test.getString("szxmbm");
|
||||
JSONArray jsonArray = new JSONArray();
|
||||
jsonArray.add(test);
|
||||
|
||||
JSONObject yjds = new JSONObject();
|
||||
yjds.put("pk_org", "银建国际旅行社有限公司");
|
||||
yjds.put("bill_date", wbtime);
|
||||
yjds.put("pk_balatype", "13");
|
||||
yjds.put("def20", def20);
|
||||
yjds.put("bodys", jsonArray);
|
||||
yjds.put("memo", "GL");
|
||||
|
||||
String jsonString = yjds.toJSONString();
|
||||
System.out.println(jsonString);
|
||||
String fukuan = NcUtils.fukuan(jsonString);
|
||||
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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user