package com.product.org.admin.test; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import com.alibaba.fastjson.JSONObject; import com.product.common.utils.HttpTest; import com.product.org.admin.config.CmnConst; /** * * Copyright LX-BASE * @Title: LX-BASE- * @Project: StaffManagerTest * @Date: 2020-06-29 17:19 * @Author: 杜洪波 * @Description:员工管理(测试) */ public class StaffManagerTest extends HttpTest{ public static void main(String[] args) { // listStaffInfo(); //员工列表 √ // findStaffInfo(); //员工详情 √ // addStaffInfo(); //新增员工 √ // updateStaffInfo(); //员工修改 √ // freezAccount(); //冻结账号 √ // resetPassWord(); //重置密码 // listStaffProperty(); //员工系统属性列表 √ // findStaffProperty(); //员工系统属性详情 √ // updateStaffProperty(); //员工系统属性修改 √ // findStaffPersonalInfo();//员工个人信息详情 √ // findStaffAddressInfo(); //员工个人信息地址详情 // staffPersonalAndAddress(); //新增或修改员工个人信息,地址信息 √ // findStaffEmploymentInfo(); //员工就业信息详情 √ // delete(); // staffEmploymentInfo(); //新增或修改员工就业信息 √ // listStaffBankInfo(); //员工银行信息列表 √ // findStaffBankInfo(); //员工银行信息详情 √ // staffBankInfo(); //新增或修改员工银行信息 √ // listStaffEmergencyContact();//员工紧急联系人列表 √ // findStaffEmergencyContact();//员工紧急联系人详情 √ // staffEmergencyContact(); //新增或修改员工紧急联系人 √ // staffEmergencyContact(); //新增或修改员工紧急联系人 √ // findStaffByCondition(); // findStaffByUUID(); // findStaffDataByUUID();// } public static void listStaffInfo() { Map map=new HashMap(); map.put("url/api", "/api/staff-manager/list-staff/v1"); map.put("~table~", "product_sys_staffs"); map.put(CmnConst.ORG_LEVEL_UUID, "b8631dad-6cc1-4d5a-9f6f-e8c76e6a5464"); map.put(CmnConst.CPAGE, 1); map.put(CmnConst.PAGESIZE, 10); testPost(map); } public static void findStaffByCondition() { Map map=new HashMap(); map.put("url/api", "/api/staff-manager/find-staff_condition/v1"); map.put("~table~", "product_sys_staffs"); map.put(CmnConst.ORG_LEVEL_UUID, "00000000-0000-0000-0000-000000000000"); map.put("system_language_code", "zh-CN"); map.put("system_client_type", "web"); map.put("system_client_version", "v1"); testPost(map); } public static void findStaffInfo() { Map map=new HashMap(); map.put("url/api", "/api/staff-manager/find-staff/v1"); map.put("~table~", "product_sys_staffs"); map.put("uuid", "383479f1-a6c4-42bb-b821-b6e0537cf0e2"); testPost(map); } public static void addStaffInfo() { Map map=new HashMap(); map.put("url/api", "/api/staff-manager/add-staff/v1"); map.put("~table~", "product_sys_staffs"); // map.put("user_uuid", "001"); //后端生成 map.put("family_name", "杜"); //员工姓 map.put("given_name", "洪波涌起"); //员工名 map.put("christian_name", "Peter Du"); //员工洋名 map.put("preferred_name", "杜洪波"); //员工姓名 map.put("show_name", "Perter,杜洪波"); //显示姓名 map.put("child_name", "小名1"); //小名 map.put("org_level_uuid", "b8631dad-6cc1-4d5a-9f6f-e8c76e6a5464"); //所属公司uuid map.put("dept_uuid", "724b791d-c317-4113-9c6b-940c991868fc"); //所属部门uuid map.put("role_uuids", "1fd56936-143f-45c0-af46-8a085e1a5396"); //所属角色uuid map.put("job_post_uuid", "001"); //所属岗位uuid map.put("job_post_grade_uuid", "b8675936-5250-4dd9-8f34-3c993c2e0f94"); //所属岗位等级uuid map.put("staff_email", "10749825738@qq.com"); //员工邮箱 map.put("is_org_manager", "0"); List> staff_property=new ArrayList>(); Mapstaff_property1=new HashMap(); staff_property1.put("staff_property_master_uuid", "staff_property_uuid_016"); staff_property1.put("staff_property_master_code", "AAA001"); staff_property1.put("value", "其他"); staff_property1.put("effective_utc_datetime", "2020-3-1"); staff_property1.put("org_level_uuid", "74477f34-78f5-4a1e-8078-a3ce796df11b"); staff_property1.put("remarks", "民族"); Mapstaff_property2=new HashMap(); staff_property2.put("staff_property_master_uuid", "staff_property_uuid_016"); staff_property2.put("staff_property_master_code", "AAA001"); staff_property2.put("value", "汉"); staff_property2.put("effective_utc_datetime", "2020-6-1"); staff_property2.put("org_level_uuid", "74477f34-78f5-4a1e-8078-a3ce796df11b"); staff_property2.put("remarks", "名族"); Mapstaff_property3=new HashMap(); staff_property3.put("staff_property_master_uuid", "staff_property_uuid_019"); staff_property3.put("staff_property_master_code", "AAA001|BBB001"); staff_property3.put("value", "其他"); staff_property3.put("effective_utc_datetime", "2020-9-1"); staff_property3.put("org_level_uuid", "74477f34-78f5-4a1e-8078-a3ce796df11b"); staff_property3.put("remarks", "国籍"); Mapstaff_property4=new HashMap(); staff_property4.put("staff_property_master_uuid", "staff_property_uuid_019"); staff_property4.put("staff_property_master_code", "AAA001|BBB001"); staff_property4.put("value", "中国"); staff_property4.put("effective_utc_datetime", "2020-3-1"); staff_property4.put("org_level_uuid", "74477f34-78f5-4a1e-8078-a3ce796df11b"); staff_property4.put("remarks", "国籍"); Mapstaff_property5=new HashMap(); staff_property5.put("staff_property_master_uuid", "staff_property_uuid_022"); staff_property5.put("staff_property_master_code", "AAA001|BBB002"); staff_property5.put("value", "zh"); staff_property5.put("effective_utc_datetime", "2020-6-1"); staff_property5.put("org_level_uuid", "74477f34-78f5-4a1e-8078-a3ce796df11b"); staff_property5.put("remarks", "语言"); Mapstaff_property6=new HashMap(); staff_property6.put("staff_property_master_uuid", "staff_property_uuid_022"); staff_property6.put("staff_property_master_code", "AAA001|BBB002"); staff_property6.put("value", "cn"); staff_property6.put("effective_utc_datetime", "2020-9-1"); staff_property6.put("org_level_uuid", "74477f34-78f5-4a1e-8078-a3ce796df11b"); staff_property6.put("remarks", "语言"); staff_property.add(staff_property1); staff_property.add(staff_property2); staff_property.add(staff_property3); staff_property.add(staff_property4); staff_property.add(staff_property5); staff_property.add(staff_property6); map.put(CmnConst.PRODUCT_SYS_STAFF_PROPERTY, staff_property); testPost(map); } public static void updateStaffInfo() { Map map=new HashMap(); map.put("url/api", "/api/staff-manager/update-staff/v1"); map.put("~table~", "product_sys_staffs"); map.put("uuid", "30599e7b-b791-489b-9d28-2868409bff84"); map.put("user_uuid", "001"); //user表uuid map.put("family_name", "杜"); //员工姓 map.put("given_name", "洪波涌起"); //员工名 map.put("christian_name", "Peter Du"); //员工洋名 map.put("preferred_name", "杜洪波"); //员工姓名 map.put("show_name", "Perter,杜洪波"); //显示姓名 map.put("child_name", "小名2"); //小名 map.put("org_level_uuid", "74477f34-78f5-4a1e-8078-a3ce796df11b"); //所属公司uuid map.put("dept_uuid", "724b791d-c317-4113-9c6b-940c991868fc"); //所属部门uuid map.put("role_uuids", "1fd56936-143f-45c0-af46-8a085e1a5396"); //所属角色uuid map.put("job_post_uuid", "001"); //所属岗位uuid map.put("job_post_grade_uuid", "b8675936-5250-4dd9-8f34-3c993c2e0f94"); //所属岗位等级uuid map.put("staff_email", "10749825731@qq.com"); //员工邮箱 map.put("user_uuid","7dcdbc75-e928-4d46-82e3-3724ddcaefbe"); //员工登录账户uuid map.put("is_org_admin", "0"); //是否单位管理员 map.put("is_org_manager", "0"); //是否单位负责人 map.put("is_dept_manage", "0"); //是否部门负责人 map.put("status", "1"); //员工登录账户状态 testPost(map); } public static void freezAccount() { Map map=new HashMap(); map.put("url/api", "/api/staff-manager/staff-freezAccount/v1"); map.put("~table~", "product_sys_staffs"); map.put("uuid", "e7910f47-600a-45fd-b2b7-c72f42534614"); testPost(map); } public static void delete() { Map map=new HashMap(); map.put("url/api", "/api/staff-manager/staff-deleteStaff/v1"); map.put("~table~", "product_sys_staffs"); map.put("uuid", "335360c4-ef21-4cde-be3e-310e044c567e"); testPost(map); } public static void resetPassWord() { Map map=new HashMap(); map.put("url/api", "/api/staff-manager/staff-resetPassWord/v1"); map.put("~table~", "product_sys_users"); map.put("user_account", "1802488@qq.com"); testPost(map); } public static void listStaffProperty() { Mapmap=new HashMap(); map.put("url/api", "/api/staff-manager/list-staffProperty/v1"); map.put("~table~", "product_sys_staff_property"); map.put("staff_uuid", "5ade3a57-a0f4-4066-b426-a9df3d22d6e3"); testPost(map); } public static void findStaffProperty() { Mapmap=new HashMap(); map.put("url/api", "/api/staff-manager/find-staffProperty/v1"); map.put("~table~", "product_sys_staff_property"); map.put("staff_uuid", "30599e7b-b791-489b-9d28-2868409bff84"); //员工uuid map.put("staff_property_master_uuid", "staff_property_uuid_019"); //系统属性uuid testPost(map); } public static void updateStaffProperty() { Mapmap=new HashMap(); map.put("url/api", "/api/staff-manager/update-staffProperty/v1"); map.put("~table~", "product_sys_staffs"); map.put("uuid", "30599e7b-b791-489b-9d28-2868409bff84"); map.put("user_id", "320"); List> staff_property=new ArrayList>(); Mapstaff_property1=new HashMap(); staff_property1.put("uuid", "9d1879ba-dab1-41d2-9212-714c8eec7c94"); staff_property1.put("staff_uuid", "30599e7b-b791-489b-9d28-2868409bff84"); staff_property1.put("staff_property_master_uuid", "staff_property_uuid_016"); staff_property1.put("staff_property_master_code", "AAA001"); staff_property1.put("value", "其他"); staff_property1.put("effective_utc_datetime", "2020-3-1"); staff_property1.put("org_level_uuid", "74477f34-78f5-4a1e-8078-a3ce796df11b"); staff_property1.put("remarks", "民族1"); Mapstaff_property2=new HashMap(); staff_property2.put("uuid", "edf522b8-9f6f-4e31-8180-464938217688"); staff_property2.put("staff_uuid", "30599e7b-b791-489b-9d28-2868409bff84"); staff_property2.put("staff_property_master_uuid", "staff_property_uuid_016"); staff_property2.put("staff_property_master_code", "AAA001"); staff_property2.put("value", "汉"); staff_property2.put("effective_utc_datetime", "2020-6-1"); staff_property2.put("org_level_uuid", "74477f34-78f5-4a1e-8078-a3ce796df11b"); staff_property2.put("remarks", "名族1"); Mapstaff_property3=new HashMap(); staff_property3.put("uuid", "bfc17174-6adb-4e6e-b180-8a5eed062746"); staff_property3.put("staff_uuid", "30599e7b-b791-489b-9d28-2868409bff84"); staff_property3.put("staff_property_master_uuid", "staff_property_uuid_019"); staff_property3.put("staff_property_master_code", "AAA001|BBB001"); staff_property3.put("value", "其他"); staff_property3.put("effective_utc_datetime", "2020-9-1"); staff_property3.put("org_level_uuid", "74477f34-78f5-4a1e-8078-a3ce796df11b"); staff_property3.put("remarks", "国籍1"); Mapstaff_property4=new HashMap(); staff_property4.put("uuid", "cbe469b8-36a7-4e4a-b349-9181fd73d497"); staff_property4.put("staff_uuid", "30599e7b-b791-489b-9d28-2868409bff84"); staff_property4.put("staff_property_master_uuid", "staff_property_uuid_019"); staff_property4.put("staff_property_master_code", "AAA001|BBB001"); staff_property4.put("value", "中国"); staff_property4.put("effective_utc_datetime", "2020-3-1"); staff_property4.put("org_level_uuid", "74477f34-78f5-4a1e-8078-a3ce796df11b"); staff_property4.put("remarks", "国籍1"); Mapstaff_property5=new HashMap(); staff_property5.put("uuid", "c2a39e75-e480-413c-b789-e8a59772cac5"); staff_property5.put("staff_uuid", "30599e7b-b791-489b-9d28-2868409bff84"); staff_property5.put("staff_property_master_uuid", "staff_property_uuid_022"); staff_property5.put("staff_property_master_code", "AAA001|BBB002"); staff_property5.put("value", "zh"); staff_property5.put("effective_utc_datetime", "2020-6-1"); staff_property5.put("org_level_uuid", "74477f34-78f5-4a1e-8078-a3ce796df11b"); staff_property5.put("remarks", "语言1"); Mapstaff_property6=new HashMap(); staff_property6.put("uuid", "d8d79abe-f22d-4402-aad8-5b6984199292"); staff_property6.put("staff_uuid", "30599e7b-b791-489b-9d28-2868409bff84"); staff_property6.put("staff_property_master_uuid", "staff_property_uuid_022"); staff_property6.put("staff_property_master_code", "AAA001|BBB002"); staff_property6.put("value", "cn"); staff_property6.put("effective_utc_datetime", "2020-9-1"); staff_property6.put("org_level_uuid", "74477f34-78f5-4a1e-8078-a3ce796df11b"); staff_property6.put("remarks", "语言1"); staff_property.add(staff_property1); staff_property.add(staff_property2); staff_property.add(staff_property3); staff_property.add(staff_property4); staff_property.add(staff_property5); staff_property.add(staff_property6); map.put(CmnConst.PRODUCT_SYS_STAFF_PROPERTY, staff_property); System.out.println(new JSONObject(map).toJSONString()); testPost(map); } public static void findStaffPersonalInfo() { Mapmap=new HashMap(); map.put("url/api", "/api/staff-manager/find-staffPersonal/v1"); map.put("~table~", "product_sys_staff_personal_info"); map.put("staff_uuid", "383479f1-a6c4-42bb-b821-b6e0537cf0e2"); testPost(map); } public static void staffPersonalAndAddress() { Mapmap=new HashMap(); map.put("url/api", "/api/staff-manager/staff-personalAndAddress/v1"); map.put("~table~", "product_sys_staffs"); map.put("uuid", "383479f1-a6c4-42bb-b821-b6e0537cf0e2"); map.put("user_id", "317"); //封装员工住址子表 List> staff_address=new ArrayList>(); Mapstaff_address1=new HashMap(); staff_address1.put("uuid", "18377623-8415-49a2-a950-e2cc9d04b17c"); staff_address1.put("staff_uuid", "383479f1-a6c4-42bb-b821-b6e0537cf0e2"); staff_address1.put("~type~", "add"); staff_address1.put("address_type_uuid", "1"); staff_address1.put("address_line_1", "中南海"); staff_address1.put("address_line_2", "1楼"); staff_address1.put("address_line_3", "2号"); staff_address1.put("effective_start_date", "2020-3-1"); Mapstaff_address2=new HashMap(); staff_address2.put("uuid", "1345e71d-5ae2-472b-9147-b3ea81f45c1a"); staff_address2.put("staff_uuid", "383479f1-a6c4-42bb-b821-b6e0537cf0e2"); staff_address2.put("~type~", "add"); staff_address2.put("address_type_uuid", "1"); staff_address2.put("address_line_1", "人民大会堂"); staff_address2.put("address_line_2", "大厅"); staff_address2.put("address_line_3", "第一排"); staff_address2.put("effective_start_date", "2020-6-1"); Mapstaff_address3=new HashMap(); staff_address3.put("uuid", "f635c735-3d62-4d90-8e3c-0607f9754ed3"); staff_address3.put("staff_uuid", "383479f1-a6c4-42bb-b821-b6e0537cf0e2"); staff_address3.put("~type~", "add"); staff_address3.put("address_type_uuid", "1"); staff_address3.put("address_line_1", "故宫"); staff_address3.put("address_line_2", "正德殿"); staff_address3.put("address_line_3", "一柱"); staff_address3.put("effective_start_date", "2020-9-1"); // staff_address.add(staff_address1); // staff_address.add(staff_address2); // staff_address.add(staff_address3); map.put(CmnConst.PRODUCT_SYS_STAFF_ADDRESS, staff_address); List> staff_personalInfo=new ArrayList>(); Mapstaff_personalInfo1=new HashMap(); // staff_personalInfo1.put("uuid","38684e0b-1813-4fe9-b583-176aa7c2998f"); // staff_personalInfo1.put("staff_uuid", "383479f1-a6c4-42bb-b821-b6e0537cf0e2"); //关联员工uuid staff_personalInfo1.put("date_of_brith", "2010-1-1"); //出生日期 staff_personalInfo1.put("gender", "2"); //性别 staff_personalInfo1.put("maritual_status", "2"); //婚姻状态 staff_personalInfo1.put("mobile_number_area_code", "0827"); //手机区域代码 staff_personalInfo1.put("mobile_number", "15182792203"); //手机号码 staff_personalInfo1.put("home_number_area_code", "0827"); //座机区域代码 staff_personalInfo1.put("home_number", "71917899"); //座机号码 staff_personalInfo1.put("persona_email_address", "1074825719@qq.com"); //个人邮箱 staff_personalInfo1.put("fax", 124); //传真号码 staff_personalInfo.add(staff_personalInfo1); map.put(CmnConst.PRODUCT_SYS_STAFF_PERSONAL_INFO, staff_personalInfo); testPost(map); } public static void findStaffAddressInfo() { Mapmap=new HashMap(); map.put("url/api", "/api/staff-manager/find-staffAddress/v1"); map.put("~table~", CmnConst.PRODUCT_SYS_STAFF_ADDRESS); map.put("uuid", "133248f8-2a04-4b8e-9df5-103adb2865b5"); testPost(map); } public static void findStaffEmploymentInfo() { Mapmap=new HashMap(); map.put("url/api", "/api/staff-manager/find-staffEmployment/v1"); map.put("~table~", CmnConst.PRODUCT_SYS_STAFF_EMPLOYMENT_INFO); map.put("staff_uuid", "383479f1-a6c4-42bb-b821-b6e0537cf0e2"); testPost(map); } public static void staffEmploymentInfo() { Mapmap=new HashMap(); map.put("url/api", "/api/staff-manager/staff-employmentInfo/v1"); map.put("~table~", CmnConst.PRODUCT_SYS_STAFF_EMPLOYMENT_INFO); // map.put("uuid", "67f1e0fc-2475-48d9-8328-22ef25ba7ac8"); map.put("staff_uuid", "32700e5d-e114-4884-9bd4-ffcfbc611061"); //员工uuid map.put("first_employment_date", "2020-1-1"); //第一次加入公司时间 map.put("employment_date", "2020-2-2"); //最近加入公司时间 map.put("probation_end_date", "2020-3-3"); //试用结束日期 // staff_employ1.put("termination_effective_date", "2020-4-4"); //离职日期 testPost(map); } public static void listStaffBankInfo() { Mapmap=new HashMap(); map.put("url/api", "/api/staff-manager/list-staffBank/v1"); map.put("~table~", CmnConst.PRODUCT_SYS_STAFF_BANK_ACCOUNT); map.put("staff_uuid", "383479f1-a6c4-42bb-b821-b6e0537cf0e2"); testPost(map); } public static void findStaffBankInfo() { Mapmap=new HashMap(); map.put("url/api", "/api/staff-manager/find-staffBank/v1"); map.put("~table~", CmnConst.PRODUCT_SYS_STAFF_BANK_ACCOUNT); map.put("uuid", "90d1d181-2136-459f-85a1-53cfb039242a"); testPost(map); } public static void staffBankInfo() { Mapmap=new HashMap(); map.put("url/api", "/api/staff-manager/staff-bankInfo/v1"); map.put("~table~", CmnConst.PRODUCT_SYS_STAFFS); map.put("uuid", "383479f1-a6c4-42bb-b821-b6e0537cf0e2"); map.put("user_id", "317"); List> staff_bank=new ArrayList>(); Mapstaff_bank1=new HashMap(); staff_bank1.put("uuid", "80759c58-c915-49f2-bf96-b45b8f26f894"); staff_bank1.put("staff_uuid", "383479f1-a6c4-42bb-b821-b6e0537cf0e2"); staff_bank1.put("bank_name", "中行"); //银行名称 staff_bank1.put("bank_account_number", "243984732897898789"); //银行账号 staff_bank1.put("bank_account_holder_name", "月如钩1"); //账号登记名 Mapstaff_bank2=new HashMap(); staff_bank2.put("uuid", "90d1d181-2136-459f-85a1-53cfb039242a"); staff_bank2.put("staff_uuid", "383479f1-a6c4-42bb-b821-b6e0537cf0e2"); staff_bank2.put("bank_name", "中行"); //银行名称 staff_bank2.put("bank_account_number", "243984732897898789"); //银行账号 staff_bank2.put("bank_account_holder_name", "月如钩1"); //账号登记名 Mapstaff_bank3=new HashMap(); staff_bank3.put("~type~", "del"); staff_bank3.put("uuid", "1a825e28-f5a4-4dc4-99b7-c1f435fc5c30"); staff_bank3.put("staff_uuid", "383479f1-a6c4-42bb-b821-b6e0537cf0e2"); staff_bank3.put("bank_name", "中行"); //银行名称 staff_bank3.put("bank_account_number", "243984732897898789"); //银行账号 staff_bank3.put("bank_account_holder_name", "月如钩1"); //账号登记名 staff_bank.add(staff_bank1); staff_bank.add(staff_bank2); staff_bank.add(staff_bank3); map.put(CmnConst.PRODUCT_SYS_STAFF_BANK_ACCOUNT, staff_bank); testPost(map); } public static void listStaffEmergencyContact() { Mapmap=new HashMap(); map.put("url/api", "/api/staff-manager/list-staffEmergencyContact/v1"); map.put("~table~", CmnConst.PRODUCT_SYS_STAFF_EMERGENCY_CONTACT_INFO); map.put("staff_uuid", "383479f1-a6c4-42bb-b821-b6e0537cf0e2"); testPost(map); } public static void findStaffEmergencyContact(){ Mapmap=new HashMap(); map.put("url/api", "/api/staff-manager/find-staffEmergencyContact/v1"); map.put("~table~", CmnConst.PRODUCT_SYS_STAFF_EMERGENCY_CONTACT_INFO); map.put("uuid", "25c751b3-7a5c-45f0-a15e-a7f120475c4c"); testPost(map); } public static void staffEmergencyContact() { Mapmap=new HashMap(); map.put("url/api", "/api/staff-manager/staff-Liaison/v1"); map.put("~table~", CmnConst.PRODUCT_SYS_STAFFS); map.put("uuid", "383479f1-a6c4-42bb-b821-b6e0537cf0e2"); map.put("user_id", "317"); List> staff_emergenContact=new ArrayList>(); Mapstaff_emergenContact1=new HashMap(); // staff_emergenContact1.put("uuid", ""); // staff_emergenContact1.put("staff_uuid", ""); staff_emergenContact1.put("emergency_contact_relationship", "父子"); //联系人关系 staff_emergenContact1.put("emergency_contact_family_name", "张"); //紧急联系人姓 staff_emergenContact1.put("emergency_contact_given_name", "张三"); //紧急联系人名称 staff_emergenContact1.put("emergency_contact_christian_name", "ZhangSan"); //紧急联系人外名 staff_emergenContact1.put("emergency_contact_area_code", "028"); //紧急联系人区号 staff_emergenContact1.put("emergency_contact_phone_number", "23456789");//紧急联系人电话号码 staff_emergenContact1.put("emergency_contact_email", "24324343@qq.com");//紧急联系人邮箱 staff_emergenContact1.put("emergency_contact_address_line_1", "中南海");//紧急联系人地址1 staff_emergenContact1.put("emergency_contact_address_line_2", "一栋"); //紧急联系人地址2 staff_emergenContact1.put("emergency_contact_address_line_3", "一号"); //紧急联系人地址3 Mapstaff_emergenContact2=new HashMap(); // staff_emergenContact2.put("uuid", ""); // staff_emergenContact2.put("staff_uuid", ""); staff_emergenContact2.put("emergency_contact_relationship", "父子"); //联系人关系 staff_emergenContact2.put("emergency_contact_family_name", "李"); //紧急联系人姓 staff_emergenContact2.put("emergency_contact_given_name", "李四"); //紧急联系人名称 staff_emergenContact2.put("emergency_contact_christian_name", "LiSi"); //紧急联系人外名 staff_emergenContact2.put("emergency_contact_area_code", "028"); //紧急联系人区号 staff_emergenContact2.put("emergency_contact_phone_number", "23456789");//紧急联系人电话号码 staff_emergenContact2.put("emergency_contact_email", "24324343@qq.com");//紧急联系人邮箱 staff_emergenContact2.put("emergency_contact_address_line_1", "云梦泽");//紧急联系人地址1 staff_emergenContact2.put("emergency_contact_address_line_2", "一栋"); //紧急联系人地址2 staff_emergenContact2.put("emergency_contact_address_line_3", "一号"); //紧急联系人地址3 Mapstaff_emergenContact3=new HashMap(); // staff_emergenContact3.put("uuid", ""); // staff_emergenContact3.put("staff_uuid", ""); staff_emergenContact3.put("emergency_contact_relationship", "父子"); //联系人关系 staff_emergenContact3.put("emergency_contact_family_name", "王"); //紧急联系人姓 staff_emergenContact3.put("emergency_contact_given_name", "王五"); //紧急联系人名称 staff_emergenContact3.put("emergency_contact_christian_name", "WangWu"); //紧急联系人外名 staff_emergenContact3.put("emergency_contact_area_code", "028"); //紧急联系人区号 staff_emergenContact3.put("emergency_contact_phone_number", "23456789");//紧急联系人电话号码 staff_emergenContact3.put("emergency_contact_email", "24324343@qq.com");//紧急联系人邮箱 staff_emergenContact3.put("emergency_contact_address_line_1", "玉门关");//紧急联系人地址1 staff_emergenContact3.put("emergency_contact_address_line_2", "一栋"); //紧急联系人地址2 staff_emergenContact3.put("emergency_contact_address_line_3", "一号"); //紧急联系人地址3 staff_emergenContact.add(staff_emergenContact1); staff_emergenContact.add(staff_emergenContact2); staff_emergenContact.add(staff_emergenContact3); map.put(CmnConst.PRODUCT_SYS_STAFF_EMERGENCY_CONTACT_INFO, staff_emergenContact); testPost(map); } public static void findStaffByUUID() { Mapmap=new HashMap(); map.put("url/api", "/find-staff-bossAndRole/v1"); map.put("~table~", CmnConst.PRODUCT_SYS_STAFFS); map.put("staff_uuid", "383479f1-a6c4-42bb-b821-b6e0537cf0e2"); testPost(map); } public static void findStaffDataByUUID() { Mapmap=new HashMap(); map.put("url/api", "/find-staff-data/v1"); map.put("~table~", CmnConst.PRODUCT_SYS_STAFFS); map.put("staff_uuid", "73d6d967-e3a9-4f5c-9d03-ef79dcdb4495"); testPost(map); } }