135 lines
3.2 KiB
Plaintext
135 lines
3.2 KiB
Plaintext
|
{
|
||
|
"properties" : { },
|
||
|
"id" : "95d66a27a4794b8c8126ad131743da56",
|
||
|
"script" : null,
|
||
|
"groupId" : "4506c21162d24d4c81bad5bc8707672a",
|
||
|
"name" : "查询客户分类同步",
|
||
|
"createTime" : null,
|
||
|
"updateTime" : 1744339012019,
|
||
|
"lock" : null,
|
||
|
"createBy" : null,
|
||
|
"updateBy" : null,
|
||
|
"path" : "/querygroup",
|
||
|
"method" : "GET",
|
||
|
"parameters" : [ {
|
||
|
"name" : "sendType",
|
||
|
"value" : "group",
|
||
|
"description" : null,
|
||
|
"required" : false,
|
||
|
"dataType" : "String",
|
||
|
"type" : null,
|
||
|
"defaultValue" : null,
|
||
|
"validateType" : null,
|
||
|
"error" : null,
|
||
|
"expression" : null,
|
||
|
"children" : null
|
||
|
}, {
|
||
|
"name" : "dataId",
|
||
|
"value" : "北京市",
|
||
|
"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 \"timestamp\": 1744339010854,\n \"executeTime\": 91\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" : "timestamp",
|
||
|
"value" : "1744339010854",
|
||
|
"description" : "",
|
||
|
"required" : false,
|
||
|
"dataType" : "Long",
|
||
|
"type" : null,
|
||
|
"defaultValue" : null,
|
||
|
"validateType" : "",
|
||
|
"error" : "",
|
||
|
"expression" : "",
|
||
|
"children" : [ ]
|
||
|
}, {
|
||
|
"name" : "executeTime",
|
||
|
"value" : "91",
|
||
|
"description" : "",
|
||
|
"required" : false,
|
||
|
"dataType" : "Integer",
|
||
|
"type" : null,
|
||
|
"defaultValue" : null,
|
||
|
"validateType" : "",
|
||
|
"error" : "",
|
||
|
"expression" : "",
|
||
|
"children" : [ ]
|
||
|
} ]
|
||
|
}
|
||
|
}
|
||
|
================================
|
||
|
//查询本机mysql
|
||
|
return db.select(
|
||
|
"""
|
||
|
SELECT * FROM `send_log_customergroup` where
|
||
|
log_type=#{sendType}
|
||
|
<if test="dataId != null">
|
||
|
and data_id=#{dataId}
|
||
|
</if>
|
||
|
<if test="sendSyn != null">
|
||
|
and syn_type=#{sendSyn}
|
||
|
</if>
|
||
|
|
||
|
order by create_time desc
|
||
|
|
||
|
""");
|