|
@@ -172,18 +172,18 @@ namespace NB_IOT_UDP_HP_SCOKET.WWKJUtil
|
|
|
sb.Clear();
|
|
|
if (info.meterId == 0)
|
|
|
{
|
|
|
- sb.Append("SELECT ID FROM WWKJ_RMRS_NBBatchRegister where right('00000000000000' + MeterAddr, 14) = '").Append(info.Address).Append("' AND DeleteMark = 0");
|
|
|
- info.meterId = DBHelper.ScalarToInt(sb.ToString());
|
|
|
- if(info.meterId == 0)// 0 找不到对应的表
|
|
|
- {
|
|
|
- return false;
|
|
|
- }
|
|
|
- else
|
|
|
- {
|
|
|
- info.meterId = -1;// 1 没有进行数据同步
|
|
|
- }
|
|
|
+ //sb.Append("SELECT ID FROM WWKJ_RMRS_NBBatchRegister where right('00000000000000' + MeterAddr, 14) = '").Append(info.Address).Append("' AND DeleteMark = 0");
|
|
|
+ //info.meterId = DBHelper.ScalarToInt(sb.ToString());
|
|
|
+ //if(info.meterId == 0)// 0 找不到对应的表
|
|
|
+ //{
|
|
|
+ return false;
|
|
|
+ //}
|
|
|
+ //else
|
|
|
+ //{
|
|
|
+ // info.meterId = -1;// 1 没有进行数据同步
|
|
|
+ //}
|
|
|
|
|
|
- sb.Clear();
|
|
|
+ //sb.Clear();
|
|
|
}
|
|
|
|
|
|
}
|