package com.hzs.activity.tree.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hzs.activity.tree.param.TreeOrderParam;
import com.hzs.activity.tree.vo.SaTreeOrderVO;
import com.hzs.common.domain.activity.ext.SaTreeOrderExt;
import com.hzs.common.domain.activity.tree.SaTreeOrder;

import java.util.List;

/**
 * <p>
 * 沙棘树活动购买订单表 Mapper 接口
 * </p>
 *
 * @author zhangjing
 * @since 2023-06-16
 */
public interface SaTreeOrderMapper extends BaseMapper<SaTreeOrder> {
    /**
     * 查询种植公益列表
     * @param treeOrderParam
     * @return
     */
    List<SaTreeOrderExt> selectByList(TreeOrderParam treeOrderParam);

    /**
     * @description: 查询生效的活动
     * @author: zhang jing
     * @date: 2023/6/17 10:35
     * @param: [saTreeOrderVO]
     * @return: com.hzs.activity.tree.vo.SaTreeOrderVO
     **/
    SaTreeOrderVO queryTreeActivity(SaTreeOrderVO saTreeOrderVO);
}
