修改查询语句

master
lwj 2024-09-09 02:13:44 +08:00
parent 90b1cebf4f
commit 886e768c36
1 changed files with 9 additions and 9 deletions

View File

@ -129,10 +129,10 @@ public class MySqlDataSource extends BaseDataAbsSource {
.build(); .build();
map.put(i,build); map.put(i,build);
if (c <= one && i <= columnCount) { // if (c <= one && i <= columnCount) {
dataValues[c - 1][i - 1] = build; // dataValues[c - 1][i - 1] = build;
} // }
// dataValues[c][i-1]=build; dataValues[c][i-1]=build;
}else { }else {
DataValue build = DataValue.builder() DataValue build = DataValue.builder()
@ -141,16 +141,16 @@ public class MySqlDataSource extends BaseDataAbsSource {
.value(resultSet.getObject(i, map.get(i).getType().getTargetType())) .value(resultSet.getObject(i, map.get(i).getType().getTargetType()))
.type(map.get(i).getType()) .type(map.get(i).getType())
.build(); .build();
// dataValues[c][i-1]=build; dataValues[c][i-1]=build;
if (c <= one && i <= columnCount) { if (c <= one && i <= columnCount) {
dataValues[c - 1][i - 1] = build; dataValues[c - 1][i - 1] = build;
} }
} }
} }
if (c <= one) { // if (c <= one) {
c++; // c++;
} // }
// c++; c++;
} }
} catch (SQLException e) { } catch (SQLException e) {
throw new RuntimeException(e); throw new RuntimeException(e);