package com.ssj.service.weixin.order.service.impl;


import com.ssj.bean.weixin.order.domain.OrderRefund;
import com.ssj.dao.weixin.order.dao.OrderRefundDao;
import com.ssj.framework.core.common.service.BaseServiceImpl;
import com.ssj.service.weixin.order.service.OrderRefundService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
@Service
@Transactional
public class OrderRefundServiceImpl extends BaseServiceImpl<OrderRefund, String> implements OrderRefundService{

	@Autowired
	private OrderRefundDao  orderRefundDao;
	
	@Override
	public PagingAndSortingRepository<OrderRefund, String> getDao() {
		return orderRefundDao;
	}


	@Override
	public OrderRefund findByOrderNo(String orderNo) {
		return orderRefundDao.findByOrderNoAndRefundStatus(orderNo,1);
	}
}
