package com.cm.inspection.dao.enterprise; import com.cm.common.exception.RemoveException; import com.cm.common.exception.SaveException; import com.cm.common.exception.SearchException; import com.cm.common.exception.UpdateException; import com.cm.common.result.SuccessResultList; import com.cm.inspection.pojo.dtos.enterprise.EnterpriseDTO; import org.springframework.stereotype.Repository; import java.util.List; import java.util.Map; /** * @ClassName: IEnterpriseDao * @Description: 企业 * @Author: WenG * @Date: 2020-03-25 22:58 * @Version: 1.0 **/ @Repository public interface IEnterpriseDao { /** * 新增企业 * * @param params * @throws SaveException */ void saveEnterprise(Map params) throws SaveException; /** * 删除企业 * * @param params * @throws RemoveException */ void removeEnterprise(Map params) throws RemoveException; /** * 修改企业 * * @param params * @throws UpdateException */ void updateEnterprise(Map params) throws UpdateException; /** * 修改企业位置 * * @param params * @throws UpdateException */ void updateEnterpriseLocation(Map params) throws UpdateException; /** * 修改企业场所性质 * * @param params * @throws UpdateException */ void updateEnterpriseNature(Map params) throws UpdateException; /** * 更新企业分类 * * @param params * @throws UpdateException */ void updateEnterpriseClassify(Map params) throws UpdateException; /** * 企业详情 * * @param params * @return * @throws SearchException */ EnterpriseDTO getEnterprise(Map params) throws SearchException; /** * 企业详情单表 * * @param params * @return * @throws SearchException */ EnterpriseDTO getEnterpriseSingle(Map params) throws SearchException; /** * 企业列表 * * @param params * @return * @throws SearchException */ List listEnterprise(Map params) throws SearchException; /** * 统计企业 * * @param params * @return * @throws SearchException */ Integer countEnterprise(Map params) throws SearchException; /** * 用户企业列表 * * @param params * @return * @throws SearchException */ List listEnterpriseByUser(Map params) throws SearchException; }