2 Revize 739ba573ad ... bdbbeaa55b

Autor SHA1 Zpráva Datum
  莫海杰 bdbbeaa55b Merge branch '71博创自动立库' of http://www.imaodou.com.cn:30030/c_jack/EICP3.0_69 into 71博创自动立库 před 3 měsíci
  莫海杰 2f7879d069 提交 před 3 měsíci

+ 6 - 6
SCADA_DAQ/Customer/Service/Wcs_WebOperationService.cs

@@ -223,16 +223,16 @@ namespace SCADA_DAQ.Customer.Service
         #region 获取今日出入
         public RpcResponse<object> GetTodayLowUpTimes()
         {
-            var intTimes = Env.DAL.ReadDataTable($" select COUNT(*) from App_BC_OperateLog where Remark_Str = '入库' and " +
-                $" CreateTime_Dt between datetime('now','start of day','+1 seconds') and  datetime('now','start of day','+1 days','-1 seconds') ");
-            var outTimes = Env.DAL.ReadDataTable($" select COUNT(*) from App_BC_OperateLog where Remark_Str = '出库' and " +
-                $" CreateTime_Dt between datetime('now','start of day','+1 seconds') and  datetime('now','start of day','+1 days','-1 seconds') ");
+            var intTimes = Env.DAL.ReadDataTable($" select COUNT(*) as Total from App_BC_OperateLog where Remark_Str = '入库' and " +
+                $" CreateTime_Dt between datetime('now','start of day','+1 seconds') and  datetime('now','start of day','+1 days','-1 seconds') ").DtToList<BaseTableVo>();
+            var outTimes = Env.DAL.ReadDataTable($" select COUNT(*) as Total from App_BC_OperateLog where Remark_Str = '出库' and " +
+                $" CreateTime_Dt between datetime('now','start of day','+1 seconds') and  datetime('now','start of day','+1 days','-1 seconds') ").DtToList<BaseTableVo>();
             return new RpcResponse<object>()
             {
                 Data = new Dictionary<string, int?>()
                 {
-                    ["今日入库次数"] = Convert.ToInt32(intTimes),
-                    ["今日出库次数"] = Convert.ToInt32(outTimes),
+                    ["今日入库次数"] = intTimes[0].Total,
+                    ["今日出库次数"] = outTimes[0].Total,
                 }
             };
         }