Commit 93fd1d9a4f795f0506acf734cf28078d0da3ab12

Authored by liujiqiang
1 parent 7c289d4a

配置文件新增

commons/basic/getLookupList.py
... ... @@ -46,7 +46,22 @@ def get_product(host="",productName="蔬菜"):
46 46 res = my.useHeadersRequests(method="get", url=url, params=data, headers=headers)
47 47 return res
48 48  
  49 +def get_templateUnit(host="",moduleCode="ZC"):
  50 + """通过部门编号获取区域"""
  51 + print(my.userInfo["data"]["user"]["firmId"])
  52 + marketCode = my.userInfo["data"]["user"]["firmId"]
  53 + url = host + f"/jmsf-web/api/template/getTemplateUnit?marketCode={marketCode}&moduleCode={moduleCode}"
  54 + headers = dct.urlCode()
  55 + res = my.useHeadersRequests(method="get", url=url, headers=headers)
  56 + return res
  57 +
  58 +def get_templateAttr(host="http://test.gateway.diligrp.com:8285",moduleCode="ZC"):
  59 + attr_list = [i["unitName"] for i in get_templateUnit(host=host,moduleCode=moduleCode).json()["data"]]
  60 + return attr_list
  61 +
49 62 # host="http://test.jmsf.diligrp.com:8385"
  63 +# host="http://test.gateway.diligrp.com:8285"
50 64 # print(get_LookupList(host=host,providerName="货物品类").json())
51 65 # print(get_reach(host).json())
52   -# print(get_category(host=host,productName="蔬菜").json())
53 66 \ No newline at end of file
  67 +# print(get_category(host=host,productName="蔬菜").json())
  68 +# print(get_templateAttr(host=host))
54 69 \ No newline at end of file
... ...
report/test.log
1   -[2021-08-24 10:20:26] [INFO] : ======================================================================================
2   -[2021-08-24 10:20:26] [INFO] : http://test.uap.diligrp.com/api/authenticationApi/loginWeb
3   -{'data': None, 'json': {'userName': 'sy_chen', 'password': 'a5B2vGF1PHQyB1jBWV7A+SpNULI7x8yxm4Onsl/jjHv2WANVmXgU2+040qiAWJHZyg15g5i3cVds+28MYKDzwGTbmUlY61+t/Y8RIeJ065Gk1nXSS64mpryG6QwmbaqMOgPljCe6EwcLI1Q6vwaZ3SOZ+ZbHQQ8p1jdR9ftb8sk='}, 'headers': {'Content-Type': 'text/plain;charset=utf-8', 'Host': 'test.uap.diligrp.com', 'Content-Length': '209', 'Expect': '100-continue'}}
  1 +[2021-08-24 10:37:13] [INFO] : ======================================================================================
  2 +[2021-08-24 10:37:13] [INFO] : http://test.uap.diligrp.com/api/authenticationApi/loginWeb
  3 +{'data': None, 'json': {'userName': 'sy_chen', 'password': 'KmdOatiqUgnlifC2gAYGmKe1i0KgmMrrbj0uZ5KPkRJd27gZxgvMz3Wf8DXChu9XzBHdiaihSFZgQjKkoowC4CJnhKRHcRKQ1KNsGhhRsOdw+z7bsGxF9h0uJ9roLft3MEeLpsnwWCa33kN/lgQyjoyvFUy2No7HseujAxu4kdk='}, 'headers': {'Content-Type': 'text/plain;charset=utf-8', 'Host': 'test.uap.diligrp.com', 'Content-Length': '209', 'Expect': '100-continue'}}
