|
@@ -2346,7 +2346,7 @@ public class BatteryServiceImpl extends ServiceImpl<BatteryMapper, Battery> impl
|
|
|
|
|
|
// CellMaxVol,CellMinVol,CellMaxTemp,CellMinTemp,BmsCellVoltDiff,VehSpd
|
|
// CellMaxVol,CellMinVol,CellMaxTemp,CellMinTemp,BmsCellVoltDiff,VehSpd
|
|
builder.append("select SN,Time,PackVoltage,PackCrnt,PackSoc,CellVoltage,CellTemp,InsulationRss,Info from ")
|
|
builder.append("select SN,Time,PackVoltage,PackCrnt,PackSoc,CellVoltage,CellTemp,InsulationRss,Info from ")
|
|
- .append(database + "." + tableName).append(" where ");
|
|
|
|
|
|
+ .append(tableName).append(" where ");
|
|
|
|
|
|
|
|
|
|
if (param.getStartTime() == null && param.getEndTime() == null) {
|
|
if (param.getStartTime() == null && param.getEndTime() == null) {
|
|
@@ -2378,10 +2378,10 @@ public class BatteryServiceImpl extends ServiceImpl<BatteryMapper, Battery> impl
|
|
PreparedStatement psSelect = null;
|
|
PreparedStatement psSelect = null;
|
|
try {
|
|
try {
|
|
conn = PhoenixUtils.getConnection();
|
|
conn = PhoenixUtils.getConnection();
|
|
- //psSelect = conn.prepareStatement(" use " + database + " ");
|
|
|
|
- //psSelect.setFetchSize(1000);
|
|
|
|
- //psSelect.execute();
|
|
|
|
- //psSelect.close();
|
|
|
|
|
|
+ psSelect = conn.prepareStatement(" use " + database + " ");
|
|
|
|
+ psSelect.setFetchSize(1000);
|
|
|
|
+ psSelect.execute();
|
|
|
|
+ psSelect.close();
|
|
psSelect = conn.prepareStatement(builder.toString());
|
|
psSelect = conn.prepareStatement(builder.toString());
|
|
ResultSet resultSet = psSelect.executeQuery();
|
|
ResultSet resultSet = psSelect.executeQuery();
|
|
flinkDataList = convertList(resultSet);
|
|
flinkDataList = convertList(resultSet);
|