CfgDictRepository.cs 658 B

123456789101112131415161718192021222324
  1. using QM.KJGH.CGGL.IRepository;
  2. using QM.KJGH.CGGL.Model.Ghxms;
  3. using QM.KJGH.Model.KJGH;
  4. using QM.OrmSqlSugar;
  5. using System.Collections.Generic;
  6. using System.Threading.Tasks;
  7. using WS.AutoMapper;
  8. namespace QM.KJGH.CGGL.Repository
  9. {
  10. public class CfgDictRepository : SqlSugarRepository<CfgDict>, ICfgDictRepository
  11. {
  12. /// <summary>
  13. /// 字典查询
  14. /// </summary>
  15. /// <returns></returns>
  16. public async Task<List<CfgDictView>> QueryList(string dicType)
  17. {
  18. var result = (await GetListAsync(u => u.TYPE == dicType)).MapTo<CfgDict, CfgDictView>();
  19. return result;
  20. }
  21. }
  22. }