package com.ssm.manage.service;

import com.github.pagehelper.PageInfo;
import com.ssm.core.service.BaseService;
import com.ssm.manage.entity.*;
import com.ssm.manage.query.ServiceOrderRequest;
import com.ssm.manage.query.ServiceOrdersRequest;
import com.ssm.manage.response.CashListResponse;
import com.ssm.manage.response.ServiceOrdersResponse;
import org.w3c.dom.stylesheets.LinkStyle;

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

public interface SsmServiceOrdersService extends BaseService<ServiceOrders> {
    PageInfo<ServiceOrdersResponse> selectPage(ServiceOrdersRequest serviceOrderRequest) throws SmsException, ParseException;
//    PageInfo<ServiceOrdersResponse> selectPages(ServiceOrdersRequest serviceOrderRequest) throws SmsException, ParseException;
    List<AccountTradeRecord> add(List<ServiceOrdersRequest> serviceOrdersRequest,String phone) throws SmsException;
    int update(List<ServiceOrdersRequest> serviceOrdersRequest,String phone) throws SmsException;
    int cancel(ServiceOrdersRequest serviceOrdersRequest, String phone,Long storeId) throws SmsException;
    int addServiceOrders(ServiceOrders serviceOrders) throws SmsException;

    //计算业绩
    List<ServiceOrdersResponse> selectList(Long storeId, String dateStr, Date date) throws SmsException, ParseException;


    int cancelRowOnly(RefundRoomCash refundCash, RefundOrderList refundRoomCash) throws SmsException;

    int restoreRowOnly(RefundRoomCash refundCash, RefundOrderList refundOrderList) throws SmsException;
}
