CompanyService.java
1014 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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);
}