我需要检查从滚动条中检索到的当前值是否与下一个值-1
while (sequenceNumbers.next()){
if(sequenceNumbers.get(0).equals("")){
}
}
要检索的HQL查询
StringBuilder queryBuilder = new StringBuilder(" SELECT SUBSTRING(referenceComptable , 8, 14) AS seqNum, SUBSTRING(referenceComptable, 4,7) AS dateCegid, SUBSTRING(referenceComptable, 1,3) AS journal")
.append(" FROM EtapeJudiciaireLnkFactureActesHonoraires ")
.append(" WHERE dateCegidGenerated BETWEEN :date AND :dateYearIntervalDate ")
.append(" GROUP BY journal ")
.append(" ORDER BY seqNum ");