Commit 829a3e4dcefd6a98510a3722d1fac4d9c4bd0de5

Authored by liujiqiang
1 parent d61034f2

备注信息添加

commons/api/entranceFeeBillList/apiDemo.py 0 → 100644
  1 +# -*- coding: utf-8 -*-
  2 +
  3 +# @Time : 2021/8/24 17:15
  4 +# @Author : Ljq
  5 +# @File : apiDemo.py
  6 +# @Software: PyCharm
  7 +
  8 +"""
  9 +
  10 +"""
  11 +
  12 +import json,time,random
  13 +from commons.scripts import dealContentType as dct
  14 +from commons.MySession import my
  15 +from commons.basic import getLookupList as gLL
  16 +
  17 +def get_carType(session=None,host="",**kwargs):
  18 + """车型获取"""
  19 + url = host + "/jmsf-web/api/jmsf/query/listCarType"
  20 + data = {"businessCode":"jmsf"}
  21 + headers = dct.jsonCode()
  22 + data = dict(data, **kwargs)
  23 + res = session.useHeadersRequests(method="POST", url=url, data=json.dumps(data), headers=headers)
  24 + return res
  25 +
  26 +def get_listCategoryByCondition(session=None,host="",**kwargs):
  27 + """商品获取"""
  28 + url = host + "/assets-service/api/cusCategory/getTree"
  29 + # marketId = my.userInfo()[]
  30 + data = {"marketId":9,"state":1,"keyword":"蔬菜"}
  31 + headers = dct.jsonCode()
  32 + data = dict(data, **kwargs)
  33 + res = session.useHeadersRequests(method="POST", url=url, data=json.dumps(data), headers=headers)
  34 + return res
