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 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 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 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 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); } }