btyjj-inspection/src/main/java/com/cm/inspection/service/enterprise/IEnterpriseService.java

121 lines
2.8 KiB
Java
Raw Normal View History

2020-03-26 00:00:48 +08:00
package com.cm.inspection.service.enterprise;
import com.cm.common.exception.RemoveException;
import com.cm.common.exception.SaveException;
import com.cm.common.exception.SearchException;
import com.cm.common.pojo.ListPage;
import com.cm.common.result.SuccessResult;
import com.cm.common.result.SuccessResultData;
import com.cm.common.result.SuccessResultList;
import com.cm.inspection.pojo.dtos.enterprise.EnterpriseDTO;
import com.cm.inspection.pojo.vos.enterprise.EnterpriseVO;
import java.util.List;
import java.util.Map;
/**
* @ClassName: IEnterpriseService
* @Description: 企业
* @Author: WenG
* @Date: 2020-03-25 22:58
* @Version: 1.0
**/
public interface IEnterpriseService {
/**
* 新增企业
*
* @param enterpriseVO
* @return
* @throws Exception
*/
SuccessResult saveEnterprise(EnterpriseVO enterpriseVO) throws Exception;
/**
* 新增企业(APP)
*
* @param token
* @param enterpriseVO
* @return
* @throws Exception
*/
SuccessResult saveEnterpriseByToken(String token, EnterpriseVO enterpriseVO) throws Exception;
/**
* 删除企业
*
* @param ids
* @return
* @throws RemoveException
*/
SuccessResult removeEnterprise(String ids) throws RemoveException;
/**
* 删除企业(APP)
*
* @param token
* @param ids
* @return
* @throws RemoveException
*/
SuccessResult removeEnterpriseByToken(String token, String ids) throws RemoveException;
/**
* 修改企业
*
* @param enterpriseId
* @param enterpriseVO
* @return
* @throws Exception
*/
SuccessResult updateEnterprise(String enterpriseId, EnterpriseVO enterpriseVO) throws Exception;
/**
* 修改企业(APP)
*
* @param token
* @param enterpriseId
* @param enterpriseVO
* @return
* @throws Exception
*/
SuccessResult updateEnterpriseByToken(String token, String enterpriseId, EnterpriseVO enterpriseVO) throws Exception;
/**
* 企业详情(通过ID)
*
* @param enterpriseId
* @return
* @throws SearchException
*/
EnterpriseDTO getEnterpriseById(String enterpriseId) throws SearchException;
2020-04-08 19:20:50 +08:00
/**
* 企业详情单表(通过ID)
*
* @param enterpriseId
* @return
* @throws SearchException
*/
EnterpriseDTO getEnterpriseSingleById(String enterpriseId) throws SearchException;
2020-03-26 00:00:48 +08:00
/**
* 企业列表
*
* @param params
* @return
* @throws SearchException
*/
List<EnterpriseDTO> listEnterprise(Map<String, Object> params) throws SearchException;
/**
* 企业分页列表
*
* @param page
* @return
* @throws SearchException
*/
SuccessResultList<List<EnterpriseDTO>> listPageEnterprise(ListPage page) throws SearchException;
}