package com.sunda.spmswms.service;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sunda.spmswms.entity.CostCenter;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 仓库信息表 服务类
 * </p>
 *
 * @author Wayne
 * @since 2020-11-24
 */
public interface ICostCenterService extends IService<CostCenter> {

    List<CostCenter> getCostCenterList();

    /** 监听来自 SAP 的成本中心数据，写入/更新数据库 */
    void insertCostCenter(JSONObject doc);

    /** 根据工厂代码查询关联的成本中心代码 */
    List<Map<String, Object>> getCostCenterByWerks(String werks);
}
