优化wms项目目录结构
This commit is contained in:
@@ -38,4 +38,10 @@ public interface IDictionaryDataService
|
||||
/// <param name="typeId"></param>
|
||||
/// <returns></returns>
|
||||
Task<Dictionary<string, object>> GetDicByTypeId(string typeId);
|
||||
/// <summary>
|
||||
/// 根据typeId获取字典
|
||||
/// </summary>
|
||||
/// <param name="typeId"></param>
|
||||
/// <returns>{{id,fullName}}</returns>
|
||||
Task<Dictionary<string, object>> GetDictionaryByTypeId(string typeId);
|
||||
}
|
||||
@@ -345,7 +345,8 @@ public class DictionaryDataService : IDictionaryDataService, IDynamicApiControll
|
||||
public async Task<Dictionary<string, object>> GetDicByTypeId(string typeId) =>
|
||||
await _repository.AsQueryable().Where(x => x.DictionaryTypeId == typeId && x.DeleteMark == null).ToDictionaryAsync(x => x.EnCode, x => x.FullName);
|
||||
|
||||
|
||||
public async Task<Dictionary<string, object>> GetDictionaryByTypeId(string typeId) =>
|
||||
await _repository.AsQueryable().Where(x => x.DictionaryTypeId == typeId && x.DeleteMark == null).ToDictionaryAsync(x => x.Id, x => x.FullName);
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
Reference in New Issue
Block a user