using iWareCommon.Common.Service; using iWareLog.COUNT.Dao; using iWareLog.COUNT.Entity; using iWareLog.ORM; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace iWareLog.COUNT.Service { public class StackerReportService : CommonService { private static object Lock = new object(); private StackerReportService() : base(StackerReportDao.GetInstance()) { } private static StackerReportService Instance = null; /// /// 获取单例的方法 /// /// log服务的单例实体 public static StackerReportService GetInstance() { if (Instance == null) { lock (Lock) { if (Instance == null) { Instance = new StackerReportService(); } } } return Instance; } } }