package com.product.org.admin.test; import java.util.Date; import java.util.HashMap; import java.util.Map; import com.product.common.utils.HttpTest; import com.product.org.admin.config.CmnConst; public class StaffRegularEmployeeTest extends HttpTest{ public static void main(String[] args) { // listRegularInfo(); //转正信息列表 // findRegularInfo(); //转正信息详情 // addRegularInfo(); //转正信息新增 // updateRegularInfo();//转正信息修改 // deleteRegularInfo();//转正信息删除 } public static void listRegularInfo() { Mapmap=new HashMap(); map.put("url/api", "/api/staffRegularEmployee/list-regularEmployee/v1"); map.put("~table~", "product_sys_staff_complete_probation"); map.put(CmnConst.CPAGE, 1); map.put(CmnConst.PAGESIZE, 10); testPost(map); } public static void findRegularInfo() { Mapmap=new HashMap(); map.put("url/api", "/api/staffRegularEmployee/find-regularEmployee/v1"); map.put("~table~", "product_sys_staff_complete_probation"); map.put("uuid", ""); testPost(map); } public static void addRegularInfo() { Mapmap=new HashMap(); map.put("url/api", "/api/staffRegularEmployee/add-regularEmployee/v1"); map.put("~table~", "product_sys_staff_complete_probation"); map.put("staff_uuid", "a33e9d8f-6bea-473b-84d8-3e24f29a6d27"); map.put("employment_date", new Date()); map.put("probation_end_date", new Date()); map.put("remarks", "测试转正"); testPost(map); } public static void updateRegularInfo() { Mapmap=new HashMap(); map.put("url/api", "/api/staffRegularEmployee/update-regularEmployee/v1"); map.put("~table~", "product_sys_staff_complete_probation"); map.put("uuid", ""); testPost(map); } public static void deleteRegularInfo() { Mapmap=new HashMap(); map.put("url/api", "/api/staffRegularEmployee/delete-regularEmployee/v1"); map.put("~table~", "product_sys_staff_complete_probation"); map.put("uuid", ""); testPost(map); } }