btyjj-inspection/src/main/java/com/cm/inspection/service/check/ICheckService.java
2020-03-31 19:08:14 +08:00

169 lines
3.8 KiB
Java

package com.cm.inspection.service.check;
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.check.CheckDTO;
import com.cm.inspection.pojo.vos.check.CheckVO;
import java.util.List;
import java.util.Map;
/**
* @ClassName: ICheckService
* @Description: 检查表
* @Author: WenG
* @Date: 2020-03-25 22:59
* @Version: 1.0
**/
public interface ICheckService {
/**
* 新增检查表
*
* @param checkVO
* @return
* @throws Exception
*/
SuccessResult saveCheck(CheckVO checkVO) throws Exception;
/**
* 新增检查表(APP)
*
* @param token
* @param checkVO
* @return
* @throws Exception
*/
SuccessResult saveCheckByToken(String token, CheckVO checkVO) throws Exception;
/**
* 删除检查表
*
* @param ids
* @return
* @throws RemoveException
*/
SuccessResult removeCheck(String ids) throws RemoveException;
/**
* 删除检查表(APP)
*
* @param token
* @param ids
* @return
* @throws RemoveException
*/
SuccessResult removeCheckByToken(String token, String ids) throws RemoveException;
/**
* 修改检查表
*
* @param checkId
* @param checkVO
* @return
* @throws Exception
*/
SuccessResult updateCheck(String checkId, CheckVO checkVO) throws Exception;
/**
* 修改检查表(APP)
*
* @param token
* @param checkId
* @param checkVO
* @return
* @throws Exception
*/
SuccessResult updateCheckByToken(String token, String checkId, CheckVO checkVO) throws Exception;
/**
* 检查表详情(通过ID)
*
* @param checkId
* @return
* @throws SearchException
*/
CheckDTO getCheckById(String checkId) throws SearchException;
/**
* 检查表列表
*
* @param params
* @return
* @throws SearchException
*/
List<CheckDTO> listCheck(Map<String, Object> params) throws SearchException;
/**
* 检查表分页列表
*
* @param page
* @return
* @throws SearchException
*/
SuccessResultList<List<CheckDTO>> listPageCheck(ListPage page) throws SearchException;
/**
* 我的检查列表(分页)
*
* @param page
* @return
*/
SuccessResultList<List<CheckDTO>> listPageCheckOfMine(ListPage page) throws SearchException;
/**
* 我的检查列表(分页)
*
* @param token
* @param page
* @return
* @throws SearchException
*/
SuccessResultList<List<CheckDTO>> listPageCheckOfMine(String token, ListPage page) throws SearchException;
/**
* 我的复查项列表
*
* @param params
* @return
* @throws SearchException
*/
List<CheckDTO> listReCheckOfMine(Map<String, Object> params) throws SearchException;
/**
* 我的复查项列表
*
* @param token
* @param params
* @return
* @throws SearchException
*/
List<CheckDTO> listReCheckOfMine(String token, Map<String, Object> params) throws SearchException;
/**
* 我的领导检查列表
*
* @param params
* @return
* @throws SearchException
*/
List<CheckDTO> listLeaderCheckOfMine(Map<String, Object> params) throws SearchException;
/**
* 我的领导检查列表
*
* @param token
* @param params
* @return
* @throws SearchException
*/
List<CheckDTO> listLeaderCheckOfMine(String token, Map<String, Object> params) throws SearchException;
}