2020-03-26 00:00:48 +08:00
|
|
|
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
|
|
|
|
* @return
|
|
|
|
* @throws SearchException
|
|
|
|
*/
|
|
|
|
EnterpriseDTO getEnterprise(Map<String, Object> params) throws SearchException;
|
|
|
|
|
2020-04-08 19:20:50 +08:00
|
|
|
/**
|
|
|
|
* 企业详情单表
|
|
|
|
*
|
|
|
|
* @param params
|
|
|
|
* @return
|
|
|
|
* @throws SearchException
|
|
|
|
*/
|
|
|
|
EnterpriseDTO getEnterpriseSingle(Map<String, Object> params) throws SearchException;
|
|
|
|
|
2020-03-26 00:00:48 +08:00
|
|
|
/**
|
|
|
|
* 企业列表
|
|
|
|
*
|
|
|
|
* @param params
|
|
|
|
* @return
|
|
|
|
* @throws SearchException
|
|
|
|
*/
|
|
|
|
List<EnterpriseDTO> listEnterprise(Map<String, Object> params) throws SearchException;
|
2020-04-08 19:20:50 +08:00
|
|
|
|
2020-03-26 00:00:48 +08:00
|
|
|
}
|