Skip to content

Commit

Permalink
hotfix request
Browse files Browse the repository at this point in the history
  • Loading branch information
fufuu committed Oct 10, 2024
1 parent 6c3d185 commit fe3d129
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/usf/inspect/server/dao/RequestDao.java
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ public void saveRestRequests(List<RestRequestWrapper> reqList) {
var exceptions = new ArrayList<ServerException>();
var inc = new AtomicLong(selectMaxId("E_RST_RQT", "ID_RST_RQT"));
template.batchUpdate("INSERT INTO E_RST_RQT(ID_RST_RQT,CD_RMT_SES,VA_MTH,VA_PCL,VA_HST,CD_PRT,VA_PTH,VA_QRY,VA_CNT_TYP,VA_ATH_SCH,CD_STT,VA_I_SZE,VA_O_SZE,VA_I_CNT_ENC,VA_O_CNT_ENC,DH_STR,DH_END,VA_THR,CD_PRN_SES)"
+ " VALUES(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)", reqList, reqList.size(), (ps, o) -> {
+ " VALUES(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)", reqList, reqList.size(), (ps, o) -> {
var completed = isNull(o.getException());
ps.setLong(1, inc.incrementAndGet());
ps.setString(2, o.getId());
Expand All @@ -138,7 +138,7 @@ public void saveRestRequests(List<RestRequestWrapper> reqList) {
ps.setTimestamp(16, fromNullableInstant(o.getStart()));
ps.setTimestamp(17, fromNullableInstant(o.getEnd()));
ps.setString(18, o.getThreadName());
ps.setString(20, o.getCdSession());
ps.setString(19, o.getCdSession());
if(o.getException() != null) {
exceptions.add(new ServerException(inc.get(), null, new ExceptionInfo(o.getException().getType(), o.getException().getMessage())));
}
Expand Down

0 comments on commit fe3d129

Please sign in to comment.