package com.product.administration.test; import com.product.common.utils.HttpTest; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; /** * @author: ZhouJie * @date: 2021/5/6 16:05 * @description: 用车申请测试类 */ public class CarApplicationTest extends HttpTest { public static void main(String[] args) { //saveCarApplication(); //deleteCarApplication(); CarApplicationList(); //CarApplicationInfo(); } //用车申请保存 public static void saveCarApplication(){ Map map=new HashMap<>(); map.put("url/api", "/api/applications/save-application/v1"); map.put("~table~", "product_oa_car_application"); map.put("uuid", "e93f334e-57fb-4739-b6b3-bcc0422115bc"); map.put("applicattion_time", "2021-05-06 11:01:19"); map.put("start_place", "起止地点(测试数据-修改)"); map.put("vehicle_line", "车辆线路(测试数据-修改)"); map.put("project_name", "项目名称(测试数据-修改)"); map.put("use_reason", "用车事由及要求(测试数据-修改)"); testPost(map); } //删除用车申请 public static void deleteCarApplication(){ Map map=new HashMap<>(); map.put("url/api", "/api/applications/delete-application/v1"); map.put("~table~", "product_oa_car_application"); map.put("uuid", "5561c58e-95a1-4cdf-8a61-836238a0b61f"); testPost(map); } //用车申请列表 public static void CarApplicationList(){ Map map=new HashMap<>(); map.put("url/api", "/api/applications/list-application/v1"); map.put("~table~", "product_oa_car_application"); map.put("pagesize", "25"); map.put("cpage", "1"); testPost(map); } //用车申请详情 public static void CarApplicationInfo(){ Map map=new HashMap<>(); map.put("url/api", "/api/applications/info-application/v1"); map.put("~table~", "product_oa_car_application"); map.put("uuid", "032fe6fa-9273-408c-85fc-8d7d25375850"); testPost(map); } }