package com.chinacreator.video.mapper;

import java.sql.SQLException;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.apache.ibatis.annotations.Param;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Component;

import com.chinacreator.video.restful.bean.OrderInfo;
import com.chinacreator.video.restful.bean.OrderLog;
import com.chinacreator.video.restful.bean.PointShopOrderBean;


/**
 * 上海权益2元
 * @author xu.zhou
 * @date 20190704
 */
@Component
public interface ShangHaiOrderDao{
	
	/**
	 * 	 * 添加报文日志记录
	 * @param tradeid 接入方输入的订单ID
	 * @param transid 接入方输入的序列号
	 * @param accountid 接入方输入的ID，用于对账
	 * @param inparams 输入报文
	 * @return
	 */
	int addShInPaInfo(@Param("logid")String logid, @Param("tradeid")String tradeid, @Param("transid")String transid, @Param("accountid")String accountid, @Param("inparams")String inparams);
	
	/**
	 * 更新输出报文
	 * @param tradeid
	 * @param outparams 输出报文
	 * @return
	 */
	int updShInPaInfo(@Param("logid")String logid, @Param("outparams")String outparams);
	
	/**
	 * 获取报文日志记录
	 * @param id 日志表ID
	 * @return
	 */
	Map getShInPaInfoById(@Param("id")String id);


	Map getCsMakeupConf(@Param("spid") String spid);
}
