improve resource query
This commit is contained in:
parent
225e969d2d
commit
79b4a10cbd
|
|
@ -187,8 +187,7 @@
|
|||
on ptr.process_definition_code=pd.code and ptr.process_definition_version = pd.version
|
||||
and ptr.project_code=pd.project_code and pd.release_state = 1
|
||||
join t_ds_task_definition td
|
||||
on (ptr.pre_task_code=td.code and ptr.pre_task_version=td.version)
|
||||
or (ptr.post_task_code=td.code and ptr.post_task_version=td.version)
|
||||
on ptr.post_task_code=td.code and ptr.post_task_version=td.version
|
||||
WHERE td.resource_ids is not null and td.resource_ids != ''
|
||||
</select>
|
||||
|
||||
|
|
@ -199,8 +198,7 @@
|
|||
on ptr.process_definition_code=pd.code and ptr.process_definition_version = pd.version
|
||||
and ptr.project_code=pd.project_code and pd.release_state = 1
|
||||
join t_ds_task_definition td
|
||||
on (ptr.pre_task_code=td.code and ptr.pre_task_version=td.version)
|
||||
or (ptr.post_task_code=td.code and ptr.post_task_version=td.version)
|
||||
on ptr.post_task_code=td.code and ptr.post_task_version=td.version
|
||||
WHERE td.resource_ids is not null and td.resource_ids != '' and td.user_id = #{userId}
|
||||
</select>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue