update 调整sql书写顺序
This commit is contained in:
parent
4d07a35b1f
commit
e26624a351
@ -22,14 +22,14 @@
|
|||||||
t.tenant_id,
|
t.tenant_id,
|
||||||
i.business_id,
|
i.business_id,
|
||||||
i.flow_status,
|
i.flow_status,
|
||||||
|
i.create_by,
|
||||||
d.flow_name,
|
d.flow_name,
|
||||||
d.flow_code,
|
d.flow_code,
|
||||||
d.form_custom,
|
d.form_custom,
|
||||||
COALESCE(t.form_path, d.form_path) as form_path,
|
COALESCE(t.form_path, d.form_path) as form_path,
|
||||||
d.version,
|
d.version,
|
||||||
uu.processed_by,
|
uu.processed_by,
|
||||||
uu.type,
|
uu.type
|
||||||
i.create_by
|
|
||||||
from flow_task as t
|
from flow_task as t
|
||||||
left join flow_user uu on uu.associated = t.id
|
left join flow_user uu on uu.associated = t.id
|
||||||
left join flow_definition d on t.definition_id = d.id
|
left join flow_definition d on t.definition_id = d.id
|
||||||
@ -57,19 +57,19 @@
|
|||||||
a.definition_id,
|
a.definition_id,
|
||||||
a.instance_id,
|
a.instance_id,
|
||||||
a.flow_status flow_task_status,
|
a.flow_status flow_task_status,
|
||||||
b.flow_status,
|
|
||||||
a.message,
|
a.message,
|
||||||
a.ext,
|
a.ext,
|
||||||
a.create_time,
|
a.create_time,
|
||||||
a.update_time,
|
a.update_time,
|
||||||
a.tenant_id,
|
a.tenant_id,
|
||||||
b.business_id,
|
|
||||||
a.form_custom,
|
a.form_custom,
|
||||||
a.form_path,
|
a.form_path,
|
||||||
|
b.flow_status,
|
||||||
|
b.business_id,
|
||||||
|
b.create_by,
|
||||||
c.flow_name,
|
c.flow_name,
|
||||||
c.flow_code,
|
c.flow_code,
|
||||||
c.version,
|
c.version
|
||||||
b.create_by
|
|
||||||
from flow_his_task a
|
from flow_his_task a
|
||||||
left join flow_instance b on a.instance_id = b.id
|
left join flow_instance b on a.instance_id = b.id
|
||||||
left join flow_definition c on a.definition_id = c.id
|
left join flow_definition c on a.definition_id = c.id
|
||||||
@ -85,12 +85,12 @@
|
|||||||
select * from (
|
select * from (
|
||||||
select
|
select
|
||||||
b.id,
|
b.id,
|
||||||
a.processed_by,
|
c.business_id,
|
||||||
c.flow_status,
|
c.flow_status,
|
||||||
|
a.processed_by,
|
||||||
|
a.create_time,
|
||||||
b.form_custom,
|
b.form_custom,
|
||||||
b.form_path,
|
b.form_path,
|
||||||
c.business_id,
|
|
||||||
a.create_time,
|
|
||||||
b.node_name,
|
b.node_name,
|
||||||
b.node_code,
|
b.node_code,
|
||||||
d.flow_name,
|
d.flow_name,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user