4 4  
5   -[2021-08-24 10:20:26] [INFO] : ======================================================================================
6   -[2021-08-24 10:20:26] [INFO] : http://test.uap.diligrp.com/api/authenticationApi/loginWeb
7   -{'data': None, 'json': {'userName': '哈尔滨田太子', 'password': 'gLWGXA+5IW87Q1Tvbxwd/eewjuYPS9qlMouLe9FVrmSRjpB0nz27KkRWHI0Fub3PHTCnw/ntxwizxNrwx4smHbUm8/UfMnScSCb05TqQdE6JGvAoR/Eck1sUnrUH7fjQtwg2ukMJHUlTHHZCapm4srfQt8n7Ww1olMfz3Xud6tE='}, 'headers': {'Content-Type': 'text/plain;charset=utf-8', 'Host': 'test.uap.diligrp.com', 'Content-Length': '209', 'Expect': '100-continue'}}
  5 +[2021-08-24 10:37:14] [INFO] : ======================================================================================
  6 +[2021-08-24 10:37:14] [INFO] : http://test.uap.diligrp.com/api/authenticationApi/loginWeb
  7 +{'data': None, 'json': {'userName': '哈尔滨田太子', 'password': 'VS7nxtci/HNDZGUsaZNY9nzqYB1wJkhJE8oJKiPtEqYDJTvedL3DCZD0p0oaaguyncWcdzvypZk07hE+f/KkoLqUgtwyXO9MjuI0FJ/YZBfNhJ9Ba91kEoeck/ZVOvOUxJ99e8JFdyBR+tJMcOAXhDAQja9ZvTs6spP2rUqDILM='}, 'headers': {'Content-Type': 'text/plain;charset=utf-8', 'Host': 'test.uap.diligrp.com', 'Content-Length': '209', 'Expect': '100-continue'}}
8 8  
9   -[2021-08-24 10:20:26] [INFO] : ======================================================================================
10   -[2021-08-24 10:20:26] [INFO] : http://test.gateway.diligrp.com:8285/jmsf-web/api/jmsf/query/listCarType
11   -{"businessCode": "jmsf"}
12   -{}
13   -
14   -[2021-08-24 10:20:27] [INFO] : ======================================================================================
15   -[2021-08-24 10:20:27] [INFO] : http://test.gateway.diligrp.com:8285/assets-service/api/cusCategory/getTree
16   -{"marketId": 9, "state": 1, "keyword": "\u96ea\u83b2\u679c"}
17   -{}
18   -
19   -[2021-08-24 10:20:27] [INFO] : ======================================================================================
20   -[2021-08-24 10:20:27] [INFO] : http://test.gateway.diligrp.com:8285/dili-uap/userApi/listByExample.api
21   -{"firmCode": "sy", "departmentId": 58, "keyword": ""}
22   -{}
23   -
24   -[2021-08-24 10:20:27] [INFO] : ======================================================================================
25   -[2021-08-24 10:20:27] [INFO] : http://test.gateway.diligrp.com:8285/assets-service/api/tradeType/query
26   -{"pageNum": 100, "pageSize": 100, "marketId": 9}
27   -{}
28   -
29   -[2021-08-24 10:20:27] [INFO] : ======================================================================================
30   -[2021-08-24 10:20:27] [INFO] : http://test.gateway.diligrp.com:8285/jmsf-web/api/jmsf/query/listCodeByPid
31   -None
32   -{'params': {'pid': 'goods_tag'}}
33   -
34   -[2021-08-24 10:20:28] [INFO] : ======================================================================================
35   -[2021-08-24 10:20:28] [INFO] : http://test.gateway.diligrp.com:8285/jmsf-web/api/jmsf/query/address
36   -{"province": "C", "city": null, "area": null}
37   -{}
38   -
39   -[2021-08-24 10:20:28] [INFO] : ======================================================================================
40   -[2021-08-24 10:20:28] [INFO] : http://test.gateway.diligrp.com:8285/jmsf-web/api/jmsf/query/dep
41   -None
42   -{'params': {'keyword': ''}}
43   -
44   -[2021-08-24 10:20:28] [INFO] : ======================================================================================
45   -[2021-08-24 10:20:28] [INFO] : http://test.gateway.diligrp.com:8285/jmsf-web/api/jmsf/query/listCodeByPid
46   -None
47   -{'params': {'pid': 'prove_type'}}
48   -
49   -[2021-08-24 10:20:29] [INFO] : ======================================================================================
50   -[2021-08-24 10:20:29] [INFO] : http://test.gateway.diligrp.com:8285/jmsf-web/appCommon/duplicateToken.action
  9 +[2021-08-24 10:37:14] [INFO] : ======================================================================================
  10 +[2021-08-24 10:37:14] [INFO] : http://test.gateway.diligrp.com:8285/jmsf-web/api/template/getTemplateUnit?marketCode=9&moduleCode=ZC
