shichongfu
2023-04-25 ce0b49552668d3331055e2b1a1447a743dc54939
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
    /**
 * 
 */
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);
    }
}