|
@@ -149,6 +149,10 @@ namespace TimedUpload.QuartzJobs
|
|
|
}
|
|
|
string meterDataSql = "select " + queryCol + " from " + tableName + " where 更新时间 = '" + id + "'";
|
|
|
DataTable data = dbHelper.Fill(meterDataSql);
|
|
|
+ if (data == null || data.Rows.Count == 0)
|
|
|
+ {
|
|
|
+ continue;
|
|
|
+ }
|
|
|
foreach (string col in queryColArr)
|
|
|
{
|
|
|
meterMap[col] = data.Rows[0][col];
|