瀏覽代碼

修改不对的字段

xuezhu liu 5 年之前
父節點
當前提交
aafb4c8dc3
共有 4 個文件被更改,包括 4 次插入3 次删除
  1. 1 0
      .gitignore
  2. 二進制
      .vs/slnx.sqlite
  3. 二進制
      .vs/slnx.sqlite-journal
  4. 3 3
      水厂同步/TimedUpload/QuartzJobs/DADeviceDataJob.cs

+ 1 - 0
.gitignore

@@ -108,3 +108,4 @@ _UpgradeReport_Files/
 Backup*/
 UpgradeLog*.XML
 
+/水厂同步/.vs/TimedUpload/v15/Server/sqlite3

二進制
.vs/slnx.sqlite


二進制
.vs/slnx.sqlite-journal


+ 3 - 3
水厂同步/TimedUpload/QuartzJobs/DADeviceDataJob.cs

@@ -49,7 +49,7 @@ namespace TimedUpload.QuartzJobs
                     devNo = dt.Rows[row]["MeterAssessmentCode"].ToString();//考核表编号
                     lastUpdateTime = dt.Rows[row]["GetDateTime"].ToString();
                     devName = dt.Rows[row]["MeterAssessmentName"].ToString();
-                    sql = "Select * From ARM_HistoryData Where Address='" + devNo + "' order by CreateTime asc";
+                    sql = "Select * From ARM_HistoryData Where Address='" + devNo + "' order by CreateMinute asc";
                     DataTable dtData = OracleHelper.ExecuteDataTable(sql);
                     int rowIndex = dtData.Rows.Count;
                     for(int i = 0; i < rowIndex; i++)
@@ -59,13 +59,13 @@ namespace TimedUpload.QuartzJobs
                             devId = devId,
                             devName = devName,
                             MeterAssessmentCode = devNo,
-                            GetDateTime = dtData.Rows[i]["CreateTime"].ToString(),
+                            GetDateTime = dtData.Rows[i]["CreateMinute"].ToString(),
                             NetCumulativeFlow = dtData.Rows[i]["ForValue"].ToString(),
                             PositiveCumulativeFlow = dtData.Rows[i]["ForValue"].ToString(),
                             NegativeCumulativeFlow = dtData.Rows[i]["RevValue"].ToString(),
                             InstantaneousFlow = dtData.Rows[i]["RealValue"].ToString(),
                             Pressure = dtData.Rows[i]["PressValue"].ToString(),
-                            BatteryVoltageValue = dtData.Rows[i]["NetVal"].ToString()
+                            BatteryVoltageValue = dtData.Rows[i]["CelVal"].ToString()
                         };
                         CompactAndSendData(entity);
                     }