package com.iamberry.rent.service.order;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.iamberry.rent.face.order.ServiceCouponService;
import com.iamberry.rent.service.order.mapper.ServiceCouponMapper;
import com.iamberry.wechat.core.entity.rent.PledgeCouponInfo;
import com.iamberry.wechat.core.entity.rent.ServiceCouponInfo;
/**
 * 租赁订单优惠券实现
 * @author 刘志伟
 *
 */
@Service
public class ServiceCouponServiceImpl implements ServiceCouponService{
	
	@Autowired
	private ServiceCouponMapper serviceCouponMapper;

	@Override
	public List<ServiceCouponInfo> list(ServiceCouponInfo info) {
		// TODO Auto-generated method stub
		return serviceCouponMapper.list(info);
	}

	@Override
	public Integer saveServiceCoupon(ServiceCouponInfo couponInfo) {
		// TODO Auto-generated method stub
		return serviceCouponMapper.saveServiceCoupon(couponInfo);
	}

	@Override
	public Integer savePledgeCoupon(PledgeCouponInfo pledgeCouponInfo) {
		// TODO Auto-generated method stub
		return serviceCouponMapper.savePledgeCoupon(pledgeCouponInfo);
	}

	@Override
	public List<PledgeCouponInfo> listPledgeCoupon(
			PledgeCouponInfo pledgeCouponInfo) {
		// TODO Auto-generated method stub
		return serviceCouponMapper.listPledgeCoupon(pledgeCouponInfo);
	}

	@Override
	public Integer updatePledgeCouponStatus(PledgeCouponInfo pledgeCouponInfo) {
		return serviceCouponMapper.updatePledgeCouponStatus(pledgeCouponInfo);
	}

}
