package com.zhongzheng.modules.recruit.service;

import com.zhongzheng.modules.recruit.domain.RecruitCompanyTrade;
import com.zhongzheng.modules.recruit.vo.RecruitCompanyTradeVo;
import com.zhongzheng.modules.recruit.bo.RecruitCompanyTradeQueryBo;
import com.zhongzheng.modules.recruit.bo.RecruitCompanyTradeAddBo;
import com.zhongzheng.modules.recruit.bo.RecruitCompanyTradeEditBo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Collection;
import java.util.List;

/**
 * 行业类别Service接口
 *
 * @author ruoyi
 * @date 2021-08-19
 */
public interface IRecruitCompanyTradeService extends IService<RecruitCompanyTrade> {
	/**
	 * 查询单个
	 * @return
	 */
	RecruitCompanyTradeVo queryById(Long tradeId);

	/**
	 * 查询列表
	 */
	List<RecruitCompanyTradeVo> queryList(RecruitCompanyTradeQueryBo bo);

	/**
	 * 根据新增业务对象插入行业类别
	 * @param bo 行业类别新增业务对象
	 * @return
	 */
	Boolean insertByAddBo(RecruitCompanyTradeAddBo bo);

	/**
	 * 根据编辑业务对象修改行业类别
	 * @param bo 行业类别编辑业务对象
	 * @return
	 */
	Boolean updateByEditBo(RecruitCompanyTradeEditBo bo);

	/**
	 * 校验并删除数据
	 * @param ids 主键集合
	 * @param isValid 是否校验,true-删除前校验,false-不校验
	 * @return
	 */
	Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);

    List<RecruitCompanyTradeVo> queryCompanyTradeVo(RecruitCompanyTradeQueryBo bo);
}
