|
@@ -3163,7 +3163,7 @@ public class YtiotVAlarmServiceImpl implements YtiotVAlarmService {
|
|
|
int RowCount = ytiotVAlarmDao.getEFireCount(hqlwhere);
|
|
|
// System.out.println(sqlwhere);
|
|
|
|
|
|
- List devcieList = ytiotVAlarmDao.getDeviceList("Sp_owner"," where u.owner_code="+device_code+"",null,null,null,null);
|
|
|
+ List devcieList = ytiotVAlarmDao.getDeviceList("Sp_owner"," where u.owner_code='"+device_code+"' ",null,null,null,null);
|
|
|
Sp_owner o = (Sp_owner)devcieList.get(0);
|
|
|
Integer deviceType = Integer.parseInt(o.getDwtype());
|
|
|
System.out.println("deviceType = " + deviceType);
|
|
@@ -3269,7 +3269,7 @@ public class YtiotVAlarmServiceImpl implements YtiotVAlarmService {
|
|
|
sqlwhere = " where id="+id+" ";
|
|
|
}
|
|
|
int RowCount = ytiotVAlarmDao.getSJCount(hqlwhere);
|
|
|
- List devcieList = ytiotVAlarmDao.getDeviceList("Sp_owner"," where u.owner_code="+device_code+"",null,null,null,null);
|
|
|
+ List devcieList = ytiotVAlarmDao.getDeviceList("Sp_owner"," where u.owner_code='"+device_code+"' ",null,null,null,null);
|
|
|
Sp_owner o = (Sp_owner)devcieList.get(0);
|
|
|
Integer deviceType = Integer.parseInt(o.getDwtype());
|
|
|
// System.out.println(sqlwhere);
|
|
@@ -3374,7 +3374,7 @@ public class YtiotVAlarmServiceImpl implements YtiotVAlarmService {
|
|
|
sqlwhere = " where id="+id+" ";
|
|
|
}
|
|
|
int RowCount = ytiotVAlarmDao.getRTUCount(hqlwhere);
|
|
|
- List devcieList = ytiotVAlarmDao.getDeviceList("Sp_owner"," where u.owner_code="+device_code+"",null,null,null,null);
|
|
|
+ List devcieList = ytiotVAlarmDao.getDeviceList("Sp_owner"," where u.owner_code='"+device_code+"' ",null,null,null,null);
|
|
|
Sp_owner o = (Sp_owner)devcieList.get(0);
|
|
|
Integer deviceType = Integer.parseInt(o.getDwtype());
|
|
|
// System.out.println(sqlwhere);
|