1821349743@qq.com
2023-02-20 146b951e36b7529f4aa9671035a657f651762edc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
package com.product.administration.test;
 
import com.product.common.utils.HttpTest;
 
import java.util.HashMap;
import java.util.Map;
 
/**
 * @author: ZhouJie
 * @date: 2021/4/29 10:27
 * @description: 车辆事故记录测试类
 */
public class VehicleAccidentTest extends HttpTest {
    public static void main(String[] args) {
        //saveVehicleAccident();
        //deleteVehicleAccident();
        VehicleAccidentList();
        //VehicleAccidentInfo();
    }
    //保存车辆事故记录
    public static void saveVehicleAccident(){
        Map<String,Object> map=new HashMap<>();
        map.put("url/api", "/api/accident/save-accident/v1");
        map.put("~table~", "product_oa_vehicle_accident_record");
        //map.put("uuid", "e8a1a7d9-f0ae-4e1a-81d2-6fa89801a35a");
        map.put("vehicle_info_uuid", "3e6ef27c-59e5-4410-8c6f-136d68bc54a9");
        map.put("accident_time", "2021-04-29 11:00:19");
        map.put("driver_info_uuid", "8994cbed-b0de-472f-b60a-b5962d858082");
        map.put("accident_location", "上海");
        map.put("accident_cause", "高速堵车追尾3");
 
        testPost(map);
    }
    //删除车辆事故记录
    public static void deleteVehicleAccident(){
        Map<String,Object> map=new HashMap<>();
        map.put("url/api", "/api/accident/delete-accident/v1");
        map.put("~table~", "product_oa_vehicle_accident_record");
        map.put("uuid", "b8e40e2b-b52c-44af-ac2e-3a6ad272c256");
 
        testPost(map);
    }
    //车辆事故记录列表
    public static void VehicleAccidentList(){
        Map<String,Object> map=new HashMap<>();
        map.put("url/api", "/api/accident/list-accident/v1");
        map.put("~table~", "product_oa_vehicle_accident_record");
        map.put("pagesize", "25");
        map.put("cpage", "1");
 
        testPost(map);
    }
    //车辆事故记录详情
    public static void VehicleAccidentInfo(){
        Map<String,Object> map=new HashMap<>();
        map.put("url/api", "/api/accident/info-accident/v1");
        map.put("~table~", "product_oa_vehicle_accident_record");
        map.put("uuid", "d964a8b9-35c2-46bd-b17f-c96bf4124361");
 
        testPost(map);
    }
 
}