Commit 50c376df71a8e71e73ca64b4e16dd08badece02d

Authored by 王富国
1 parent 0784402f
Exists in master

feat:增加金润对接钉钉审批接口增加完整示例

Showing 1 changed file with 77 additions and 0 deletions   Show diff stats
jinrun/audit/审批接口.md
... ... @@ -200,6 +200,83 @@ public static void main(String[] args) {
200 200 }
201 201 ```
202 202  
  203 +#### 完整示例
  204 +```java
  205 +String appKey = "bd95591ce63f4a78a54658c2d8ad5ff6";
  206 + String appSecret = "734a18117f614e60859efb8eea27c680";
  207 + String aesSecret = "wJ3472SLpkZLnjtwMArhRg==";
  208 + ZYClient zyClient = new ZYClient(appKey, appSecret);
  209 + String data = "{\n" +
  210 + " \"code\": \"JR202511060000016\",\n" +
  211 + " \"auditType\": \"JINRUN_VEHICLE_FEE_AUDIT\",\n" +
  212 + " \"username\": \"001073\",\n" +
  213 + " \"auditFormList\": [\n" +
  214 + " {\n" +
  215 + " \"type\": \"text\",\n" +
  216 + " \"name\": \"billCode\",\n" +
  217 + " \"value\": \"FYBX251106001\"\n" +
  218 + " },\n" +
  219 + " {\n" +
  220 + " \"type\": \"text\",\n" +
  221 + " \"name\": \"billMonth\",\n" +
  222 + " \"value\": \"2025-11\"\n" +
  223 + " },\n" +
  224 + " {\n" +
  225 + " \"type\": \"text\",\n" +
  226 + " \"name\": \"amount\",\n" +
  227 + " \"value\": \"2100\"\n" +
  228 + " },\n" +
  229 + " {\n" +
  230 + " \"type\": \"text\",\n" +
  231 + " \"name\": \"detail\",\n" +
  232 + " \"value\": \"[{\\\"车牌号\\\":\\\"沪A11111\\\",\\\"金额\\\":\\\"1000\\\",\\\"费用类型\\\":\\\"行车费用\\\",\\\"项目\\\":\\\"宁德项目\\\",\\\"备注\\\":\\\"沪A11111 2025年11月6号住宿费\\\"}]\"\n" +
  233 + " },\n" +
  234 + " {\n" +
  235 + " \"type\": \"text\",\n" +
  236 + " \"name\": \"paySubject\",\n" +
  237 + " \"value\": \"金润\"\n" +
  238 + " },\n" +
  239 + " {\n" +
  240 + " \"type\": \"text\",\n" +
  241 + " \"name\": \"accountName\",\n" +
  242 + " \"value\": \"大车队长有限公司\"\n" +
  243 + " },\n" +
  244 + " {\n" +
  245 + " \"type\": \"text\",\n" +
  246 + " \"name\": \"accountNo\",\n" +
  247 + " \"value\": \"6220022221000221\"\n" +
  248 + " },\n" +
  249 + " {\n" +
  250 + " \"type\": \"text\",\n" +
  251 + " \"name\": \"openBankName\",\n" +
  252 + " \"value\": \"浦东发展银行\"\n" +
  253 + " },\n" +
  254 + " {\n" +
  255 + " \"type\": \"text\",\n" +
  256 + " \"name\": \"openBankBranchName\",\n" +
  257 + " \"value\": \"浦发银行青浦支行\"\n" +
  258 + " },\n" +
  259 + " {\n" +
  260 + " \"type\": \"text\",\n" +
  261 + " \"name\": \"remark\",\n" +
  262 + " \"value\": \"账单备注\"\n" +
  263 + " },\n" +
  264 + " {\n" +
  265 + " \"type\": \"file\",\n" +
  266 + " \"name\": \"billAttachment\",\n" +
  267 + " \"value\": \"https://zeyi-tms-product.oss-cn-hangzhou.aliyuncs.com/image/tms/d05b7f1b-1844-49b6-9931-11ac4cd783ea.jpg\"\n" +
  268 + " }\n" +
  269 + " ],\n" +
  270 + " \"conditionParamList\": [\n" +
  271 + " {\n" +
  272 + " \"name\": \"businessType\",\n" +
  273 + " \"value\": \"BULK_BUSINESS_TYPE\"\n" +
  274 + " }\n" +
  275 + " ]\n" +
  276 + "}";
  277 + HttpResponseData httpResponseData = zyClient.doPost(Constants.TEST_HOST + "/tms-service-api/audit/send", AesUtils.encrypt(data, aesSecret));
  278 +```
  279 +
203 280 #### 返回示例
204 281  
205 282 ```json
... ...