package thyyxxk.webserver.dao.his.highreport;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import thyyxxk.webserver.entity.highreport.ReportBaseInfo;

import java.util.List;

/**
 * @description: 数字大屏dao
 * @author: hsh
 * @date: 2022/12/13 15:51
 * @param:
 * @return: null
 **/
@Mapper
public interface FullScreenDao {

    @Select("<script> " +
            " select * from report_base_info where flag = 'Y' " +
            " <if test=\"type == 'cw' \"> " +
            " and is_cw = 'Y' " +
            " </if> " +
            " <if test=\"type == 'yj' \"> " +
            " and is_yj = 'Y' " +
            " </if> " +
            " order by sort " +
            "</script> ")
    List<ReportBaseInfo> selectFullScreenReport(@Param("type")String type);

}
