package com.neusoft.smart.pos.report.persistent.repository;




import com.neusoft.smart.pos.report.persistent.domain.ConsumptionDetailsExample;
import com.neusoft.smart.pos.report.persistent.domain.ConsumptionDetailsExt;

import com.neusoft.smart.pos.report.persistent.mapper.ConsumptionDetailsMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class ConsumptionDetailsRepository {

    @Autowired
    private ConsumptionDetailsMapper consumptionDetailsMapper ;
    public Integer queryMemberOrderDetailsCount(ConsumptionDetailsExample example){
        return consumptionDetailsMapper.queryMemberOrderDetailsCount(example);
    }
    public List<ConsumptionDetailsExt> getList(ConsumptionDetailsExample example) {
        return consumptionDetailsMapper.selectCopDetailsByExample(example);
    }

}
