==================================== 中介黑名单管理API测试报告 测试时间: 2026-01-29 16:43:11 ==================================== ========== 登录测试 ========== 请求: POST http://localhost:8080/login/test 响应: {"msg":"操作成功","code":200,"token":"eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsImxvZ2luX3VzZXJfa2V5IjoiNzJlZTM0OTMtOGMyNS00OTM3LWIyMTEtZjc3MDkwZTIwZGNkIn0.wteMG8WO8U03TJysq7MeAbBflFrZdJXrsKFSdIgVlf-irCLNN1BsyKISTCfnSqJbZ4TM74DhrEPAefYN0mvtaA"} 结果: 成功 ========== 测试1: 查询中介黑名单列表 ========== 请求: GET http://localhost:8080/dpc/intermediary/list?pageNum=1&pageSize=10 响应已保存至: test_output/test1_list_response.json 结果: 成功 ========== 测试2: 新增个人中介黑名单 ========== 请求: POST http://localhost:8080/dpc/intermediary 请求体: { "name": "测试个人中介_20260129_164311", "certificateNo": "TESTCERT20260129_164311", "intermediaryType": "1", "remark": "自动化测试数据" } 响应已保存至: test_output/test2_add_person_response.json 结果: 成功 ========== 测试3: 新增机构中介黑名单 ========== 请求: POST http://localhost:8080/dpc/intermediary 请求体: { "name": "测试机构中介_20260129_164311", "certificateNo": "TESTORG20260129_164311", "intermediaryType": "2", "remark": "自动化测试机构数据" } 响应已保存至: test_output/test3_add_entity_response.json 结果: 成功 ========== 测试4: 获取中介详情 ========== 请求: GET http://localhost:8080/dpc/intermediary/2005 响应已保存至: test_output/test4_get_info_response.json 结果: 成功 ========== 测试5: 修改中介黑名单 ========== 请求: PUT http://localhost:8080/dpc/intermediary 请求体: { "intermediaryId": 2005, "name": "测试个人中介_修改", "certificateNo": "TESTCERT20260129_164311", "intermediaryType": "1", "status": "1", "remark": "修改后的自动化测试数据" } 响应已保存至: test_output/test5_edit_response.json 结果: 成功 ========== 测试6: 导出中介黑名单列表 ========== 请求: POST http://localhost:8080/dpc/intermediary/export 文件已保存至: test_output/test6_export.xlsx 结果: 成功 ========== 测试7: 下载个人中介导入模板 ========== 请求: POST http://localhost:8080/dpc/intermediary/importPersonTemplate 文件已保存至: test_output/test7_person_template.xlsx 结果: 成功 ========== 测试8: 下载机构中介导入模板 ========== 请求: POST http://localhost:8080/dpc/intermediary/importEntityTemplate 文件已保存至: test_output/test8_entity_template.xlsx 结果: 成功 ========== 测试10: 条件查询(按中介类型) ========== 请求: GET http://localhost:8080/dpc/intermediary/list?pageNum=1&pageSize=10&intermediaryType=1 响应已保存至: test_output/test10_query_by_type_response.json 结果: 成功 ========== 测试11: 条件查询(按状态) ========== 请求: GET http://localhost:8080/dpc/intermediary/list?pageNum=1&pageSize=10&status=1 响应已保存至: test_output/test11_query_by_status_response.json 结果: 成功 ========== 测试9: 删除中介黑名单 ========== 请求: DELETE http://localhost:8080/dpc/intermediary/2005,2006 响应已保存至: test_output/test9_remove_response.json 结果: 成功 ==================================== 测试汇总 ==================================== 测试场景总数: 11 通过数量: 11 失败数量: 0 通过率: 100.00% 详细响应文件已保存至: test_output/ 测试报告文件: test_output/test_report_20260129_164311.txt ====================================