package nccloud.itf.gl.voucherapi;

import java.util.Map;
import nc.vo.pub.BusinessException;

/**
 * <b> NCC凭证记账或取消记账 </b>
 * 
 *     	做完标准产品记账或取消记账后添加其他逻辑：
 *     	记账后：调用NC接口将凭证推送到NC63；
 *     	取消记账后：调用NC接口删除NC63凭证；
 *  
 * 2020-11-25
 * @version NCC2005
 */
public interface IVoucherRestService {

	/**
	 * 【单线程】记账或反记账
	 * 
	 * @param pks
	 * @param date
	 * @param op
	 * @param isList
	 * @return
	 * @throws BusinessException
	 */
	public Map<String, Object> tallyBySingleThread(String[] pks, String date, boolean op, boolean isList)
			throws BusinessException;

	/**
	 * 【多线程】记账或反记账
	 * 
	 * @param pks
	 * @param date
	 * @param op
	 * @param isList
	 * @return
	 * @throws BusinessException
	 */
	public Map<String, Object> tallyByMultiThread(String[] pks, String date, boolean op, boolean isList)
			throws BusinessException;
	
}
