update - 调整查询待办和已办状态结果查询入参
This commit is contained in:
parent
7419c36f52
commit
89dbf01ebc
@ -23,6 +23,7 @@ import java.util.List;
|
||||
public class BpmnTaskPageSearchDTO extends BpmPageParam {
|
||||
|
||||
@ApiModelProperty(value = "操作人标识")
|
||||
@NotBlank(message = "用户不能为空")
|
||||
private String userId;
|
||||
|
||||
@ApiModelProperty(value = "租户Id", example = "1")
|
||||
|
||||
@ -150,6 +150,7 @@ public class BpmnTaskServiceImpl implements BpmnTaskService {
|
||||
baseQuerySql.append(sqlConnectors(baseQuerySql)).append(" a.END_TIME_ is null")
|
||||
.append(sqlConnectors(baseQuerySql)).append(" a.ASSIGNEE_ = #{assignee}")
|
||||
.append(" ORDER BY a.END_TIME_ DESC");
|
||||
nativeQuery.sql(baseQuerySql.toString());
|
||||
return nativeQuery;
|
||||
}
|
||||
|
||||
@ -158,6 +159,7 @@ public class BpmnTaskServiceImpl implements BpmnTaskService {
|
||||
baseQuerySql.append(sqlConnectors(baseQuerySql)).append(" a.END_TIME_ is not null")
|
||||
.append(sqlConnectors(baseQuerySql)).append(" a.ASSIGNEE_ = #{assignee}")
|
||||
.append(" ORDER BY a.START_TIME_ DESC");
|
||||
nativeQuery.sql(baseQuerySql.toString());
|
||||
return nativeQuery;
|
||||
}
|
||||
|
||||
@ -205,7 +207,7 @@ public class BpmnTaskServiceImpl implements BpmnTaskService {
|
||||
}
|
||||
baseQuerySql.append(")");
|
||||
}
|
||||
if (CollectionUtils.isEmpty(dto.getResults())) {
|
||||
if (!CollectionUtils.isEmpty(dto.getResults())) {
|
||||
baseQuerySql.append(sqlConnectors(baseQuerySql))
|
||||
.append(" b.BUSINESS_STATUS_ in (");
|
||||
for (int i = 0; i < dto.getResults().size(); i++) {
|
||||
@ -215,6 +217,7 @@ public class BpmnTaskServiceImpl implements BpmnTaskService {
|
||||
}
|
||||
nativeQuery.parameter("businessStatus" + i, dto.getResults().get(i).getStatus());
|
||||
}
|
||||
baseQuerySql.append(")");
|
||||
}
|
||||
return nativeQuery;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user