51 11 None
52 12 {}
53 13  
54   -[2021-08-24 10:20:29] [INFO] : ======================================================================================
55   -[2021-08-24 10:20:29] [INFO] : http://test.gateway.diligrp.com:8285/jmsf-web/api/entrace/wholeCarWeighSave
56   -{"carTypeCode": "003", "carTypeId": 53, "carTypeName": "\u677f\u8f66", "carTypeWeight": 333, "plate": "\u5dddB19880", "inGreeterId": 223, "inGreeterName": "\u6d4b\u8bd5\u6c88\u9633", "productId": 2182, "productName": "\u96ea\u83b2\u679c", "proveTypeCode": 665, "proveTypeName": "\u98df\u54c1\u5b89\u5168", "weighRemark": "\u5907\u6ce8", "weighmanRecord": {"grossWeight": 432, "grossWeightDate": "2021-08-24 10:20:29", "newWeight": 99, "tareWeight": 333, "tareWeightDate": null, "weighImgs": []}, "productCode": null, "trailerNumber": "\u5dddB19880", "pathAddress": "A4-BB-6D-0A-F4-13", "haveTruckWeight": false, "source": 4, "entryPlateInputType": 1, "dep": 58, "depName": "\u6c34\u679c\u90e8", "cateId": 2182, "notice": 0, "backSkinTwo": -1, "recordOriginId": 0, "recordOriginName": null, "recordProductId": 0, "recordProductName": null, "recordWeight": null, "codeIc": null, "codeId": 0, "difference": 0, "bindRecordSign": 0, "recordDesc": null, "hasCodeItems": false, "customerId": 0, "customerName": "", "driverIc": null, "driverName": null, "totalPrice": null, "originId": 500101, "origin": "\u4e07\u5dde\u533a", "originCode": "023", "tradeType": "9001", "tradeTypeName": "\u6c88\u96331\u53f7", "weight": 2.0, "pwd": "", "type": 1, "ic": "", "boothNumber": "210728154359", "productState": "1", "accountId": 0, "passCheckId": 0, "passCheckName": null, "tradeTypeId": 70, "id": 0, "protocolId": null, "goodsTagId": 663}
57   -{}
58   -
59   -[2021-08-24 10:20:30] [INFO] : ======================================================================================
60   -[2021-08-24 10:20:30] [INFO] : http://test.jmsf.diligrp.com:8385/entranceFeeBill/listPage.action
61   -{'rows': '10', 'page': '1', 'sort': 'et.created', 'order': 'desc', 'metadata[created]': '{"provider": "datetimeProvider", "index": 10, "field": "created"}', 'metadata[totalPrice]': '{"provider": "moneyProvider", "index": 20, "field": "totalPrice"}', 'metadata[paymentTime]': '{"provider": "datetimeProvider", "index": 30, "field": "paymentTime"}', 'metadata[type]': '{"provider": "entranceFeeBillTypeProvider", "index": 40, "field": "type"}', 'metadata[status]': '{"provider": "entranceFeeBillStateProvider", "index": 50, "field": "status"}', 'attr': 'number', 'attrValue': '202108240900081'}
62   -{}
63   -
64   -[2021-08-24 10:20:30] [INFO] : ======================================================================================
65   -[2021-08-24 10:20:30] [INFO] : http://test.jmsf.diligrp.com:8385/entranceFeeBill/pay/5029.action
66   -None
67   -{}
68   -
69   -[2021-08-24 10:20:32] [INFO] : ======================================================================================
70   -[2021-08-24 10:20:32] [INFO] : http://test.jmsf.diligrp.com:8385/api/jmsf/ajax/icCheck?ic=888810032426
71   -None
72   -{}
73   -
74   -[2021-08-24 10:20:32] [INFO] : ======================================================================================
75   -[2021-08-24 10:20:32] [INFO] : http://test.jmsf.diligrp.com:8385/api/jmsf/ajax/city/?name=万州&query=万州
76   -None
77   -{}
78   -
79   -[2021-08-24 10:20:32] [INFO] : ======================================================================================
80   -[2021-08-24 10:20:32] [INFO] : http://test.jmsf.diligrp.com:8385/calculate/index.action
81   -{'protocolId': '', 'pwd': '', 'clientRedirectTag': '', 'viewType': 'pay', 'optType': '0', 'optUrl': '', 'correctInfo': '1', 'weightType': '1', 'id': 5029, 'goodsId': '5043', 'number': '202108240900081', 'modified': '2021-08-24 10:20:32', 'status': '2', 'source': '1', 'updateFeeItems': '', 'correctDiscount': '1', 'totalAmount': '', 'customerId': '0', 'fundAccount': '', 'accountId': '', 'ic': '', 'customerName': '', 'customerPhone': '', 'payway': '刷卡', 'plate': '川B19880', 'autocomplete-cartype': '003(板车)', 'carTypeName': '板车', 'carTypeCode': '003', 'carTypeId': '53', 'carTypeWeight': '333', 'storeTareWeight': '', 'proveType': '665', 'grossWeight': '432', 'tareWeight': '333', 'weight': '99', 'goodsNum': '', 'itemWeight': '', 'productPrice': '1.00000', 'unitPrice': '100.0', 'depName': '水果部', 'calcDepId': '58', 'regionName': '', 'regionId': '0', 'productName': '雪莲果', 'productId': '2182', 'productArea': '重庆,重庆市,万州区', 'parentId': '', 'levelType': '', 'originId': 500101, 'tradeTypeId': '70', 'chargeTotalAmount': '', 'chargeTotalAmountYuan': '', 'freezeMoneySymbol': '', 'comparisonFreezeAmount': '', 'created': '2021-08-24 10:20:30', 'remark': 'false', 'goodsTagIds': '663', 'shareRatio': '0', 'handlingTeam': '', 'handlingRatio': '', 'handActualAmount': '', 'handManageAmount': '', 'handCollectionAmount': '', 'receivableAmount': '', 'categoryName': '水果', 'categoryId': '1616', 'driverTel': '', 'grossWeightDate': '2021-08-24 10:20:30', 'tareWeightDate': '2021-08-24 10:20:30', 'grossPathName': '', 'grossPathId': '', 'tarePathId': '', 'goodsRemark': '', 'inGreeterName': '测试沈阳', 'inGreeterId': '223', 'outGreeterId': '', 'sumPrice': '9900', 'shipperName': '', 'shipperId': '', 'shipperPhone': '', 'feeDepName': '', 'calcFeeDepId': ''}
82   -{}
83   -
84   -[2021-08-24 10:20:33] [INFO] : ======================================================================================
85   -[2021-08-24 10:20:33] [INFO] : http://test.jmsf.diligrp.com:8385/entranceTrade/doFreeze.action
86   -protocolId=&pwd=111111&clientRedirectTag=&viewType=pay&optType=0&optUrl=&correctInfo=1&weightType=1&id=5029&goodsId=5043&number=202108240900081&modified=2021-08-24%2010%3A20%3A30&status=2&source=1&updateFeeItems=&correctDiscount=1&totalAmount=4800&customerId=384&fundAccount=107575&ic=888810032426&customerName=%2A%2A%2A%2A%2A%2A&customerPhone=19010001000&payway=%E5%88%B7%E5%8D%A1&plate=%E5%B7%9DB19880&autocomplete-cartype=003%28%E6%9D%BF%E8%BD%A6%29&carTypeName=%E6%9D%BF%E8%BD%A6&carTypeCode=003&carTypeId=53&carTypeWeight=333&storeTareWeight=&proveType=665&grossWeight=432&tareWeight=333&weight=99&goodsNum=&itemWeight=&productPrice=1.00000&unitPrice=100.0&depName=%E6%B0%B4%E6%9E%9C%E9%83%A8&calcDepId=58&dep=58&regionName=&regionId=72&productName=%E9%9B%AA%E8%8E%B2%E6%9E%9C&productId=2182&productArea=%E9%87%8D%E5%BA%86%2C%E9%87%8D%E5%BA%86%E5%B8%82%2C%E4%B8%87%E5%B7%9E%E5%8C%BA&parentId=&levelType=&originId=500101&tradeTypeId=70&chargeTotalAmount=4800&chargeTotalAmountYuan=48&freezeMoneySymbol=53&comparisonFreezeAmount=53&created=2021-08-24%2010%3A20%3A30&remark=&goodsTagIds=663&marketFlag=sy&totalMoney=4800&receivable=5300&collectionPrice=0&discountAmount=500&handReceivableAmount=0&itemReceivableAmount=5300&shareRatio=0&handlingTeam=&handActualAmount=0&handManageAmount=0&handCollectionAmount=0&receivableAmount=5300&categoryName=%E6%B0%B4%E6%9E%9C&categoryId=1616&driverTel=&grossWeightDate=2021-08-24%2010%3A20%3A30&tareWeightDate=2021-08-24%2010%3A20%3A30&grossPathName=&grossPathId=&tarePathId=&goodsRemark=&inGreeterName=&inGreeterId=0&outGreeterId=&sumPrice=9900&shipperName=&shipperId=&shipperPhone=&feeDepName=&calcFeeDepId=&feeDepId=&accountId=107575&correctDiscount=1&billItems=&billItemsDic=&billItemCheckIds=103&103=50.00&billItems=%7B%22discount%22%3A500%2C%22id%22%3A103%2C%22name%22%3A%22%E4%BA%A4%E6%98%93%E7%AE%A1%E7%90%86%E8%B4%B9%22%2C%22receivable%22%3A5000%2C%22require%22%3A1%7D&billItemDicCheckIds=105&billItemsDic=%7B%22discount%22%3A0%2C%22id%22%3A105%2C%22name%22%3A%22%E4%BC%98%E6%83%A0%E6%94%B6%E8%B4%B9%22%2C%22receivable%22%3A500%2C%22require%22%3A0%7D&billItemCheckIds=106&106=3.00&billItems=%7B%22discount%22%3A0%2C%22id%22%3A106%2C%22name%22%3A%22%E6%A3%80%E6%B5%8B%E8%B4%B9%22%2C%22receivable%22%3A300%2C%22require%22%3A1%7D
87   -{}
88   -
89   -[2021-08-24 10:20:36] [INFO] : ======================================================================================
90   -[2021-08-24 10:20:36] [INFO] : http://test.gateway.diligrp.com:8285/jmsf-web/api/jmsf/query/listBackSkinTrucks
91   -{"plate": "", "number": "202108240900081", "customerName": ""}
92   -{}
93   -
94   -[2021-08-24 10:20:37] [INFO] : ======================================================================================
95   -[2021-08-24 10:20:37] [INFO] : http://test.gateway.diligrp.com:8285/dili-uap/userApi/listByExample.api
96   -{"firmCode": "sy", "departmentId": 58, "keyword": ""}
97   -{}
98   -
99   -[2021-08-24 10:20:37] [INFO] : ======================================================================================
100   -[2021-08-24 10:20:37] [INFO] : http://test.gateway.diligrp.com:8285/jmsf-web/api/entrace/backSkinWeighSave
101   -{"hasStoreTruck": 1, "number": "202108240900081", "outGreeterId": 223, "outGreeterName": "\u6d4b\u8bd5\u6c88\u9633", "plate": "\u5dddB19880", "rail": 1, "tareWeight": 344, "tareWeightDate": "2021-08-24 10:20:37", "weighImgs": [], "weighId": 0, "remark": "123", "carTypeWeight": 333, "trailerNumber": "\u5dddB19880", "pathAddress": "A4-BB-6D-0A-F4-13", "bskinWithGoods": -1, "ic": "", "customerName": null, "customerId": 0, "carTypeCode": "003", "carTypeId": 53, "carTypeName": "\u677f\u8f66"}
102   -{}
103   -
... ...