shgx_tz_mom/ZR.Service/System/SysConfigService.cs

22 lines
581 B
C#
Raw Permalink Normal View History

2021-09-30 14:55:24 +08:00
using Infrastructure.Attribute;
using ZR.Model.System;
2023-03-18 07:58:39 +08:00
using ZR.Service.System.IService;
2021-09-30 14:55:24 +08:00
namespace ZR.Service.System
{
/// <summary>
/// 参数配置Service业务层处理
/// </summary>
[AppService(ServiceType = typeof(ISysConfigService), ServiceLifetime = LifeTime.Transient)]
2021-11-27 09:43:04 +08:00
public class SysConfigService : BaseService<SysConfig>, ISysConfigService
2021-09-30 14:55:24 +08:00
{
#region
2021-12-01 16:56:46 +08:00
public SysConfig GetSysConfigByKey(string key)
{
2022-09-21 21:43:05 +08:00
return Queryable().First(f => f.ConfigKey == key);
2021-12-01 16:56:46 +08:00
}
2021-09-30 14:55:24 +08:00
#endregion
}
}