You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
769 B
C#

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

using SqlSugar;
using System;
using ZJ_BYD.Model;
using ZJ_BYD.Untils;
namespace ZJ_BYD.DB
{
public class AreaHelper
{
public AreaHelper() : base()
{
}
/// <summary>
/// 查询地域
/// </summary>
/// <returns></returns>
public static ISugarQueryable<T_Area> QueryAreas()
{
try
{
return DBHelper.sqlSugarDb.Queryable<T_Area>().Where(m => !m.IsDeleted);
}
catch (Exception ex)
{
var msg = ex == null ? "执行QueryAreas方法时异常" : ex.Message;
LogHelper.WriteLog($"执行QueryAreas方法时异常{msg}");
return null;
}
}
}
}