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 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 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 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); } }