using WcsMain.Common; using WcsMain.DataBase.TableEntity; using WcsMain.WcsAttribute.AutoFacAttribute; namespace WcsMain.DataBase.Dao; [Component] public class AppRouterMethodDao { /// /// 查询数据 /// /// /// public List? Query(AppRouterMethod routerMethod) { try { var sqlFuc = CommonTool.DbServe.Queryable() .WhereIF(routerMethod.Area == default, w => w.Area == routerMethod.Area) .WhereIF(routerMethod.ClassName == default, w => w.ClassName == routerMethod.ClassName) .WhereIF(routerMethod.Remark == default, w => w.Remark == routerMethod.Remark); return sqlFuc.ToList(); } catch(Exception ex) { _ = ex; return default; } } /// /// 查询所有 /// /// public List? Query() => Query(new AppRouterMethod()); }