|
@@ -260,8 +260,8 @@ public class ActTaskServiceImpl implements IActTaskService {
|
|
|
String userId = String.valueOf(LoginHelper.getUserId());
|
|
|
queryWrapper.eq("t.business_status_", BusinessStatusEnum.WAITING.getStatus());
|
|
|
queryWrapper.eq(TenantHelper.isEnable(), "t.tenant_id_", TenantHelper.getTenantId());
|
|
|
- String ids = StreamUtils.join(roleIds, x -> x);
|
|
|
- queryWrapper.and(w1 -> w1.eq("t.assignee_", userId).or(w2 -> w2.isNull("t.assignee_").apply("exists ( select LINK.ID_ from ACT_RU_IDENTITYLINK LINK where LINK.TASK_ID_ = t.ID_ and LINK.TYPE_ = 'candidate' and (LINK.USER_ID_ = {0} or ( LINK.GROUP_ID_ IN ({1}) ) ))", userId, ids)));
|
|
|
+ String ids = StreamUtils.join(roleIds, x -> "'" + x + "'");
|
|
|
+ queryWrapper.and(w1 -> w1.eq("t.assignee_", userId).or(w2 -> w2.isNull("t.assignee_").apply("exists ( select LINK.ID_ from ACT_RU_IDENTITYLINK LINK where LINK.TASK_ID_ = t.ID_ and LINK.TYPE_ = 'candidate' and (LINK.USER_ID_ = {0} or ( LINK.GROUP_ID_ IN (" + ids + ") ) ))", userId)));
|
|
|
if (StringUtils.isNotBlank(taskBo.getName())) {
|
|
|
queryWrapper.like("t.name_", taskBo.getName());
|
|
|
}
|