Showing
1 changed file
with
2 additions
and
2 deletions
| ... | ... | @@ -342,10 +342,10 @@ public class CzDeviceReportService { |
| 342 | 342 | long endOfDay = calendar.getTimeInMillis(); |
| 343 | 343 | |
| 344 | 344 | statement = connection.prepareStatement(sql); |
| 345 | - statement.setString(1, deviceId); | |
| 345 | + statement.setObject(1, deviceId, java.sql.Types.OTHER); | |
| 346 | 346 | statement.setLong(2, startOfDay); |
| 347 | 347 | statement.setLong(3, endOfDay); |
| 348 | - statement.setString(4, deviceId); | |
| 348 | + statement.setObject(4, deviceId, java.sql.Types.OTHER); | |
| 349 | 349 | statement.setLong(5, startOfDay); |
| 350 | 350 | statement.setLong(6, endOfDay); |
| 351 | 351 | ... | ... |