update - 解决台账查询逻辑中的异常判断
This commit is contained in:
parent
6fae86fcdb
commit
0cab9d6e0a
@ -453,7 +453,7 @@ public class BpmnProcessInstanceServiceImpl implements BpmnProcessInstanceServic
|
||||
NativeHistoricProcessInstanceQuery query = historyService.createNativeHistoricProcessInstanceQuery();
|
||||
String tableName = managementService.getTableName(HistoricProcessInstance.class);
|
||||
StringBuilder baseQuerySql = new StringBuilder("SELECT a.* FROM ").append(tableName).append(" a");
|
||||
if (CollectionUtils.isEmpty(dto.getCategories())) {
|
||||
if (!CollectionUtils.isEmpty(dto.getCategories())) {
|
||||
baseQuerySql.append(" LEFT JOIN ACT_RE_PROCDEF b ON a.PROC_DEF_ID_ = b.ID_ ")
|
||||
.append(sqlConnectors(baseQuerySql))
|
||||
.append(" b.CATEGORY_ in (");
|
||||
@ -473,7 +473,7 @@ public class BpmnProcessInstanceServiceImpl implements BpmnProcessInstanceServic
|
||||
.append(" a.NAME_ LIKE #{searchKey})");
|
||||
query.parameter("searchKey", "%" + dto.getSearchKey() + "%");
|
||||
}
|
||||
if (CollectionUtils.isEmpty(dto.getResults())) {
|
||||
if (!CollectionUtils.isEmpty(dto.getResults())) {
|
||||
baseQuerySql.append(sqlConnectors(baseQuerySql))
|
||||
.append(" a.BUSINESS_STATUS_ in (");
|
||||
for (int i = 0; i < dto.getResults().size(); i++) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user