杜洪波
2024-11-15 1e48c6297625c22677634b9144383dd95ded511e
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
64
65
66
67
package com.product.administration.test;
 
import com.product.common.utils.HttpTest;
 
import java.util.HashMap;
import java.util.Map;
 
/**
 * @description: 车辆信息测试类
 * @author: ZhouJie
 * @date: 2021-04-26 18:03
 */
public class VehicleInfoTest extends HttpTest {
 
    public static void main(String[] args) {
        //saveVehicle();
        //deleteVehicle();
        //VehicleList();
        VehicleInfo();
    }
    //保存车辆信息
    public static void saveVehicle(){
        Map<String,Object> map=new HashMap<>();
        map.put("url/api", "/api/vehicleinfo/save-vehicle/v1");
        map.put("~table~", "product_oa_vehicle_info");
        //map.put("uuid", "3e6ef27c-59e5-4410-8c6f-136d68bc54a9");
        map.put("plate_number", "川A0003");
        map.put("vehicle_status", 3);
        map.put("org_level_uuid", "00000000-0000-0000-0000-000000000000");
        map.put("vehicle_type", 3);
        map.put("leaders", 3);
        map.put("purchase_date", "2021-04-22 11:00:19");
        map.put("brand_series", "宝马X5");
        map.put("purchase_price", 500000.00);
 
        testPost(map);
    }
    //删除车辆信息
    public static void deleteVehicle(){
        Map<String,Object> map=new HashMap<>();
        map.put("url/api", "/api/vehicleinfo/delete-vehicle/v1");
        map.put("~table~", "product_oa_vehicle_info");
        map.put("uuid", "5a5cdd8c-584d-4b18-90bc-331722f92edf");
 
        testPost(map);
    }
    //车辆信息列表
    public static void VehicleList(){
        Map<String,Object> map=new HashMap<>();
        map.put("url/api", "/api/vehicleinfo/list-vehicle/v1");
        map.put("~table~", "product_oa_vehicle_info");
        map.put("pagesize", "25");
        map.put("cpage", "1");
 
        testPost(map);
    }
    //车辆信息详情
    public static void VehicleInfo(){
        Map<String,Object> map=new HashMap<>();
        map.put("url/api", "/api/vehicleinfo/info-vehicle/v1");
        map.put("~table~", "product_oa_vehicle_info");
        map.put("uuid", "3e6ef27c-59e5-4410-8c6f-136d68bc54a9");
 
        testPost(map);
    }
 
}