package shop.alien.mapper;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import shop.alien.entity.store.LifeGroupBuyMain;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import shop.alien.entity.store.vo.LifeGroupBuyThaliVo;

/**
* @author youch
* @description 针对表【life_group_buy_main(团购主表)】的数据库操作Mapper
* @createDate 2025-07-28 14:31:30
* @Entity shop.alien.entity.store.LifeGroupBuyMain
*/
@Mapper
public interface LifeGroupBuyMainMapper extends BaseMapper<LifeGroupBuyMain> {

    @Select("select id,group_no,group_type,status,approval_comments,store_id,image_id,group_name,start_time_type,\n" +
            "        start_time_value,end_time,inventory_num,quota_type,quota_value,\n" +
            "        original_price,preferential_price,effective_date_type,effective_date_value,disable_date_type,\n" +
            "        disable_date_value,write_off,reservation_rules,use_rules,applicable_num,\n" +
            "        other_rules,invoice_type,invoice_describe,insured_flag,insured_price,\n" +
            "        coupon_id,delete_flag,created_time,updated_time,created_user_id,\n" +
            "        updated_user_id from life_group_buy_main ${ew.customSqlSegment}")
    IPage<LifeGroupBuyThaliVo> selectPageByThaliVo(IPage<LifeGroupBuyThaliVo> lifeGroupBuyThaliVoIPage,@Param(Constants.WRAPPER) QueryWrapper<LifeGroupBuyThaliVo> queryWrapper);
}




