Skip to content

Commit

Permalink
Merge pull request #2809 from SCADA-LTS/fix/#2806_Fixed_counting_poin…
Browse files Browse the repository at this point in the history
…t_values_in_report

#2806 Fixed counting point values in report
  • Loading branch information
Limraj authored Jan 21, 2024
2 parents 5e5ddaa + ee3e57f commit 9972033
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/org/scada_lts/dao/report/ReportInstanceDataDAO.java
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ public int insert(final Object[] params, final int reportPointId, final String t
LOG.trace("insertInstanceData(Object[] params, final int reportPointId, final String timestampSql) reportPointId:" + reportPointId + ", timestampSql:" + timestampSql);
}

DAO.getInstance().getJdbcTemp().update(new PreparedStatementCreator() {
int value = DAO.getInstance().getJdbcTemp().update(new PreparedStatementCreator() {
@Override
public PreparedStatement createPreparedStatement(Connection connection) throws SQLException {
PreparedStatement preparedStatement = connection.prepareStatement(REPORT_INSTANCE_DATA_INSERT_FIRST + reportPointId + REPORT_INSTANCE_DATA_INSERT_SECOND + timestampSql);
Expand All @@ -167,7 +167,7 @@ public PreparedStatement createPreparedStatement(Connection connection) throws S
}
});

return reportPointId;
return value;
}

@Transactional(readOnly = false,propagation= Propagation.REQUIRES_NEW,isolation= Isolation.READ_COMMITTED,rollbackFor=SQLException.class)
Expand Down

0 comments on commit 9972033

Please sign in to comment.