BaseDictionaryService.cs 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. using AutoMapper;
  2. using AutoMapper.Internal;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.IO;
  6. using System.Linq;
  7. using System.Reflection;
  8. using System.Text;
  9. using Wms.Screen.Dto.Dadihaiyang.Response;
  10. using Wms.Screen.Service.IService;
  11. using Wms.Screen.DataService.Interface;
  12. using Wms.Screen.SqlSugar.Model;
  13. namespace Wms.Screen.Service.Service
  14. {
  15. public class BaseDictionaryService: IBaseDictionaryService
  16. {
  17. private readonly IMapper _mapper;
  18. private readonly ISysDictionaryDataService _dictionaryDataService;
  19. public BaseDictionaryService(IMapper mapper, ISysDictionaryDataService dictionaryDataService)
  20. {
  21. _mapper = mapper;
  22. _dictionaryDataService = dictionaryDataService;
  23. }
  24. public List<SysDictionary> GetBaseDictionaryList()
  25. {
  26. //var result = new List<BaseDictionaryEntity>() { ReturnValue = new List<BaseDictionaryEntity>() };
  27. //数据权限
  28. //var whereDataRule = ExpressionFactory.GetInstance(SysApiResourceDataService, RuleService, HttpContextAccessor, DataToExpressionService).GetDataRuleWhereExpression<BaseDictionary>(DictionaryConst.BaseDictionaryService_GetBaseDictionaryList);
  29. //高级查询
  30. //var whereQueryBuilder = ExpressionFactory.GetInstance(SysApiResourceDataService, RuleService, HttpContextAccessor, DataToExpressionService).GetQueryBuilderExpression<BaseDictionary>(reqEntity.QuerBuilderDetails);
  31. var result = _dictionaryDataService.GetList();
  32. return result;
  33. }
  34. }
  35. }