package com.ssm.manage.mapper;

import com.ssm.core.mapper.BaseMapper;
import com.ssm.manage.entity.PayList;
import com.ssm.manage.query.StoreDailyRequest;
import com.ssm.manage.response.PayListVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

@Component
public interface PayListMapper extends BaseMapper<PayList> {

    int addPayList(@Param("payList")List<PayList> payList);

    List<PayListVo> selectByDay(@Param("tab") String tab,@Param("storeIds") List<Long> storeIds, @Param("startTime") Date startTime, @Param("endTime") Date endTime);

    void updateByNum(PayList list);

    BigDecimal selectStoreDailys(StoreDailyRequest storeDailyRequest);

    List<PayList> selectList(@Param("courseNums") List<String> courseNums);

    void updateIsCancelById(PayList list);
}