package com.hzs.activity.tree.service;

import com.baomidou.mybatisplus.extension.service.IService;
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.math.BigDecimal;
import java.util.List;

/**
 * 沙棘树活动购买订单表 服务类
 *
 * @author zhangjing
 * @since 2023-06-16
 */
public interface ISaTreeOrderService extends IService<SaTreeOrder> {

    /**
     * 查询种植公益列表
     *
     * @param treeOrderParam
     * @return
     */
    List<SaTreeOrderExt> selectByList(TreeOrderParam treeOrderParam);

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

    /**
     * @description: 购买沙棘树
     * @author: zhang jing
     * @date: 2023/6/17 14:10
     * @param: [saTreeOrderVO]
     * @return: java.lang.Boolean
     **/
    Boolean shoppingTree(SaTreeOrderVO saTreeOrderVO,
                         BigDecimal consumeBalance, BigDecimal bonusBalance, BigDecimal cashBalance);

}
