btyjj-inspection/src/main/java/com/cm/inspection/dao/enterprise/IEnterpriseDao.java

119 lines
2.6 KiB
Java
Raw Normal View History

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;
2020-04-17 16:22:40 +08:00
/**
* 修改企业位置
*
* @param params
* @throws UpdateException
*/
void updateEnterpriseLocation(Map<String, Object> params) throws UpdateException;
2020-05-03 21:08:57 +08:00
/**
* 修改企业场所性质
*
* @param params
* @throws UpdateException
*/
void updateEnterpriseNature(Map<String, Object> params) throws UpdateException;
2020-06-12 21:03:26 +08:00
/**
* 更新企业分类
*
* @param params
* @throws UpdateException
*/
void updateEnterpriseClassify(Map<String, Object> params) throws UpdateException;
2020-03-26 00:00:48 +08:00
/**
* 企业详情
*
* @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-04-21 18:48:14 +08:00
/**
2020-06-12 21:03:26 +08:00
* 统计企业
*
2020-04-21 18:48:14 +08:00
* @param params
* @return
* @throws SearchException
*/
Integer countEnterprise(Map<String, Object> params) throws SearchException;
2020-05-03 21:08:57 +08:00
2020-05-22 19:08:45 +08:00
/**
* 用户企业列表
*
* @param params
* @return
* @throws SearchException
*/
List<EnterpriseDTO> listEnterpriseByUser(Map<String, Object> params) throws SearchException;
2020-06-12 21:03:26 +08:00
2020-03-26 00:00:48 +08:00
}