123456789101112131415161718192021222324 |
- using QM.KJGH.CGGL.IRepository;
- using QM.KJGH.CGGL.Model.Ghxms;
- using QM.KJGH.Model.KJGH;
- using QM.OrmSqlSugar;
- using System.Collections.Generic;
- using System.Threading.Tasks;
- using WS.AutoMapper;
- namespace QM.KJGH.CGGL.Repository
- {
- public class CfgDictRepository : SqlSugarRepository<CfgDict>, ICfgDictRepository
- {
- /// <summary>
- /// 字典查询
- /// </summary>
- /// <returns></returns>
- public async Task<List<CfgDictView>> QueryList(string dicType)
- {
- var result = (await GetListAsync(u => u.TYPE == dicType)).MapTo<CfgDict, CfgDictView>();
- return result;
- }
- }
- }
|