Commit 2a391e3911e8251ac7ad45724c19e1b08ef9a7bb

Authored by 杨鸣坤
1 parent a3c2a14d

报错修复

@@ -259,7 +259,8 @@ public class ShzzDevicePullService { @@ -259,7 +259,8 @@ public class ShzzDevicePullService {
259 "ORDER BY ts DESC LIMIT 2"; 259 "ORDER BY ts DESC LIMIT 2";
260 260
261 tsKvStatement = connection.prepareStatement(tsKvSql); 261 tsKvStatement = connection.prepareStatement(tsKvSql);
262 - tsKvStatement.setString(1, deviceId); 262 + UUID deviceUuid = UUID.fromString(deviceId);
  263 + tsKvStatement.setObject(1, deviceUuid);
263 tsKvResultSet = tsKvStatement.executeQuery(); 264 tsKvResultSet = tsKvStatement.executeQuery();
264 265
265 List<String> strVValues = new ArrayList<>(2); 266 List<String> strVValues = new ArrayList<>(2);