package com.ssm.manage.dao.impl;

import com.ssm.core.impl.BaseDaoImpl;
import com.ssm.manage.dao.SsmServiceOrderDao;
import com.ssm.manage.dao.SsmServiceOrdersDao;
import com.ssm.manage.entity.CashList;
import com.ssm.manage.entity.ServiceOrder;
import com.ssm.manage.entity.ServiceOrders;
import com.ssm.manage.mapper.ServiceOrderMapper;
import com.ssm.manage.mapper.ServiceOrdersMapper;
import com.ssm.manage.query.CashListRequest;
import com.ssm.manage.query.ServiceOrdersRequest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class SsmServiceOrdersDaoImpl  extends BaseDaoImpl<ServiceOrders> implements SsmServiceOrdersDao {

    @Autowired
    private ServiceOrdersMapper mapper;

    @Override
    public ServiceOrdersMapper getMapper() {
        return mapper;
    }

    @Override
    public List<ServiceOrders> selectGroup(ServiceOrdersRequest serviceOrdersRequest) {
        return mapper.selectGroup(serviceOrdersRequest);
    }
    @Override
    public List<ServiceOrders> selectGroupIsPage(ServiceOrdersRequest serviceOrdersRequest) {
        return mapper.selectGroupIsPage(serviceOrdersRequest);
    }

    @Override
    public List<ServiceOrders> getDocNum(ServiceOrdersRequest cashListRequest) {
        return mapper.getDocNum(cashListRequest);
    }
    @Override
    public List<ServiceOrders> getSettsNum(ServiceOrdersRequest cashListRequest) {
        return mapper.getSettsNum(cashListRequest);
    }

    @Override
    public int addServiceOrders(ServiceOrders serviceOrders) {
        return mapper.addServiceOrders(serviceOrders);
    }

    @Override
    public int cancelServiceOrders(ServiceOrders serviceOrders) {
        return mapper.cancelServiceOrders(serviceOrders);
    }

    @Override
    public ServiceOrders one(ServiceOrdersRequest serviceOrders) {
        return mapper.one(serviceOrders);
    }

    @Override
    public List<ServiceOrders> selectPage2(ServiceOrdersRequest cashListRequest) {
        return mapper.selectPage2(cashListRequest);
    }

}
