文件名从 IStation.Application.SZJT/01-logic-policy/2-std/LogicPolicy_StdController.cs 修改 |
| | |
| | | |
| | | var vm_list = MemoryCacheHelper.GetSet(cacheKey, () => |
| | | { |
| | | var all = new Service.LogicPolicy().GetAll(); |
| | | Service.LogicPolicy.PublishCache(cacheKey); |
| | | var all = new Yw.Service.LogicPolicy().GetAll(); |
| | | Yw.Service.LogicPolicy.PublishCache(cacheKey); |
| | | var vmList = all?.Select(x => new LogicPolicyStdDto(x)).ToList(); |
| | | return vmList; |
| | | }, Yw.Service.ConfigHelper.CacheLevel1); |
| | |
| | | [HttpGet] |
| | | public LogicPolicyStdDto GetDefault() |
| | | { |
| | | var all = new Service.LogicPolicy().GetAll(); |
| | | var all = new Yw.Service.LogicPolicy().GetAll(); |
| | | var model = all?.FirstOrDefault(x => x.Flags.Contains(Flags.榛樿)); |
| | | if (model == null) |
| | | { |