330 lines
14 KiB
Plaintext
330 lines
14 KiB
Plaintext
|
{
|
|||
|
"properties" : { },
|
|||
|
"id" : "89c69bcd049d47228b3298cf0e318756",
|
|||
|
"script" : null,
|
|||
|
"groupId" : "55b38df92caf40b99b60fcc88e5ce361",
|
|||
|
"name" : "查询日志",
|
|||
|
"createTime" : null,
|
|||
|
"updateTime" : 1749615961240,
|
|||
|
"lock" : null,
|
|||
|
"createBy" : null,
|
|||
|
"updateBy" : null,
|
|||
|
"path" : "/query/log_data",
|
|||
|
"method" : "GET",
|
|||
|
"parameters" : [ {
|
|||
|
"name" : "table",
|
|||
|
"value" : "send_log_htxx",
|
|||
|
"description" : null,
|
|||
|
"required" : true,
|
|||
|
"dataType" : "String",
|
|||
|
"type" : null,
|
|||
|
"defaultValue" : null,
|
|||
|
"validateType" : null,
|
|||
|
"error" : null,
|
|||
|
"expression" : null,
|
|||
|
"children" : null
|
|||
|
}, {
|
|||
|
"name" : "dataId",
|
|||
|
"value" : "68402bae3bf7c10001a2df32",
|
|||
|
"description" : null,
|
|||
|
"required" : false,
|
|||
|
"dataType" : "String",
|
|||
|
"type" : null,
|
|||
|
"defaultValue" : null,
|
|||
|
"validateType" : null,
|
|||
|
"error" : null,
|
|||
|
"expression" : null,
|
|||
|
"children" : null
|
|||
|
}, {
|
|||
|
"name" : "mark",
|
|||
|
"value" : "1749084392443",
|
|||
|
"description" : null,
|
|||
|
"required" : false,
|
|||
|
"dataType" : "String",
|
|||
|
"type" : null,
|
|||
|
"defaultValue" : null,
|
|||
|
"validateType" : null,
|
|||
|
"error" : null,
|
|||
|
"expression" : null,
|
|||
|
"children" : null
|
|||
|
}, {
|
|||
|
"name" : "log_type",
|
|||
|
"value" : "XSHT",
|
|||
|
"description" : null,
|
|||
|
"required" : false,
|
|||
|
"dataType" : "String",
|
|||
|
"type" : null,
|
|||
|
"defaultValue" : null,
|
|||
|
"validateType" : null,
|
|||
|
"error" : null,
|
|||
|
"expression" : null,
|
|||
|
"children" : null
|
|||
|
} ],
|
|||
|
"options" : [ ],
|
|||
|
"requestBody" : "",
|
|||
|
"headers" : [ ],
|
|||
|
"paths" : [ ],
|
|||
|
"responseBody" : "{\n \"code\": 200,\n \"message\": \"success\",\n \"data\": [{\n \"logId\": \"08380a4057b3489b8e7952503c73e33e\",\n \"logType\": \"XSHT\",\n \"logStatus\": \"0\",\n \"synType\": \"0\",\n \"dataId\": \"68402bae3bf7c10001a2df32\",\n \"dataName\": \"ZHY2506040011\",\n \"mark\": \"1749084392443\",\n \"resBody\": \"同步成功\",\n \"markId\": null,\n \"sendUrl\": null,\n \"sendBody\": \"{\\\"body\\\":{\\\"data\\\":[{\\\"billname\\\":\\\"20250415095820391422(20250604测试)\\\",\\\"customer_number\\\":\\\"K01430013\\\",\\\"installationmethod\\\":\\\"opt1\\\",\\\"city\\\":\\\"湖南省\\\",\\\"payingcustomer_number\\\":\\\"K01430013\\\",\\\"county\\\":\\\"2251\\\",\\\"type_number\\\":\\\"XSHT-QD01\\\",\\\"reccustomer_number\\\":\\\"K01430013\\\",\\\"zhybilltype\\\":\\\"opt1\\\",\\\"totalallamount\\\":0,\\\"projectsource\\\":\\\"opt3\\\",\\\"party1st\\\":\\\"湖南星航电力科技有限公司\\\",\\\"operator\\\":\\\"ZHY11191\\\",\\\"industrytype_number\\\":\\\"opt1\\\",\\\"bizmode\\\":\\\"C\\\",\\\"crmid\\\":\\\"68402bae3bf7c10001a2df32\\\",\\\"billtype_number\\\":\\\"conm_salcontract_BT_QD\\\",\\\"province\\\":\\\"湖南省\\\",\\\"currency_number\\\":\\\"CNY\\\",\\\"salesmethod\\\":\\\"opt2\\\",\\\"biztimeend\\\":1744646400000,\\\"station\\\":\\\"opt2\\\",\\\"warranty\\\":24,\\\"biztime\\\":1744646400000,\\\"customerpropert\\\":\\\"opt2\\\",\\\"party2nd\\\":\\\"智洋创新科技股份有限公司\\\",\\\"deviceqty\\\":0,\\\"delivery\\\":false,\\\"biztimebegin\\\":1744646400000,\\\"isbidding\\\":false,\\\"dept\\\":\\\"004\\\",\\\"createorg_number\\\":\\\"ZHY\\\",\\\"contparties_number\\\":\\\"ZHY\\\",\\\"productline_number\\\":\\\"opt1\\\",\\\"project_number\\\":\\\"SJ20250604-0480\\\",\\\"billentry\\\":[{\\\"unit1_number\\\":\\\"pcs\\\",\\\"f9w5_unit1_number\\\":\\\"pcs\\\",\\\"baseunit\\\":\\\"套\\\",\\\"taxrateid_number\\\":\\\"V13\\\",\\\"linetype_number\\\":\\\"020\\\",\\\"specification\\\":\\\"无\\\",\\\"baseqty\\\":2,\\\"goodsname\\\":\\\"线路在线监测装置, 视频在线监测装置\\\",\\\"crmentryid\\\":\\\"68402bae3bf7c10001a2df33\\\",\\\"unit_number\\\":\\\"pcs\\\",\\\"material_number\\\":\\\"TEST0001\\\",\\\"qty\\\":2,\\\"curamountandtax\\\":53000.00,\\\"priceandtax\\\":26500.00}],\\\"org_number\\\":\\\"ZHY\\\",\\\"settlecurrency_number\\\":\\\"CNY\\\",\\\"settlecustomer_number\\\":\\\"K01430013\\\",\\\"billno\\\":\\\"ZHY2506040011\\\"}]},\\\"headers\\\":{\\\"Content-Type\\\":[\\\"application/json\\\"],\\\"accessToken\\\":[\\\"2095345516136108032_1IUXws7URzEN2w5yui9HYbtRNXcmFDGZ42aUIqhyVV8dMfy7GV2EiEwAJq4JzGWhDKPzAVPgQwC5phRjGh6sid53qc88G6e9NmQS00\\\"],\\\"Idempotency-Key\\\":[\\\"96a5582c51984b479fad836c84f38d10\\\"]}}\",\n \"sendRes\": \"{\\\"data\\\":{\\\"failCount\\\":\\\"0\\\",\\\"result\\\":[{\\\"billIndex\\\":0,\\\"billStatus\\\":true,\\\"errors\\\":[],\\\"id\\\":\\\"2230400248864334848\\\",\\\"keys\\\":{\\\"f9w5_crmid\\\":\\\"68402bae3bf7c10001a2df32\\\"},\\\"number\\\":\\\"ZHY2506040011\\\",\\\"type\\\":\\\"Add\\\"}],\\\"successCount\\\":\\\"1\\\"},\\\"errorCode\\\":\\\"0\\\",\\\"status\\\":true}\",\n \"sendFlag\": null,\n \"sendMemo\": null\n }],\n \"timestamp\": 1749615949677,\n \"executeTime\": 67\n}",
|
|||
|
"description" : null,
|
|||
|
"requestBodyDefinition" : null,
|
|||
|
"responseBodyDefinition" : {
|
|||
|
"name" : "",
|
|||
|
"value" : "",
|
|||
|
"description" : "",
|
|||
|
"required" : false,
|
|||
|
"dataType" : "Object",
|
|||
|
"type" : null,
|
|||
|
"defaultValue" : null,
|
|||
|
"validateType" : "",
|
|||
|
"error" : "",
|
|||
|
"expression" : "",
|
|||
|
"children" : [ {
|
|||
|
"name" : "code",
|
|||
|
"value" : "200",
|
|||
|
"description" : "",
|
|||
|
"required" : false,
|
|||
|
"dataType" : "Integer",
|
|||
|
"type" : null,
|
|||
|
"defaultValue" : null,
|
|||
|
"validateType" : "",
|
|||
|
"error" : "",
|
|||
|
"expression" : "",
|
|||
|
"children" : [ ]
|
|||
|
}, {
|
|||
|
"name" : "message",
|
|||
|
"value" : "success",
|
|||
|
"description" : "",
|
|||
|
"required" : false,
|
|||
|
"dataType" : "String",
|
|||
|
"type" : null,
|
|||
|
"defaultValue" : null,
|
|||
|
"validateType" : "",
|
|||
|
"error" : "",
|
|||
|
"expression" : "",
|
|||
|
"children" : [ ]
|
|||
|
}, {
|
|||
|
"name" : "data",
|
|||
|
"value" : "",
|
|||
|
"description" : "",
|
|||
|
"required" : false,
|
|||
|
"dataType" : "Array",
|
|||
|
"type" : null,
|
|||
|
"defaultValue" : null,
|
|||
|
"validateType" : "",
|
|||
|
"error" : "",
|
|||
|
"expression" : "",
|
|||
|
"children" : [ {
|
|||
|
"name" : "",
|
|||
|
"value" : "",
|
|||
|
"description" : "",
|
|||
|
"required" : false,
|
|||
|
"dataType" : "Object",
|
|||
|
"type" : null,
|
|||
|
"defaultValue" : null,
|
|||
|
"validateType" : "",
|
|||
|
"error" : "",
|
|||
|
"expression" : "",
|
|||
|
"children" : [ {
|
|||
|
"name" : "logId",
|
|||
|
"value" : "08380a4057b3489b8e7952503c73e33e",
|
|||
|
"description" : "",
|
|||
|
"required" : false,
|
|||
|
"dataType" : "String",
|
|||
|
"type" : null,
|
|||
|
"defaultValue" : null,
|
|||
|
"validateType" : "",
|
|||
|
"error" : "",
|
|||
|
"expression" : "",
|
|||
|
"children" : [ ]
|
|||
|
}, {
|
|||
|
"name" : "logType",
|
|||
|
"value" : "XSHT",
|
|||
|
"description" : "",
|
|||
|
"required" : false,
|
|||
|
"dataType" : "String",
|
|||
|
"type" : null,
|
|||
|
"defaultValue" : null,
|
|||
|
"validateType" : "",
|
|||
|
"error" : "",
|
|||
|
"expression" : "",
|
|||
|
"children" : [ ]
|
|||
|
}, {
|
|||
|
"name" : "logStatus",
|
|||
|
"value" : "0",
|
|||
|
"description" : "",
|
|||
|
"required" : false,
|
|||
|
"dataType" : "String",
|
|||
|
"type" : null,
|
|||
|
"defaultValue" : null,
|
|||
|
"validateType" : "",
|
|||
|
"error" : "",
|
|||
|
"expression" : "",
|
|||
|
"children" : [ ]
|
|||
|
}, {
|
|||
|
"name" : "synType",
|
|||
|
"value" : "0",
|
|||
|
"description" : "",
|
|||
|
"required" : false,
|
|||
|
"dataType" : "String",
|
|||
|
"type" : null,
|
|||
|
"defaultValue" : null,
|
|||
|
"validateType" : "",
|
|||
|
"error" : "",
|
|||
|
"expression" : "",
|
|||
|
"children" : [ ]
|
|||
|
}, {
|
|||
|
"name" : "dataId",
|
|||
|
"value" : "68402bae3bf7c10001a2df32",
|
|||
|
"description" : "",
|
|||
|
"required" : false,
|
|||
|
"dataType" : "String",
|
|||
|
"type" : null,
|
|||
|
"defaultValue" : null,
|
|||
|
"validateType" : "",
|
|||
|
"error" : "",
|
|||
|
"expression" : "",
|
|||
|
"children" : [ ]
|
|||
|
}, {
|
|||
|
"name" : "dataName",
|
|||
|
"value" : "ZHY2506040011",
|
|||
|
"description" : "",
|
|||
|
"required" : false,
|
|||
|
"dataType" : "String",
|
|||
|
"type" : null,
|
|||
|
"defaultValue" : null,
|
|||
|
"validateType" : "",
|
|||
|
"error" : "",
|
|||
|
"expression" : "",
|
|||
|
"children" : [ ]
|
|||
|
}, {
|
|||
|
"name" : "mark",
|
|||
|
"value" : "1749084392443",
|
|||
|
"description" : "",
|
|||
|
"required" : false,
|
|||
|
"dataType" : "String",
|
|||
|
"type" : null,
|
|||
|
"defaultValue" : null,
|
|||
|
"validateType" : "",
|
|||
|
"error" : "",
|
|||
|
"expression" : "",
|
|||
|
"children" : [ ]
|
|||
|
}, {
|
|||
|
"name" : "resBody",
|
|||
|
"value" : "同步成功",
|
|||
|
"description" : "",
|
|||
|
"required" : false,
|
|||
|
"dataType" : "String",
|
|||
|
"type" : null,
|
|||
|
"defaultValue" : null,
|
|||
|
"validateType" : "",
|
|||
|
"error" : "",
|
|||
|
"expression" : "",
|
|||
|
"children" : [ ]
|
|||
|
}, {
|
|||
|
"name" : "markId",
|
|||
|
"value" : "null",
|
|||
|
"description" : "",
|
|||
|
"required" : false,
|
|||
|
"dataType" : "Object",
|
|||
|
"type" : null,
|
|||
|
"defaultValue" : null,
|
|||
|
"validateType" : "",
|
|||
|
"error" : "",
|
|||
|
"expression" : "",
|
|||
|
"children" : [ ]
|
|||
|
}, {
|
|||
|
"name" : "sendUrl",
|
|||
|
"value" : "null",
|
|||
|
"description" : "",
|
|||
|
"required" : false,
|
|||
|
"dataType" : "Object",
|
|||
|
"type" : null,
|
|||
|
"defaultValue" : null,
|
|||
|
"validateType" : "",
|
|||
|
"error" : "",
|
|||
|
"expression" : "",
|
|||
|
"children" : [ ]
|
|||
|
}, {
|
|||
|
"name" : "sendBody",
|
|||
|
"value" : "{\\\"body\\\":{\\\"data\\\":[{\\\"billname\\\":\\\"20250415095820391422(20250604测试)\\\",\\\"customer_number\\\":\\\"K01430013\\\",\\\"installationmethod\\\":\\\"opt1\\\",\\\"city\\\":\\\"湖南省\\\",\\\"payingcustomer_number\\\":\\\"K01430013\\\",\\\"county\\\":\\\"2251\\\",\\\"type_number\\\":\\\"XSHT-QD01\\\",\\\"reccustomer_number\\\":\\\"K01430013\\\",\\\"zhybilltype\\\":\\\"opt1\\\",\\\"totalallamount\\\":0,\\\"projectsource\\\":\\\"opt3\\\",\\\"party1st\\\":\\\"湖南星航电力科技有限公司\\\",\\\"operator\\\":\\\"ZHY11191\\\",\\\"industrytype_number\\\":\\\"opt1\\\",\\\"bizmode\\\":\\\"C\\\",\\\"crmid\\\":\\\"68402bae3bf7c10001a2df32\\\",\\\"billtype_number\\\":\\\"conm_salcontract_BT_QD\\\",\\\"province\\\":\\\"湖南省\\\",\\\"currency_number\\\":\\\"CNY\\\",\\\"salesmethod\\\":\\\"opt2\\\",\\\"biztimeend\\\":1744646400000,\\\"station\\\":\\\"opt2\\\",\\\"warranty\\\":24,\\\"biztime\\\":1744646400000,\\\"customerpropert\\\":\\\"opt2\\\",\\\"party2nd\\\":\\\"智洋创新科技股份有限公司\\\",\\\"deviceqty\\\":0,\\\"delivery\\\":false,\\\"biztimebegin\\\":1744646400000,\\\"isbidding\\\":false,\\\"dept\\\":\\\"004\\\",\\\"createorg_number\\\":\\\"ZHY\\\",\\\"contparties_number\\\":\\\"ZHY\\\",\\\"productline_number\\\":\\\"opt1\\\",\\\"project_number\\\":\\\"SJ20250604-0480\\\",\\\"billentry\\\":[{\\\"unit1_number\\\":\\\"pcs\\\",\\\"f9w5_unit1_number\\\":\\\"pcs\\\",\\\"baseunit\\\":\\\"套\\\",\\\"taxrateid_number\\\":\\\"V13\\\",\\\"linetype_number\\\":\\\"020\\\",\\\"specification\\\":\\\"无\\\",\\\"baseqty\\\":2,\\\"goodsname\\\":\\\"线路在线监测装置, 视频在线监测装置\\\",\\\"crmentryid\\\":\\\"68402bae3bf7c10001a2df33\\\",\\\"unit_number\\\":\\\"pcs\\\",\\\"material_number\\\":\\\"TEST0001\\\",\\\"qty\\\":2,\\\"curamountandtax\\\":53000.00,\\\"priceandtax\\\":26500.00}],\\\"org_number\\\":\\\"ZHY\\\",\\\"settlecurrency_number\\\":\\\"CNY\\\",\\\"settlecustomer_number\\\":\\\"K01430013\\\",\\\"billno\\\":\\\"ZHY2506040011\\\"}]},\\\"headers\\\":{\\\"Content-Type\\\":[\\\"application/json\\\"],\\\"accessToken\\\":[\\\"2095345516136108032_1IUXws7URzEN2w5yui9HYbtRNXcmFDGZ42aUIqhyVV8dMfy7GV2EiEwAJq4JzGWhDKPzAVPgQwC5phRjGh6sid53qc88G6e9NmQS00\\\"],\\\"Idempotency-Key\\\":[\\\"96a5582c51984b479fad836c84f38d10\\\"]}}",
|
|||
|
"description" : "",
|
|||
|
"required" : false,
|
|||
|
"dataType" : "String",
|
|||
|
"type" : null,
|
|||
|
"defaultValue" : null,
|
|||
|
"validateType" : "",
|
|||
|
"error" : "",
|
|||
|
"expression" : "",
|
|||
|
"children" : [ ]
|
|||
|
}, {
|
|||
|
"name" : "sendRes",
|
|||
|
"value" : "{\\\"data\\\":{\\\"failCount\\\":\\\"0\\\",\\\"result\\\":[{\\\"billIndex\\\":0,\\\"billStatus\\\":true,\\\"errors\\\":[],\\\"id\\\":\\\"2230400248864334848\\\",\\\"keys\\\":{\\\"f9w5_crmid\\\":\\\"68402bae3bf7c10001a2df32\\\"},\\\"number\\\":\\\"ZHY2506040011\\\",\\\"type\\\":\\\"Add\\\"}],\\\"successCount\\\":\\\"1\\\"},\\\"errorCode\\\":\\\"0\\\",\\\"status\\\":true}",
|
|||
|
"description" : "",
|
|||
|
"required" : false,
|
|||
|
"dataType" : "String",
|
|||
|
"type" : null,
|
|||
|
"defaultValue" : null,
|
|||
|
"validateType" : "",
|
|||
|
"error" : "",
|
|||
|
"expression" : "",
|
|||
|
"children" : [ ]
|
|||
|
}, {
|
|||
|
"name" : "sendFlag",
|
|||
|
"value" : "null",
|
|||
|
"description" : "",
|
|||
|
"required" : false,
|
|||
|
"dataType" : "Object",
|
|||
|
"type" : null,
|
|||
|
"defaultValue" : null,
|
|||
|
"validateType" : "",
|
|||
|
"error" : "",
|
|||
|
"expression" : "",
|
|||
|
"children" : [ ]
|
|||
|
}, {
|
|||
|
"name" : "sendMemo",
|
|||
|
"value" : "null",
|
|||
|
"description" : "",
|
|||
|
"required" : false,
|
|||
|
"dataType" : "Object",
|
|||
|
"type" : null,
|
|||
|
"defaultValue" : null,
|
|||
|
"validateType" : "",
|
|||
|
"error" : "",
|
|||
|
"expression" : "",
|
|||
|
"children" : [ ]
|
|||
|
} ]
|
|||
|
} ]
|
|||
|
}, {
|
|||
|
"name" : "timestamp",
|
|||
|
"value" : "1749615949677",
|
|||
|
"description" : "",
|
|||
|
"required" : false,
|
|||
|
"dataType" : "Long",
|
|||
|
"type" : null,
|
|||
|
"defaultValue" : null,
|
|||
|
"validateType" : "",
|
|||
|
"error" : "",
|
|||
|
"expression" : "",
|
|||
|
"children" : [ ]
|
|||
|
}, {
|
|||
|
"name" : "executeTime",
|
|||
|
"value" : "67",
|
|||
|
"description" : "",
|
|||
|
"required" : false,
|
|||
|
"dataType" : "Integer",
|
|||
|
"type" : null,
|
|||
|
"defaultValue" : null,
|
|||
|
"validateType" : "",
|
|||
|
"error" : "",
|
|||
|
"expression" : "",
|
|||
|
"children" : [ ]
|
|||
|
} ]
|
|||
|
}
|
|||
|
}
|
|||
|
================================
|
|||
|
return db.Log.select("""
|
|||
|
|
|||
|
select log_id,log_type,log_status,syn_type,data_id,data_name,mark,res_body,mark_id,send_url,send_body,send_res,send_flag,send_memo from ${table}
|
|||
|
where log_type = #{log_type} and data_id = #{dataId} and mark = #{mark}
|
|||
|
|
|||
|
""")
|