package com.product.org.admin.test; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import com.product.common.utils.HttpTest; import com.product.org.admin.config.CmnConst; public class StaffsRegularEmployeeTest extends HttpTest{ public static void main(String[] args) { // listStaffInfo(); //员工列表 // findStaffInfo(); //员工详情 // addStaff(); //新增员工 updateStaff(); //员工修改 // freezAccount(); //冻结账号 // staffBankInfo(); //戏赠或修改员工银行信息 } public static void listStaffInfo() { Map map=new HashMap(); map.put("url/api", "/api/staffRegularEmployee/list-regularEmployee/v1"); map.put("~table~", "product_sys_staff_regular_employee"); map.put(CmnConst.CPAGE, 1); map.put(CmnConst.PAGESIZE, 10); 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", "e2f158ec-a6c7-40e0-a201-4fd7eb2e0e98"); testPost(map); } public static void addStaff() { Map map=new HashMap(); map.put("url/api", "/api/staffRegularEmployee/add-regularEmployee/v1"); map.put("~table~", "product_sys_staff_regular_employee"); map.put("staff_uuid", "383479f1-a6c4-42bb-b821-b6e0537cf0e2"); //user表uuid map.put("join_com_date", "2020-07-01"); //员工姓 map.put("change_regular_emp_date", "2020-08-03"); //员工名 map.put("remark", "remark"); //员工洋名 testPost(map); } public static void updateStaff() { Map map=new HashMap(); map.put("url/api", "/api/staffRegularEmployee/update-regularEmployee/v1"); map.put("~table~", "product_sys_staff_regular_employee"); map.put("staff_uuid", "383479f1-a6c4-42bb-b821-b6e0537cf0e2"); //user表uuid map.put("join_com_date", "2020-07-01"); //员工姓 map.put("change_regular_emp_date", "2020-09-03"); //员工名 map.put("remark", "remark"); //员工洋名 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", "8c1a02c5-5d47-415a-960a-0c1b03a54b06"); testPost(map); } public static void staffBankInfo() { Mapmap=new HashMap(); map.put("url/api", "/api/staff-manager/staff-bankInfo/v1"); List bankInfo = new ArrayList(); Map bankInfo1=new HashMap(); bankInfo1.put("~change_type~", "add"); bankInfo1.put("staff_uuid", "8c1a02c5-5d47-415a-960a-0c1b03a54b06"); bankInfo1.put("bank_name", "工商"); bankInfo1.put("bank_account_number", "1000000000000001"); bankInfo1.put("bank_account_holder_name", "茻冖釒灬氵"); Map bankInfo2=new HashMap(); bankInfo1.put("~change_type~", "add"); bankInfo1.put("staff_uuid", "8c1a02c5-5d47-415a-960a-0c1b03a54b0622"); bankInfo1.put("bank_name", "工商222"); bankInfo1.put("bank_account_number", "100000000000000122"); bankInfo1.put("bank_account_holder_name", "茻冖釒灬氵"); /* Map bankInfo2=new HashMap(); bankInfo2.put("~change_type~", "update"); bankInfo2.put("uuid", ""); bankInfo1.put("staff_uuid", ""); bankInfo1.put("bank_name", ""); bankInfo1.put("bank_account_number", ""); bankInfo1.put("bank_account_holder_name", ""); Map bankInfo3=new HashMap(); bankInfo3.put("~change_type~", "delete"); bankInfo3.put("uuid", ""); bankInfo1.put("staff_uuid", ""); bankInfo1.put("bank_name", ""); bankInfo1.put("bank_account_number", ""); bankInfo1.put("bank_account_holder_name", ""); */ bankInfo.add(bankInfo1); bankInfo.add(bankInfo2); /* bankInfo.add(bankInfo3); */ map.put("product_sys_staff_bank_account", bankInfo); testPost(map); } }