package com.jsowell.pile.service.impl;

import com.jsowell.pile.domain.OrderPayRecord;
import com.jsowell.pile.mapper.OrderPayRecordMapper;
import com.jsowell.pile.service.IOrderPayRecordService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class OrderPayRecordServiceImpl implements IOrderPayRecordService {

	@Resource
	private OrderPayRecordMapper orderPayRecordMapper;


	// @Override
	// public int deleteByPrimaryKey(Integer id) {
	// 	return orderPayRecordMapper.deleteByPrimaryKey(id);
	// }

	// @Override
	// public int insert(OrderPayRecord record) {
	// 	return orderPayRecordMapper.insert(record);
	// }
	//
	// @Override
	// public int insertSelective(OrderPayRecord record) {
	// 	return orderPayRecordMapper.insertSelective(record);
	// }

	// @Override
	// public OrderPayRecord selectByPrimaryKey(Integer id) {
	// 	return orderPayRecordMapper.selectByPrimaryKey(id);
	// }

	@Override
	public int updateByPrimaryKeySelective(OrderPayRecord record) {
		return orderPayRecordMapper.updateByPrimaryKeySelective(record);
	}

	// @Override
	// public int updateByPrimaryKey(OrderPayRecord record) {
	// 	return orderPayRecordMapper.updateByPrimaryKey(record);
	// }

	@Override
	public int batchInsert(List<OrderPayRecord> payRecordList) {
		return orderPayRecordMapper.batchInsert(payRecordList);
	}

	@Override
	public List<OrderPayRecord> getOrderPayRecordList(String orderCode) {
		return orderPayRecordMapper.getOrderPayRecordList(orderCode);
	}

}