0 35 \ No newline at end of file
... ...
report/test.log
1   -[2021-08-24 17:09:10] [INFO] : ======================================================================================
2   -[2021-08-24 17:09:10] [INFO] : http://test.uap.diligrp.com/api/authenticationApi/loginWeb
3   -{'data': None, 'json': {'userName': 'sy_chen', 'password': 'IbgPKmzeGea6kthq9tKaGvId6TOfHyJT2ALAuZIbQoSeWI46wT9MIoFDnfFGVgCDV26EAPCh0LFL9tlVQvBs0mfqltzgGxkQKLrNxCIKgrStJYbNyGThjABBCMVPKenm5BoXkuuNB4GKrj8oIJI7s8euTsP2VVSalck7gNxr5Es='}, 'headers': {'Content-Type': 'text/plain;charset=utf-8', 'Host': 'test.uap.diligrp.com', 'Content-Length': '209', 'Expect': '100-continue'}}
  1 +[2021-08-24 17:25:33] [INFO] : ======================================================================================
  2 +[2021-08-24 17:25:33] [INFO] : http://test.uap.diligrp.com/api/authenticationApi/loginWeb
  3 +{'data': None, 'json': {'userName': 'sy_chen', 'password': 'fWGWzh+/68t6zkcojMI41EgVUK1xFKrdWJxFd8Oy3AGa98ybMeW5XAbe+8nEOPKDWcH0VKUK8Q9aHZ1EcVOvGIW48I0z5YMXVspO7rY6jkiUoo4IzBX/LpNGI61VYQtZmAgCuvCAd37jZj2sa23Lt/H5LVw6nPbx3P2bDwYovaE='}, '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 17:09:11] [INFO] : ======================================================================================
6   -[2021-08-24 17:09:11] [INFO] : http://test.uap.diligrp.com/api/authenticationApi/loginWeb
7   -{'data': None, 'json': {'userName': '哈尔滨田太子', 'password': 'cEMi2XsgH7vZbv8IsxzAt30QI1wmOWSMzS8P7JmbwOtYm0L5bf42R462QqmxAQZbNsQpTmOq4uTx3B/BxsYD+G6HMrecnj9QvAAqWxmRY2JFD6E6KpEDuD7jWW/6oRek/OnNiX0/UgXJxC2Fr9vVejz0WIXcZHQ36baL5FPDukQ='}, 'headers': {'Content-Type': 'text/plain;charset=utf-8', 'Host': 'test.uap.diligrp.com', 'Content-Length': '209', 'Expect': '100-continue'}}
  5 +[2021-08-24 17:25:34] [INFO] : ======================================================================================
  6 +[2021-08-24 17:25:34] [INFO] : http://test.uap.diligrp.com/api/authenticationApi/loginWeb
  7 +{'data': None, 'json': {'userName': '哈尔滨田太子', 'password': 'Ma85tqjzKxn5T6jzYZiD+sKba9eYqr84bErVPRmYQkZ+ZXjKAVLIQViO8W/wrJwUTKJFpvFkJjRGHtX9URHGYpfLV3BsOlbA3N5qOi65U1p7ydxCxK4CtYd2fKHyAxm3XF6nNvYsitlP0nPrbWg5ytNEcBWy7TE4nL3gEfvcDpo='}, '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 17:09:11] [INFO] : ======================================================================================
10   -[2021-08-24 17:09:11] [INFO] : http://test.jmsf.diligrp.com:8385/provider/getLookupList.action
  9 +[2021-08-24 17:25:34] [INFO] : ======================================================================================
  10 +[2021-08-24 17:25:34] [INFO] : http://test.jmsf.diligrp.com:8385/provider/getLookupList.action
11 11 {'provider': 'carTypeForJmsfProvider'}
12 12 {}
13 13  
14   -[2021-08-24 17:09:11] [INFO] : ======================================================================================
15   -[2021-08-24 17:09:11] [INFO] : http://test.jmsf.diligrp.com:8385/provider/getLookupList.action
  14 +[2021-08-24 17:25:34] [INFO] : ======================================================================================
  15 +[2021-08-24 17:25:34] [INFO] : http://test.jmsf.diligrp.com:8385/provider/getLookupList.action
16 16 {'provider': 'categoryProvider'}
17 17 {}
18 18  
19   -[2021-08-24 17:09:11] [INFO] : ======================================================================================
20   -[2021-08-24 17:09:11] [INFO] : http://test.gateway.diligrp.com:8285/jmsf-web/api/jmsf/query/dep
  19 +[2021-08-24 17:25:34] [INFO] : ======================================================================================
  20 +[2021-08-24 17:25:34] [INFO] : http://test.gateway.diligrp.com:8285/jmsf-web/api/jmsf/query/dep
21 21 None
22 22 {'params': {'keyword': ''}}
23 23  
24   -[2021-08-24 17:09:11] [INFO] : ======================================================================================
25   -[2021-08-24 17:09:11] [INFO] : http://test.jmsf.diligrp.com:8385/provider/getLookupList.action
  24 +[2021-08-24 17:25:35] [INFO] : ======================================================================================
  25 +[2021-08-24 17:25:35] [INFO] : http://test.jmsf.diligrp.com:8385/provider/getLookupList.action
26 26 {'provider': 'entranceFeeBillTypeProvider'}
27 27 {}
28 28  
29   -[2021-08-24 17:09:11] [INFO] : ======================================================================================
30   -[2021-08-24 17:09:11] [INFO] : http://test.jmsf.diligrp.com:8385/provider/getLookupList.action
  29 +[2021-08-24 17:25:35] [INFO] : ======================================================================================
  30 +[2021-08-24 17:25:35] [INFO] : http://test.jmsf.diligrp.com:8385/provider/getLookupList.action
31 31 {'provider': 'entranceFeeBillStateProvider'}
32 32 {}
33 33  
34   -[2021-08-24 17:09:12] [INFO] : ======================================================================================
35   -[2021-08-24 17:09:12] [INFO] : http://test.jmsf.diligrp.com:8385/provider/getLookupList.action
  34 +[2021-08-24 17:25:35] [INFO] : ======================================================================================
  35 +[2021-08-24 17:25:35] [INFO] : http://test.jmsf.diligrp.com:8385/provider/getLookupList.action
36 36 {'provider': 'tradeTypeProvider'}
37 37 {}
38 38  
39   -[2021-08-24 17:09:12] [INFO] : ======================================================================================
40   -[2021-08-24 17:09:12] [INFO] : http://test.jmsf.diligrp.com:8385/category/search.action?name=水生蔬菜
41   -None
42   -{'params': {'name': '水生蔬菜', 'keyword': '水生蔬菜'}}
43   -
44   -[2021-08-24 17:09:12] [INFO] : ======================================================================================
45   -[2021-08-24 17:09:12] [INFO] : http://test.gateway.diligrp.com:8285/jmsf-web/api/template/getTemplateUnit?marketCode=2&moduleCode=ZC
  39 +[2021-08-24 17:25:35] [INFO] : ======================================================================================
  40 +[2021-08-24 17:25:35] [INFO] : http://test.gateway.diligrp.com:8285/jmsf-web/api/template/getTemplateUnit?marketCode=2&moduleCode=ZC
46 41 None
47 42 {}
48 43  
49   -[2021-08-24 17:09:12] [INFO] : ======================================================================================
50   -[2021-08-24 17:09:12] [INFO] : http://test.gateway.diligrp.com:8285/jmsf-web/api/jmsf/query/listCarType
  44 +[2021-08-24 17:25:35] [INFO] : ======================================================================================
  45 +[2021-08-24 17:25:35] [INFO] : http://test.gateway.diligrp.com:8285/jmsf-web/api/jmsf/query/listCarType
51 46 {"businessCode": "jmsf"}
52 47 {}
53 48  
54   -[2021-08-24 17:09:12] [INFO] : ======================================================================================
55   -[2021-08-24 17:09:12] [INFO] : http://test.gateway.diligrp.com:8285/assets-service/api/cusCategory/getTree
56   -{"marketId": 9, "state": 1, "keyword": "\u6c34\u751f\u852c\u83dc"}
  49 +[2021-08-24 17:25:36] [INFO] : ======================================================================================
  50 +[2021-08-24 17:25:36] [INFO] : http://test.gateway.diligrp.com:8285/assets-service/api/cusCategory/getTree
  51 +{"marketId": 9, "state": 1, "keyword": "\u96ea\u83b2\u679c"}
57 52 {}
58 53  
59   -[2021-08-24 17:09:12] [INFO] : ======================================================================================
60   -[2021-08-24 17:09:12] [INFO] : http://test.gateway.diligrp.com:8285/assets-service/api/config/query
  54 +[2021-08-24 17:25:36] [INFO] : ======================================================================================
  55 +[2021-08-24 17:25:36] [INFO] : http://test.gateway.diligrp.com:8285/assets-service/api/config/query
61 56 {"marketId": 2, "pageNum": 100, "pageSize": 100}
62 57 {}
63 58  
64   -[2021-08-24 17:09:12] [INFO] : ======================================================================================
65   -[2021-08-24 17:09:12] [INFO] : http://test.gateway.diligrp.com:8285/dili-uap/userApi/listByExample.api
  59 +[2021-08-24 17:25:36] [INFO] : ======================================================================================
  60 +[2021-08-24 17:25:36] [INFO] : http://test.gateway.diligrp.com:8285/dili-uap/userApi/listByExample.api
66 61 {"firmCode": "hd", "departmentId": null, "keyword": ""}
67 62 {}
68 63  
69   -[2021-08-24 17:09:13] [INFO] : ======================================================================================
70   -[2021-08-24 17:09:13] [INFO] : http://test.gateway.diligrp.com:8285/jmsf-web/api/jmsf/query/dep
  64 +[2021-08-24 17:25:36] [INFO] : ======================================================================================
  65 +[2021-08-24 17:25:36] [INFO] : http://test.gateway.diligrp.com:8285/jmsf-web/api/jmsf/query/dep
71 66 None
72 67 {'params': {'keyword': ''}}
73 68  
74   -[2021-08-24 17:09:13] [INFO] : ======================================================================================
75   -[2021-08-24 17:09:13] [INFO] : http://test.gateway.diligrp.com:8285/jmsf-web/api/jmsf/query/listCodeByPid
  69 +[2021-08-24 17:25:36] [INFO] : ======================================================================================
  70 +[2021-08-24 17:25:36] [INFO] : http://test.gateway.diligrp.com:8285/jmsf-web/api/jmsf/query/listCodeByPid
76 71 None
77 72 {'params': {'pid': 'prove_type'}}
78 73  
79   -[2021-08-24 17:09:13] [INFO] : ======================================================================================
80   -[2021-08-24 17:09:13] [INFO] : http://test.gateway.diligrp.com:8285/jmsf-web/appCommon/duplicateToken.action
  74 +[2021-08-24 17:25:37] [INFO] : ======================================================================================
  75 +[2021-08-24 17:25:37] [INFO] : http://test.gateway.diligrp.com:8285/jmsf-web/appCommon/duplicateToken.action
  76 +None
  77 +{}
  78 +
  79 +[2021-08-24 17:25:37] [INFO] : ======================================================================================
  80 +[2021-08-24 17:25:37] [INFO] : http://test.gateway.diligrp.com:8285/jmsf-web/api/entrace/wholeCarWeighSave
  81 +{"carTypeCode": "456", "carTypeId": 158, "carTypeName": "\u5730\u6392\u8f66", "carTypeWeight": 10, "plate": "\u5dddA50358", "inGreeterId": 16, "inGreeterName": "\u56fd\u950b", "productId": 2182, "productName": "\u96ea\u83b2\u679c", "proveTypeCode": 666, "proveTypeName": "\u4ea7\u5730\u8bc1\u660e", "weighRemark": "\u5907\u6ce8", "weighmanRecord": {"grossWeight": 109, "grossWeightDate": "2021-08-24 17:25:37", "newWeight": 99, "tareWeight": 10, "tareWeightDate": null, "weighImgs": []}, "productCode": null, "trailerNumber": "\u5dddA50358", "pathAddress": "A4-BB-6D-0A-F4-13", "haveTruckWeight": false, "source": 4, "entryPlateInputType": 1, "dep": 129, "depName": "\u54c8\u8fbe\u6d4b\u8bd5\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": "", "origin": "", "originCode": "", "tradeType": "", "tradeTypeName": "", "weight": 2.0, "pwd": "", "type": 1, "ic": "", "boothNumber": "210728154359", "productState": "1", "accountId": 0, "passCheckId": 0, "passCheckName": null, "tradeTypeId": "", "id": 0, "protocolId": null, "goodsTagId": ""}
  82 +{}
  83 +
  84 +[2021-08-24 17:25:37] [INFO] : ======================================================================================
  85 +[2021-08-24 17:25:37] [INFO] : http://test.jmsf.diligrp.com:8385/entranceFeeBill/listPage.action
  86 +{'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': '202108240200292'}
  87 +{}
  88 +
  89 +[2021-08-24 17:25:38] [INFO] : ======================================================================================
  90 +[2021-08-24 17:25:38] [INFO] : http://test.jmsf.diligrp.com:8385/entranceFeeBill/pay/5784.action
  91 +None
  92 +{}
  93 +
  94 +[2021-08-24 17:25:39] [INFO] : ======================================================================================
  95 +[2021-08-24 17:25:39] [INFO] : http://test.jmsf.diligrp.com:8385/api/jmsf/ajax/icCheck?ic=210823173732
  96 +None
  97 +{}
  98 +
  99 +[2021-08-24 17:25:40] [INFO] : ======================================================================================
  100 +[2021-08-24 17:25:40] [INFO] : http://test.jmsf.diligrp.com:8385/api/jmsf/ajax/city/?name=万州&query=万州
81 101 None
82 102 {}
83 103  
84   -[2021-08-24 17:09:14] [INFO] : ======================================================================================
85   -[2021-08-24 17:09:14] [INFO] : http://test.gateway.diligrp.com:8285/jmsf-web/api/entrace/wholeCarWeighSave
86   -{"carTypeCode": "456", "carTypeId": 158, "carTypeName": "\u5730\u6392\u8f66", "carTypeWeight": 10, "plate": "\u5dddA12345", "inGreeterId": 16, "inGreeterName": "\u56fd\u950b", "productId": 467, "productName": "\u6c34\u751f\u852c\u83dc", "proveTypeCode": 666, "proveTypeName": "\u4ea7\u5730\u8bc1\u660e", "weighRemark": "\u5907\u6ce8", "weighmanRecord": {"grossWeight": 109, "grossWeightDate": "2021-08-24 17:09:14", "newWeight": 99, "tareWeight": 10, "tareWeightDate": null, "weighImgs": []}, "productCode": null, "trailerNumber": "\u5dddA12345", "pathAddress": "A4-BB-6D-0A-F4-13", "haveTruckWeight": false, "source": 4, "entryPlateInputType": 1, "dep": 129, "depName": "\u54c8\u8fbe\u6d4b\u8bd5\u90e8", "cateId": 467, "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": "", "origin": "", "originCode": "", "tradeType": "", "tradeTypeName": "", "weight": 2.0, "pwd": "", "type": 1, "ic": "", "boothNumber": "210728154359", "productState": "1", "accountId": 0, "passCheckId": 0, "passCheckName": null, "tradeTypeId": "", "id": 0, "protocolId": null, "goodsTagId": ""}
  104 +[2021-08-24 17:25:40] [INFO] : ======================================================================================
  105 +[2021-08-24 17:25:40] [INFO] : http://test.jmsf.diligrp.com:8385/calculate/index.action
  106 +{'protocolId': '', 'pwd': '', 'clientRedirectTag': '', 'viewType': 'pay', 'optType': '0', 'optUrl': '', 'correctInfo': '1', 'weightType': '1', 'id': 5784, 'goodsId': '5798', 'number': '202108240200292', 'modified': '2021-08-24 17:25:40', 'status': '2', 'source': '1', 'updateFeeItems': '', 'correctDiscount': '1', 'totalAmount': '', 'customerId': '0', 'fundAccount': '', 'accountId': '', 'ic': '', 'customerName': '', 'customerPhone': '', 'payway': '刷卡', 'plate': '川A50358', 'autocomplete-cartype': '456(地排车)', 'carTypeName': '地排车', 'carTypeCode': '456', 'carTypeId': '158', 'carTypeWeight': '10', 'storeTareWeight': '', 'proveType': '666', 'grossWeight': '109', 'tareWeight': '10', 'weight': '99', 'goodsNum': '', 'itemWeight': '', 'productPrice': '1.00000', 'unitPrice': '100.0', 'depName': '哈达测试部', 'calcDepId': '129', 'regionName': '', 'regionId': '0', 'productName': '雪莲果', 'productId': '2182', 'productArea': '重庆,重庆市,万州区', 'parentId': '', 'levelType': '', 'originId': 500101, 'tradeTypeId': '', 'chargeTotalAmount': '', 'chargeTotalAmountYuan': '', 'freezeMoneySymbol': '', 'comparisonFreezeAmount': '', 'created': '2021-08-24 17:25:38', 'remark': 'false', 'goodsTagIds': '', 'shareRatio': '0', 'handlingTeam': '', 'handlingRatio': '', 'handActualAmount': '', 'handManageAmount': '', 'handCollectionAmount': '', 'receivableAmount': '', 'categoryName': '水果', 'categoryId': '1616', 'driverTel': '', 'grossWeightDate': '2021-08-24 17:25:38', 'tareWeightDate': '2021-08-24 17:25:38', 'grossPathName': '', 'grossPathId': '', 'tarePathId': '', 'goodsRemark': '', 'inGreeterName': '国锋', 'inGreeterId': '16', 'outGreeterId': '', 'sumPrice': '9900', 'shipperName': '', 'shipperId': '', 'shipperPhone': '', 'feeDepName': '', 'calcFeeDepId': ''}
  107 +{}
  108 +
  109 +[2021-08-24 17:25:40] [INFO] : ======================================================================================
  110 +[2021-08-24 17:25:40] [INFO] : http://test.jmsf.diligrp.com:8385/entranceTrade/doPay.action
  111 +protocolId=&pwd=111111&clientRedirectTag=&viewType=pay&optType=0&optUrl=&correctInfo=1&weightType=1&id=5784&goodsId=5798&number=202108240200292&modified=2021-08-24%2017%3A25%3A38&status=2&source=1&updateFeeItems=&correctDiscount=1&totalAmount=20300&customerId=141951&fundAccount=107621&ic=210823173732&customerName=%E5%93%88%E6%B5%8B&customerPhone=18089008005&payway=%E5%88%B7%E5%8D%A1&plate=%E5%B7%9DA50358&autocomplete-cartype=456%28%E5%9C%B0%E6%8E%92%E8%BD%A6%29&carTypeName=%E5%9C%B0%E6%8E%92%E8%BD%A6&carTypeCode=456&carTypeId=158&carTypeWeight=10&storeTareWeight=&proveType=666&grossWeight=109&tareWeight=10&weight=99&goodsNum=&itemWeight=&productPrice=1.00000&unitPrice=100.0&depName=%E5%93%88%E8%BE%BE%E6%B5%8B%E8%AF%95%E9%83%A8&calcDepId=129&dep=129&regionName=234&regionId=271&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=500100&levelType=&originId=500101&tradeTypeId=&chargeTotalAmount=20300&chargeTotalAmountYuan=203&freezeMoneySymbol=203&comparisonFreezeAmount=203&created=2021-08-24%2017%3A25%3A38&remark=&marketFlag=hd&totalMoney=20300&receivable=20300&collectionPrice=0&discountAmount=0&handReceivableAmount=0&itemReceivableAmount=20300&shareRatio=0&handlingTeam=&handActualAmount=0&handManageAmount=0&handCollectionAmount=0&receivableAmount=20300&categoryName=%E6%B0%B4%E6%9E%9C&categoryId=1616&driverTel=&grossWeightDate=2021-08-24%2017%3A25%3A38&tareWeightDate=2021-08-24%2017%3A25%3A38&grossPathName=&grossPathId=&tarePathId=&goodsRemark=&inGreeterName=%E5%9B%BD%E9%94%8B&inGreeterId=16&outGreeterId=&sumPrice=9900&shipperName=&shipperId=&shipperPhone=&feeDepName=&calcFeeDepId=&feeDepId=&accountId=107621&correctDiscount=1&billItems=&billItemsDic=&billItemCheckIds=488&488=200.00&billItems=%7B%22discount%22%3A0%2C%22id%22%3A488%2C%22name%22%3A%22%E4%BA%A4%E6%98%93%E7%AE%A1%E7%90%86%E8%B4%B9%22%2C%22receivable%22%3A20000%2C%22require%22%3A1%7D&billItemCheckIds=489&489=0.00&billItems=%7B%22discount%22%3A0%2C%22id%22%3A489%2C%22name%22%3A%22%E8%BF%94%E7%82%B9%22%2C%22receivable%22%3A0%2C%22require%22%3A1%7D&billItemCheckIds=494&494=3.00&billItems=%7B%22discount%22%3A0%2C%22id%22%3A494%2C%22name%22%3A%22%E6%A3%80%E6%B5%8B%E8%B4%B9%22%2C%22receivable%22%3A300%2C%22require%22%3A1%7D
  112 +{}
  113 +
  114 +[2021-08-24 17:25:46] [INFO] : ======================================================================================
  115 +[2021-08-24 17:25:46] [INFO] : http://test.jmsf.diligrp.com:8385/entranceFeeBill/listPage.action
  116 +{'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': '202108240200292'}
  117 +{}
  118 +
  119 +[2021-08-24 17:25:47] [INFO] : ======================================================================================
  120 +[2021-08-24 17:25:47] [INFO] : http://test.jmsf.diligrp.com:8385/entranceFeeBill/refund/5784.action
  121 +None
  122 +{}
  123 +
  124 +[2021-08-24 17:25:49] [INFO] : ======================================================================================
  125 +[2021-08-24 17:25:49] [INFO] : http://test.jmsf.diligrp.com:8385/api/jmsf/ajax/city/?name=万州&query=万州
  126 +None
  127 +{}
  128 +
  129 +[2021-08-24 17:25:49] [INFO] : ======================================================================================
  130 +[2021-08-24 17:25:49] [INFO] : http://test.jmsf.diligrp.com:8385/calculate/index.action
  131 +{'protocolId': '', 'pwd': '', 'clientRedirectTag': '', 'viewType': 'refund', 'optType': '0', 'optUrl': '', 'correctInfo': '1', 'weightType': '1', 'id': 5784, 'goodsId': '5798', 'number': '202108240200292', 'modified': '2021-08-24 17:25:41', 'status': '4', 'source': '1', 'updateFeeItems': '', 'correctDiscount': '1', 'totalAmount': '', 'customerId': '0', 'fundAccount': '', 'accountId': '', 'ic': '', 'customerName': '', 'customerPhone': '', 'payway': '刷卡', 'plate': '川A50358', 'autocomplete-cartype': '456(地排车)', 'carTypeName': '地排车', 'carTypeCode': '456', 'carTypeId': '158', 'carTypeWeight': '10', 'storeTareWeight': '', 'proveType': '666', 'grossWeight': '109', 'tareWeight': '10', 'weight': '99', 'goodsNum': '', 'itemWeight': '', 'productPrice': '1.00000', 'unitPrice': '100.0', 'depName': '哈达测试部', 'calcDepId': '', 'regionName': '', 'regionId': '0', 'productName': '雪莲果', 'productId': '2182', 'productArea': '重庆,重庆市,万州区', 'parentId': '', 'levelType': '', 'originId': 500101, 'tradeTypeId': '', 'chargeTotalAmount': '', 'chargeTotalAmountYuan': '', 'freezeMoneySymbol': '', 'comparisonFreezeAmount': '', 'created': '2021-08-24 17:25:38', 'remark': 'false', 'goodsTagIds': '', 'shareRatio': '0', 'handlingTeam': '', 'handlingRatio': '', 'handActualAmount': '', 'handManageAmount': '', 'handCollectionAmount': '', 'receivableAmount': '', 'categoryName': '水果', 'categoryId': '1616', 'driverTel': '', 'grossWeightDate': '2021-08-24 17:25:38', 'tareWeightDate': '2021-08-24 17:25:38', 'grossPathName': '', 'grossPathId': '', 'tarePathId': '', 'goodsRemark': '', 'inGreeterName': '国锋', 'inGreeterId': '16', 'outGreeterId': '', 'sumPrice': '9900', 'shipperName': '', 'shipperId': '', 'shipperPhone': '', 'feeDepName': '', 'calcFeeDepId': ''}
  132 +{}
  133 +
  134 +[2021-08-24 17:25:49] [INFO] : ======================================================================================
  135 +[2021-08-24 17:25:49] [INFO] : http://test.jmsf.diligrp.com:8385/entranceTrade/doUndo.action
  136 +protocolId=&pwd=&clientRedirectTag=&viewType=refund&optType=0&optUrl=&correctInfo=1&weightType=1&id=5784&goodsId=5798&number=202108240200292&modified=2021-08-24%2017%3A25%3A41&status=4&source=1&updateFeeItems=&correctDiscount=1&totalAmount=20300&customerId=141951&fundAccount=107621&accountId=107621&ic=210823173732&customerName=%E5%93%88%E6%B5%8B&customerPhone=18089008005&payway=%E5%88%B7%E5%8D%A1&plate=%E5%B7%9DA50358&autocomplete-cartype=456%28%E5%9C%B0%E6%8E%92%E8%BD%A6%29&carTypeName=%E5%9C%B0%E6%8E%92%E8%BD%A6&carTypeCode=456&carTypeId=158&carTypeWeight=10&storeTareWeight=&proveType=666&grossWeight=109&tareWeight=10&weight=99&goodsNum=&itemWeight=&productPrice=1.00000&unitPrice=100.0&depName=%E5%93%88%E8%BE%BE%E6%B5%8B%E8%AF%95%E9%83%A8&dep=129&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&originId=500101&tradeTypeId=&chargeTotalAmount=20300&chargeTotalAmountYuan=203&freezeMoneySymbol=203&comparisonFreezeAmount=203&created=2021-08-24%2017%3A25%3A38&remark=&goodsTagIds=&shareRatio=0&handlingTeam=&steveTeamId=&handlingRatio=&handActualAmount=0&handManageAmount=0&handCollectionAmount=0&marketFlag=hd&totalMoney=20300&receivable=20300&collectionPrice=0&discountAmount=0&handReceivableAmount=0&itemReceivableAmount=20300&receivableAmount=20300&categoryName=%E6%B0%B4%E6%9E%9C&categoryId=1616&driverTel=&grossWeightDate=2021-08-24%2017%3A25%3A38&tareWeightDate=2021-08-24%2017%3A25%3A38&grossPathName=&grossPathId=&tarePathId=&goodsRemark=%E5%A4%87%E6%B3%A8&inGreeterName=%E9%80%9A%E7%94%A8%E6%B5%8B%E8%AF%95&inGreeterId=274&outGreeterId=&sumPrice=9900&shipperName=&shipperId=&shipperPhone=&feeDepId=0&correctDiscount=1&billItems=&billItemsDic=&billItemCheckIds=488&488=200.00&billItems=%7B%22discount%22%3A0%2C%22id%22%3A488%2C%22name%22%3A%22%E4%BA%A4%E6%98%93%E7%AE%A1%E7%90%86%E8%B4%B9%22%2C%22receivable%22%3A20000%2C%22require%22%3A1%7D&billItemCheckIds=489&489=0.00&billItems=%7B%22discount%22%3A0%2C%22id%22%3A489%2C%22name%22%3A%22%E8%BF%94%E7%82%B9%22%2C%22receivable%22%3A0%2C%22require%22%3A1%7D&billItemCheckIds=494&494=3.00&billItems=%7B%22discount%22%3A0%2C%22id%22%3A494%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 137 {}
88 138  
89   -[2021-08-24 17:09:14] [INFO] : ======================================================================================
90   -[2021-08-24 17:09:14] [INFO] : http://test.jmsf.diligrp.com:8385/entranceFeeBill/listPage.action
91   -{'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', 'productName': '水生蔬菜', 'productId': 467}
  139 +[2021-08-24 17:25:52] [INFO] : ======================================================================================
  140 +[2021-08-24 17:25:52] [INFO] : http://test.jmsf.diligrp.com:8385/entranceFeeBill/listPage.action
  141 +{'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', 'startRefundTime': datetime.datetime(2021, 8, 24, 17, 25, 51), 'endRefundTime': datetime.datetime(2021, 8, 24, 17, 25, 51)}
92 142 {}
93 143  
... ...
testcase/heb/test_listPage/test_searchByOther.py
... ... @@ -194,9 +194,9 @@ class test_listPage(unittest.TestCase):
194 194 goods = "雪莲果"
195 195 cre_res = zcA.create_jmsf(host=self.gatewayHost,plate=plate,keyword=goods)
196 196 number = cre_res.json()["data"]["number"]
197   - res_pay = eFBL.do_payOrder(host=self.jmsfHost,attrValue=number)
  197 + res_pay = eFBL.do_payOrder(host=self.jmsfHost,attrValue=number,ic=self.ic)
198 198 time.sleep(3)
199   - res_undo = oDU.do_undoOrder(host=self.jmsfHost,attrValue=number)
  199 + res_undo = oDU.do_undoOrder(host=self.jmsfHost,attrValue=number,ic=self.ic)
200 200 refundTime = msa(f'SELECT efbd.operator_time FROM entrance_fee_bill efb JOIN entrance_fee_bill_detail efbd ON efb.id=efbd.bill_id WHERE efb.number="{number}";')[0][0]
201 201 resListPage = eFBL.listPage(host=self.jmsfHost, startRefundTime=refundTime, endRefundTime=refundTime)
202 202 assert resListPage.json()["rows"][0]["number"]==number,"退款时间查询失败"
... ...
testcase/sy/test_ZC/demo_b.py 0 → 100644
  1 +# -*- coding: utf-8 -*-
  2 +
  3 +# @Time : 2021/8/6 17:49
  4 +# @Author : Ljq
  5 +# @File : test_ZCCreate.py
  6 +# @Software: PyCharm
  7 +
  8 +"""
  9 +整车进门但创建测试
  10 +"""
  11 +
  12 +import json
  13 +import unittest
  14 +from commons.scripts.readConf import rC
  15 +from commons.api import zcApi as zcA
  16 +from commons.api.entranceFeeBillList import apiDemo
  17 +import time,random
  18 +
  19 +from commons.MySession import mysession
  20 +session = mysession()
  21 +session.cliLogin()
  22 +
  23 +class test_ZCCreate(unittest.TestCase):
  24 + """沈阳市场-整车-创建整车进门单"""
  25 + def setUp(self) -> None:
  26 + pass
  27 +
  28 + def tearDown(self) -> None:
  29 + pass
  30 +
  31 +
  32 + @classmethod
  33 + def setUpClass(cls) -> None:
  34 + cls.gatewayHost = rC.returnOptionsItems("host", "gatewayHost")
  35 + cls.jmsfHost = rC.returnOptionsItems("host", "jmsfHost")
  36 +
  37 + @classmethod
  38 + def tearDownClass(cls) -> None:
  39 + pass
  40 +
  41 + def test_creZC(self):
  42 + """整车-整车创建:按接车员名称信息查询接车员"""
  43 + """整车-整车创建:获取车型接口调用测试"""
  44 + # 依赖数据
  45 + plate = "川A12323"
  46 + productState = "1"
  47 + trailerNumber = plate
  48 +
  49 + # 获取车型
  50 + carType = apiDemo.get_carType(session=session,host=self.gatewayHost)
  51 + print(carType.text)
  52 + print(carType.json()["data"][0])
  53 +
  54 + # 获取商品
  55 + categoryByCondition = apiDemo.get_listCategoryByCondition(session=session,host=self.gatewayHost)
  56 + print(categoryByCondition.json())
0 57 \ No newline at end of file
... ...