/** * */ package com.product.org.admin.test; import java.text.SimpleDateFormat; import java.util.Date; import java.util.HashMap; import java.util.Map; import com.product.common.utils.HttpTest; /** * Copyright LX-BASE * @Title: * @Project: LX-BASE-SERVER * @Date: 2020年6月12日 下午3:20:21 * @Author: 郑盟 * @Description: */ public class DimissionHandoverTest extends HttpTest{ public static void main(String[] args) { // DimissionHandoverTest.findHandover();//查看离职申请详情 // DimissionHandoverTest.listHandover();//查看离职申请列表 // DimissionHandoverTest.findStaffs(); // DimissionHandoverTest.UpdateHandover();// 修改离职申请测试 // DimissionHandoverTest.AddHandover();// 新增离职申请测试 DimissionHandoverTest.delHandover();//删除离职申请测试 } public static void findHandover() { Map m = new HashMap(); m.put("~table~", "product_sys_change_handover"); m.put("url/api", "/api/handover/find-handover/v1"); m.put("uuid", "4663441b-7b3b-41d8-ad0b-545970257327"); testPost(m); } public static void listHandover() { Map m = new HashMap(); m.put("~table~", "product_sys_change_handover"); m.put("url/api", "/api/handover/list-handover/v1"); m.put("cpage", 10); m.put("pagesize", 1); testPost(m); } public static void AddHandover() { Map m = new HashMap(); m.put("~table~", "product_sys_change_handover"); m.put("url/api", "/api/handover/add-handover/v1"); m.put("apply_staff_uuid", "002"); // 申请人 m.put("handover_staff_uuid", "003"); // 工作接手人 SimpleDateFormat df = new SimpleDateFormat("yyyyMMddHHmmss");// 设置日期格式 m.put("handover_date", df.format(new Date())); // 交接时间 m.put("handover_detail", "aaaaaa"); // 交接情况 m.put("attachment", "assasa"); // 交接附件 testPost(m); } public static void UpdateHandover() { Map m = new HashMap(); m.put("~table~", "product_sys_change_handover"); m.put("url/api", "/api/handover/update-handover/v1"); m.put("uuid", "ccbab42b-c8c8-4ebf-85c3-ba7ff0a24fc0"); m.put("apply_staff_uuid", "002"); // 申请人 m.put("handover_staff_uuid", "003"); // 工作接手人 SimpleDateFormat df = new SimpleDateFormat("yyyyMMddHHmmss");// 设置日期格式 m.put("handover_date", df.format(new Date())); // 交接时间 m.put("handover_detail", "1111"); // 交接情况 m.put("attachment", "111"); // 交接附件 testPost(m); } public static void delHandover() { Map m = new HashMap(); m.put("~table~", "product_sys_change_handover"); m.put("url/api", "/api/handover/delete-handover/v1"); m.put("uuid", "ccbab42b-c8c8-4ebf-85c3-ba7ff0a24fc0"); testPost(m); } }