119 lines
2.6 KiB
Java
119 lines
2.6 KiB
Java
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<String, Object> params) throws SaveException;
|
|
|
|
/**
|
|
* 删除企业
|
|
*
|
|
* @param params
|
|
* @throws RemoveException
|
|
*/
|
|
void removeEnterprise(Map<String, Object> params) throws RemoveException;
|
|
|
|
/**
|
|
* 修改企业
|
|
*
|
|
* @param params
|
|
* @throws UpdateException
|
|
*/
|
|
void updateEnterprise(Map<String, Object> params) throws UpdateException;
|
|
|
|
/**
|
|
* 修改企业位置
|
|
*
|
|
* @param params
|
|
* @throws UpdateException
|
|
*/
|
|
void updateEnterpriseLocation(Map<String, Object> params) throws UpdateException;
|
|
|
|
/**
|
|
* 修改企业场所性质
|
|
*
|
|
* @param params
|
|
* @throws UpdateException
|
|
*/
|
|
void updateEnterpriseNature(Map<String, Object> params) throws UpdateException;
|
|
|
|
/**
|
|
* 更新企业分类
|
|
*
|
|
* @param params
|
|
* @throws UpdateException
|
|
*/
|
|
void updateEnterpriseClassify(Map<String, Object> params) throws UpdateException;
|
|
|
|
/**
|
|
* 企业详情
|
|
*
|
|
* @param params
|
|
* @return
|
|
* @throws SearchException
|
|
*/
|
|
EnterpriseDTO getEnterprise(Map<String, Object> params) throws SearchException;
|
|
|
|
/**
|
|
* 企业详情单表
|
|
*
|
|
* @param params
|
|
* @return
|
|
* @throws SearchException
|
|
*/
|
|
EnterpriseDTO getEnterpriseSingle(Map<String, Object> params) throws SearchException;
|
|
|
|
/**
|
|
* 企业列表
|
|
*
|
|
* @param params
|
|
* @return
|
|
* @throws SearchException
|
|
*/
|
|
List<EnterpriseDTO> listEnterprise(Map<String, Object> params) throws SearchException;
|
|
|
|
/**
|
|
* 统计企业
|
|
*
|
|
* @param params
|
|
* @return
|
|
* @throws SearchException
|
|
*/
|
|
Integer countEnterprise(Map<String, Object> params) throws SearchException;
|
|
|
|
/**
|
|
* 用户企业列表
|
|
*
|
|
* @param params
|
|
* @return
|
|
* @throws SearchException
|
|
*/
|
|
List<EnterpriseDTO> listEnterpriseByUser(Map<String, Object> params) throws SearchException;
|
|
|
|
|
|
}
|