zm
2024-10-23 81cb8be7291b6841d0709cf672c0a20ad5e35a5c
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
package com.product.administration.test;
 
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
 
import com.product.administration.config.CmnConst;
import com.product.common.utils.HttpTest;
 
public class CustmoerInfoTest extends HttpTest{
 
    public static void main(String[] args) {
//        addCustomerInfo();    //新增客户基本信息
    }
    
    public void addCustomerInfo() {
        Map<String, Object>map=new HashMap<>();
        map.put("~table~", CmnConst.PRODUCT_PROJECT_CUSTOMER);
        map.put("apli/url", "/api/customer/add-customer-info");
        map.put("customer_name", "");
        map.put("customer_superior_name", "");
        map.put("area_province", "");
        map.put("area_country", "");
        map.put("area_city", "");
        map.put("customer_category", "");        //客户类别
        map.put("customer_category_sub", "");    //客户类别(细分)
        map.put("customer_address", "");        //客户单位地址
        map.put("customer_level", "");            //客户级别
        map.put("customer_properties", "");        //单位性质
        map.put("customer_manager", "");        //区域负责人
        map.put("customer_manager_leader", "");    //分管领导
        map.put("customer_net", "");            //公司网址
        map.put("remark", "");                    //备注
        
        List<Map<String,Object>>listMap=new ArrayList<>();
        
        Map<String, Object>map1=new HashMap<>();
        map1.put("linkman", "");
        map1.put("gender", "");
        map1.put("department", "");
        map1.put("post", "");
        map1.put("mobile", "");
        map1.put("tel", "");
        map1.put("email", "");
        map1.put("status", "");
        map1.put("remark", "");
        
        Map<String, Object>map2=new HashMap<>();
        map1.put("linkman", "");
        map1.put("gender", "");
        map1.put("department", "");
        map1.put("post", "");
        map1.put("mobile", "");
        map1.put("tel", "");
        map1.put("email", "");
        map1.put("status", "");
        map1.put("remark", "");
        
        listMap.add(map1);
        listMap.add(map2);
        
        map.put(CmnConst.PRODUCT_PROJECT_CUSTOMER_SUB, listMap);
        
        testPost(map);
    }
}