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 结果 */ public int deleteUserCompanyByUserId(Integer userId,String warehouseCode); /** * 通过货主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); }