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.toolkit.Constants;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import shop.alien.entity.store.LifeGroupBuyThali;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;


import java.util.List;

/**
 * @author youch
 * @description 针对表【life_group_buy_thali(团购套餐详情子表)】的数据库操作Mapper
 * @createDate 2025-07-28 14:31:30
 * @Entity shop.alien.entity.store.LifeGroupBuyThali
 */
public interface LifeGroupBuyThaliMapper extends BaseMapper<LifeGroupBuyThali> {

    @Select("SELECT\n" +
            "\tlife.id,life.detail_id,life.group_name,life.parent_id,life.detail_sort,life.price,life.qty,life.detail_sort,life.created_time,store.dish_name,store.dish_price,\n" +
            "\tstore.dishes_unit,\n" +
            "\tstore.img_id as dishImg \n" +
            "FROM\n" +
            "\tlife_group_buy_thali life\n" +
            "\tLEFT JOIN store_menu store ON life.detail_id = store.id\n" +
            "${ew.customSqlSegment}")
    List<LifeGroupBuyThali> getLifeGroupBuyThaliList(@Param(Constants.WRAPPER) LambdaQueryWrapper<LifeGroupBuyThali> wrapper);

}




