package com.example.sso.newdao; import com.alibaba.fastjson.JSONObject; import com.example.sso.util.V5utils; public class ChuZuChePiao { public static void add(String fplx, String invoiceCode, String invoiceNum, String date, String startTime, String endTime, String carNum, String totalAmount, String amount,String staff_code ) { JSONObject jsonObject = new JSONObject(); jsonObject.put("app_id", "675b8d1a24d61bca7bf1cb4c"); jsonObject.put("entry_id", "6771fad15daf3616d574b3e7"); jsonObject.put("is_start_trigger", true); JSONObject data = new JSONObject(); JSONObject invoice_type = new JSONObject(); invoice_type.put("value", fplx); data.put("invoice_type", invoice_type); JSONObject invoice_code = new JSONObject(); invoice_code.put("value", invoiceCode); data.put("invoice_code", invoice_code); JSONObject invoice_num = new JSONObject(); invoice_num.put("value", invoiceNum); data.put("invoice_num", invoice_num); JSONObject invoice_date = new JSONObject(); invoice_date.put("value", date); data.put("invoice_date", invoice_date); JSONObject up_time = new JSONObject(); up_time.put("value", startTime); data.put("up_time", up_time); JSONObject down_time = new JSONObject(); down_time.put("value", endTime); data.put("down_time", down_time); JSONObject car_num = new JSONObject(); car_num.put("value", carNum); data.put("car_num", car_num); JSONObject real_fee = new JSONObject(); real_fee.put("value", totalAmount); data.put("real_fee", real_fee); JSONObject amount_fee = new JSONObject(); amount_fee.put("value", amount); data.put("amount_fee", amount_fee); JSONObject staff_code1 = new JSONObject(); staff_code1.put("value",staff_code); data.put("staff_code",staff_code1); jsonObject.put("data", data); String jsonString = jsonObject.toJSONString(); V5utils.add(jsonString); } }