package com.zcloud.service.hiddenApi;

import com.zcloud.entity.Page;
import com.zcloud.entity.PageData;

import java.util.List;

/**
 * 说明：隐患Api
 */
public interface HiddenApiService {

	/**新增
	 * @param pd
	 * @throws Exception
	 */
	public void saveApi(PageData pd)throws Exception;


	/**
	 *  删除
	 * @param hiddenId
	 * @throws Exception
	 */
	public int deleteApi(String hiddenId)throws Exception;

	public PageData findById(PageData pd)throws Exception;

	/**
	 * 确认隐患信息
	 * @param pd
	 * @throws Exception
	 */
	public void confirmHidden(PageData pd) throws Exception;
	/**
	 * 隐患整改
	 * @param hiddenId 隐患ID
	 * @param rectifyDescr 整改描述
	 * @param rectificationTime 整改时间
	 * @param havescheme 是否有整改方案  0无  1有
	 * @param investmentFunds 投入资金 港务局添加字段
	 * @return
	 * @throws Exception
	 */
	public int rectify (String hiddenId,String rectifyDescr , String rectificationTime,String havescheme,String investmentFunds)throws Exception;
	/**验收
	 * @param hiddenId
	 * @throws Exception
	 */
	public void check(String hiddenId,String checkTime )throws Exception;

	/**
	 * 验收打回
	 * @param hiddenId
	 * @return
	 * @throws Exception
	 */
	public int repulseCheck(String hiddenId)throws Exception;

	/**
	 * 上传emis系统的隐患处理流程
	 * @param pd
	 * @return
	 * @throws Exception
	 */
	public Integer goEmis(PageData pd)throws Exception;
	/**
	 * 确认打回
	 * @param hiddenId
	 * @return
	 * @throws Exception
	 */
	public int repulseConfirm(String hiddenId)throws Exception;

	/**
	 * 隐患无法整改
	 * @param hiddenId
	 * @return
	 * @throws Exception
	 */
	public int unableRectify(String hiddenId)throws Exception;

	/**
	 * 隐患列表
	 * @param page
	 * @return
	 * @throws Exception
	 */
	public List<PageData> getList (Page page) throws Exception;

	/**
	 * 删除隐患
	 * @param hiddenId
	 * @return
	 * @throws Exception
	 */
	public  int delete (String hiddenId) throws Exception;

	/**
	 * 隐患列表
	 * @param
	 * @return
	 * @throws Exception
	 */
	public List<PageData> getListAll (PageData pd) throws Exception;

}

