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
package com.product.org.admin.test;
 
import java.util.HashMap;
import java.util.Map;
 
import com.product.common.utils.HttpTest;
 
/**
 * 成本中心
* Copyright  LX-BASE
* @Title: LX-BASE-
* @Project: CostCenterTest
* @Author: 杜洪波
* @Description:
 */
public class CostCenterTest extends HttpTest{
 
    public static void main(String[] args) {
//        findCostCenter();    //成本中心详情
        updateCostCenter();    //成本中心修改
//        deleteCostCenter();    //成本中心删除
    }
    
    public static void findCostCenter() {
        Map<String,Object> map=new HashMap<>();
        map.put("url/api", "/api/cost_center/find-center/v1");
        map.put("~table~", "product_sys_org_levels");
        map.put("uuid", "6e2562ee-f6db-4667-8e38-0fc99c510a46");
        testPost(map);
    } 
    
    public static void updateCostCenter() {
        Map<String,Object> map=new HashMap<>();
        map.put("url/api", "/api/cost_center/update-center/v1");
        map.put("~table~", "product_sys_org_levels");
        map.put("uuid", "6e2562ee-f6db-4667-8e38-0fc99c510a46");
        map.put("effective_start_date", "2021-01-01");
        map.put("effective_end_date", "2021-01-02");
        map.put("cost_center_code", "asdf");
        map.put("org_level_uuid", "21ff4f09-d856-4580-9e1b-0eea542d37af");
        
        testPost(map);
    } 
    
    public static void deleteCostCenter() {
        Map<String,Object> map=new HashMap<>();
        map.put("url/api", "/api/cost_center/delect-center/v1");
        map.put("~table~", "product_sys_org_levels");
        map.put("uuid", "");
        
        testPost(map);
    } 
}