/**   
* @Title: AlipayJournalServiceImpl.java 
* @Package com.platform.service.impl 
* @Description: TODO(用一句话描述该文件做什么) 
* @author kiosk
* @date 2017年9月14日 下午1:43:09 
* @version V1.0   
*/
package com.platform.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.platform.dao.AlipayJournalMapper;
import com.platform.pojo.AlipayJournal;
import com.platform.service.AlipayJournalService;

/** 
 * @ClassName: AlipayJournalServiceImpl 
 * @Description: TODO(这里用一句话描述这个类的作用) 
 * @author kiosk
 * @date 2017年9月14日 下午1:43:09 
 *  
 */
@Service
public class AlipayJournalServiceImpl implements AlipayJournalService{
	@Resource
	private AlipayJournalMapper alipayJournalMapper;

	/* (non-Javadoc)
	 * @see com.platform.service.AlipayJournalService#insertAlipayJournal(com.platform.pojo.AlipayJournal)
	 */
	@Override
	public int insertAlipayJournal(AlipayJournal alipayJournal) {
         return alipayJournalMapper.insertAlipayJournal(alipayJournal);
	}

	/* (non-Javadoc)
	 * @see com.platform.service.AlipayJournalService#updateAlipayJournal(com.platform.pojo.AlipayJournal)
	 */
	@Override
	public int updateAlipayJournal(AlipayJournal alipayJournal) {
		// TODO Auto-generated method stub
		return alipayJournalMapper.updateAlipayJournal(alipayJournal);
	}

	/* (non-Javadoc)
	 * @see com.platform.service.AlipayJournalService#selectAlipayJournalByAlipayId(com.platform.pojo.AlipayJournal)
	 */
	@Override
	public AlipayJournal selectAlipayJournalByAlipayId(
			int alipay_id) {
		AlipayJournal alipayJournalInfo=alipayJournalMapper.selectAlipayJournalByAlipayId(alipay_id);
		return alipayJournalInfo;
	}

	/* (non-Javadoc)
	 * @see com.platform.service.AlipayJournalService#selectAlipayJournal(com.platform.pojo.AlipayJournal)
	 */
	@Override
	public List<AlipayJournal> selectAlipayJournal(AlipayJournal alipayJournal) {
		List<AlipayJournal> alipayJournalList=alipayJournalMapper.selectAlipayJournal(alipayJournal);
		return alipayJournalList;
	}
	

}
