/**   
* @Title: EPayServiceImpl.java 
* @Package com.platform.service.impl 
* @Description: TODO(用一句话描述该文件做什么) 
* @author kiosk
* @date 2017年7月23日 下午6:10:04 
* @version V1.0   
*/
package com.platform.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.platform.dao.AlipayConfigMapper;
import com.platform.dao.InterfaceInvokeLogMapper;
import com.platform.pojo.AlipayConfig;
import com.platform.pojo.AlipayConfigExample;
import com.platform.pojo.InterfaceInvokeLog;
import com.platform.service.IAliPayService;

/** 
 * @ClassName: EPayServiceImpl 
 * @Description: TODO(百合支付Service接口实现) 
 * @author kiosk
 * @date 2017年7月23日 下午6:10:04 
 *  
 */
@Service("aliPayService")
@Transactional(rollbackFor=Exception.class)
public class AliPayServiceImpl implements IAliPayService{
	
	@Resource
	private AlipayConfigMapper alipayConfigMapper;//引入dao mapper
	@Resource
	private InterfaceInvokeLogMapper interfaceInvokeLogMapper;

	
	/**
	 * 获取支付宝支付参数设定
	 */
	public List<AlipayConfig> getConfigList(AlipayConfigExample example){
		return alipayConfigMapper.selectByExample(example);
	}


	/* (non-Javadoc)
	 * @see com.platform.service.IAliPayService#saveInvokeLog(com.platform.pojo.InterfaceInvokeLog)
	 */
	@Override
	public int saveInvokeLog(InterfaceInvokeLog record) {
		// TODO Auto-generated method stub
		return interfaceInvokeLogMapper.insertSelective(record);
	}


	
}
