using SqlSugar;
using ZJ_BYD.Model;
using ZJ_BYD.Untils;
namespace ZJ_BYD.DB
{
public class YearHelper
{
public YearHelper() : base()
{
}
///
/// 查询年份
///
///
public static ISugarQueryable QueryYears()
{
return DBHelper.sqlSugarDb.Queryable().Where(m => !m.IsDeleted);
}
///
/// 根据年份查询年份代码
///
///
public static string QueryYearCode(string year)
{
return DBHelper.sqlSugarDb.Queryable().First(m => m.YearName == year && !m.IsDeleted)?.YearCode;
}
}
}