package com.ssm.manage.service;

import com.github.pagehelper.PageInfo;
import com.ssm.core.service.BaseService;
import com.ssm.manage.entity.Salesman;
import com.ssm.manage.entity.ServiceOrder;
import com.ssm.manage.entity.SmsException;
import com.ssm.manage.entity.StoreRoom;
import com.ssm.manage.query.ServiceOrderRequest;
import com.ssm.manage.query.StoreRoomRequest;

import java.text.ParseException;
import java.util.List;

public interface SsmServiceOrderService  extends BaseService<ServiceOrder> {

    PageInfo<ServiceOrder> selectPage(ServiceOrderRequest serviceOrderRequest) throws SmsException, ParseException;
    List<ServiceOrder> selectList(ServiceOrderRequest serviceOrderRequest) throws SmsException, ParseException;
    List<ServiceOrder> selectLists(ServiceOrderRequest serviceOrderRequest) throws SmsException, ParseException;
    int add(List<ServiceOrderRequest> serviceOrderRequest) throws SmsException;
    int down(ServiceOrderRequest serviceOrderRequest) throws SmsException;
    int update(ServiceOrderRequest serviceOrderRequest) throws SmsException;
    int updates(ServiceOrder serviceOrderRequest);
}
