Эх сурвалжийг харах

开启企业创客数据统计,激活,交易,时间从2022-08-16开始

lichunlei 3 жил өмнө
parent
commit
6b5cfa7965

+ 2 - 15
AppStart/Helper/StatBusinessService.cs

@@ -52,7 +52,7 @@ namespace MySystem
                     {
                         startId = "867041";
                     }
-                    DataTable idsDt = OtherMySqlConn.dtable("select Id from TradeRecord where Id>=" + startId + " and UserId in (select Id from Users where BusinessFlag=1) and QueryCount=1 order by Id limit 50");
+                    DataTable idsDt = OtherMySqlConn.dtable("select Id from TradeRecord where Id>=" + startId + " and CreateDate>='2022-08-16 00:00:00' and UserId in (select Id from Users where BusinessFlag=1) and QueryCount=1 order by Id limit 50");
                     if(idsDt.Rows.Count > 0)
                     {
                         string ids = "";
@@ -176,7 +176,7 @@ namespace MySystem
             WebCMSEntities db = new WebCMSEntities();
             try
             {
-                DataTable idsDt = OtherMySqlConn.dtable("select Id from PosMachinesTwo where QueryCount=1 and BuyUserId in (select Id from Users where BusinessFlag=1) and ActivationState=1 and ActivationTime is not null and ActivationTime>='2022-08-01 00:00:00' and BuyUserId>0 limit 50");
+                DataTable idsDt = OtherMySqlConn.dtable("select Id from PosMachinesTwo where QueryCount=1 and BuyUserId in (select Id from Users where BusinessFlag=1) and ActivationState=1 and ActivationTime is not null and ActivationTime>='2022-08-16 00:00:00' and BuyUserId>0 limit 50");
                 if(idsDt.Rows.Count > 0)
                 {
                     string ids = "";
@@ -233,18 +233,5 @@ namespace MySystem
         
 
 
-
-
-        #region 判断品牌互斥条件,根据身份证号
-
-        public bool CheckRepeatByBrand(WebCMSEntities db, int MerchantId)
-        {
-            int check = db.PosMachinesTwo.Count(m => m.Status > -1 && m.BindMerchantId == MerchantId);
-
-            return false;
-        }
-
-        #endregion
-
     }
 }

+ 2 - 0
AppStart/Helper/StatService.cs

@@ -34,6 +34,7 @@ namespace MySystem
                 if(DateTime.Now.Hour >= 3)
                 {
                     StatTradeAmountEverDayV2();
+                    StatBusinessService.Instance.StatTradeAmountEverDayV2();
                 }
                 Thread.Sleep(30000);
             }
@@ -479,6 +480,7 @@ namespace MySystem
                 if(DateTime.Now.Hour >= 3)
                 {
                     StartPosActNumEverTime();
+                    StatBusinessService.Instance.StartPosActNumEverTime();
                 }
                 Thread.Sleep(120000);
             }

+ 0 - 4
wwwroot/layuiadmin/modules/FileUpdateInfo_Admin.js

@@ -116,10 +116,6 @@ layui.config({
                         , submit = layero.find('iframe').contents().find('#' + submitID);
 
 
-
-
-
-
                     //监听提交
                     iframeWindow.layui.form.on('submit(' + submitID + ')', function (data) {
                         var field = data.field; //获取提交的字段