package com.fs.his.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.fs.his.domain.FsPromotionalActive;
import com.fs.his.vo.FsPromotionalActiveVO;
import com.fs.his.vo.OptionsVO;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface FsPromotionalActiveMapper extends BaseMapper<FsPromotionalActive> {

    /**
     * 查询活动列表
     */
    List<FsPromotionalActiveVO> selectPromotionalActiveVOList(FsPromotionalActive active);

    /**
     * 根据ID查询活动详情
     */
    FsPromotionalActiveVO selectPromotionalActiveVOById(@Param("activeId") Long activeId);

    /**
     * 获取活动选项列表
     */
    @Select("select title as dictLabel, id as dictValue from fs_promotional_active where is_del = 0")
    List<OptionsVO> getPromotionalActiveOption();
}
