CompanyService.java 1014 Bytes
package com.huaheng.system.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.huaheng.common.core.web.domain.AjaxResult;
import com.huaheng.system.api.domain.Company;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

public interface CompanyService extends IService<Company> {

    List<Company> selectCompanyByCurrentUserId();

    List<Company> selectCompanyByUserId(Long id);

    /**
     * 根据用户id、仓库编码获取货主
     *
     * @param userId
     * @param warehouseCode
     * @return
     */
    List<Company> selectCompanyByCurrentUserId(Long userId, String warehouseCode);

    AjaxResult addCompany(Company company);

    AjaxResult updateCompany(Company company);

    List<Map<String, Object>> getCode();

    List<Company> loginGetCompany(Long userId, String warehouseCode);

    /**
     * 根据编码获得货主
     *
     * @param code
     * @return
     */
    Company getCompanyByCode(String code);
}