物料清单

This commit is contained in:
2023-04-21 09:13:41 +08:00
parent b8873eac2e
commit 76ca8e4984
11 changed files with 810 additions and 0 deletions

View File

@@ -327,6 +327,15 @@ public class DictionaryDataService : IDictionaryDataService, IDynamicApiControll
{
return await _repository.GetFirstAsync(x => x.Id == id && x.DeleteMark == null);
}
public async Task<Dictionary<string, object>> GetDicByKey(string key)
{
return await _repository.AsSugarClient().Queryable<DictionaryDataEntity>()
.LeftJoin<DictionaryTypeEntity>((a, b) => a.DictionaryTypeId == b.Id)
.Where((a, b) => b.EnCode == key && b.DeleteMark == null)
.ToDictionaryAsync((it)=>it.EnCode,it=>it.FullName);
}
#endregion
#region PrivateMethod