using SqlSugar;
using ZJ_BYD.Model;
using ZJ_BYD.Untils;
namespace ZJ_BYD.DB
{
public class DeptHelper
{
public DeptHelper() : base()
{
}
///
/// 查询工厂
///
///
public static ISugarQueryable QueryDepts()
{
return DBHelper.sqlSugarDb.Queryable().Where(m => !m.IsDeleted);
}
///
/// 根据地域代码查询工厂
///
///
///
public static ISugarQueryable QueryDeptsByAreaCode(string areaCode)
{
return DBHelper.sqlSugarDb.Queryable().Where(m => m.AreaCode == areaCode && !m.IsDeleted);
}
}
}