移动系统liao
2025-01-24 f4a0b32daa9e021227707bcfb70b67738bd1b000
cylsg/cylsg.Application/CyOS/CyOSSettingController.cs
@@ -1,5 +1,6 @@
using cylsg.Model.ECTEModel;
using ECTESTOA;
using EzCoreNet.Redis;
using System;
using System.Collections.Generic;
using System.Linq;
@@ -16,10 +17,13 @@
        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>
@@ -50,6 +54,14 @@
                Remark = x.Remark,
            }).WithCache(3600).ToListAsync();
        }
        /// <summary>
        /// 获取流水号
        /// </summary>
        /// <returns></returns>
        [HttpGet]
        public  string GetShowID()
        {
          return   _eZCoreNetRedisService.GetYYYMMddAnd4sn();
        }
    }
}