| | |
| | | using cylsg.Model.ECTEModel; |
| | | using ECTESTOA; |
| | | using EzCoreNet.Redis; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | |
| | | |
| | | private readonly ISqlSugarClient _client; |
| | | private readonly IOAServices _oAServices; |
| | | public CYOSSettingController( ISqlSugarClient client,IOAServices oAServices ) |
| | | private readonly IEzCoreNetRedisService _eZCoreNetRedisService; |
| | | |
| | | public CYOSSettingController( ISqlSugarClient client,IOAServices oAServices,IEzCoreNetRedisService netRedisService ) |
| | | { |
| | | _client = client.AsTenant().GetConnection("ECTESTOADB"); |
| | | _oAServices = oAServices; |
| | | _eZCoreNetRedisService = netRedisService; |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | Remark = x.Remark, |
| | | }).WithCache(3600).ToListAsync(); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 获取流水号 |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | [HttpGet] |
| | | public string GetShowID() |
| | | { |
| | | return _eZCoreNetRedisService.GetYYYMMddAnd4sn(); |
| | | } |
| | | } |
| | | } |