Blame view

src/main/java/com/huaheng/pc/system/user/mapper/UserCompanyMapper.java 1.17 KB
tangying authored
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
package com.huaheng.pc.system.user.mapper;

import java.util.List;
import com.huaheng.pc.system.user.domain.UserCompany;


/**
 * 用户与货主  数据层
 * 
 * @author huaheng
 */
public interface UserCompanyMapper
{
    /**
     * 通过条件查询用户货主列表
     *
     * @param condition 查询条件
     * @return 结果
     */
    List<UserCompany> selectListEntityByEqual(UserCompany condition);

    /**
     * 通过用户ID删除用户和货主关联
     * 
     * @param userId 用户ID
     * @return 结果
     */
周鸿 authored
28
    public int deleteUserCompanyByUserId(Integer userId,String warehouseCode);
tangying authored
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54

    /**
     * 通过货主ID查询货主使用数量
     * 
     * @param companyId 货主ID
     * @return 结果
     */
    public int countUserCompanyById(Integer companyId);

    /**
     * 批量删除用户和货主关联
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteUserCompany(Integer[] ids);

    /**
     * 批量新增用户货主信息
     * 
     * @param userCompanyList 用户货主列表
     * @return 结果
     */
    public int batchUserCompany(List<UserCompany> userCompanyList);

}