package com.cyksj.mapper;

import cn.hutool.core.date.DateTime;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cyksj.model.entity.UserBenefits;
import com.cyksj.model.entity.UserBenefitsOrderRecord;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * 项目名: yhlxj2
 * 文件名: UserBenefitsOrderRecordMapper
 * 创建者: JavaZou
 * 创建时间:2024/9/24 15:49
 */
public interface UserBenefitsOrderRecordMapper extends BaseMapper<UserBenefitsOrderRecord> {
	Integer selectUseComboRecordByUid(@Param("userIds") List<Long> userIdList, @Param("type") UserBenefits.Type type, @Param("goodsId") Long goodsId, @Param("skuId") Long skuId, @Param("orderStatus") List<String> orderStatus, @Param("lastYear") DateTime lastYear, @Param("startTime") Date startTime, @Param("relationId") Long relationId);

	Integer selectNoPaymentRecord(@Param("userIds") List<Long> userIdList, @Param("benefitsId") Long benefitsId);
}
