对创建字段信息视图(workflow_field_table_view)语句进行修改
parent
b23aadb572
commit
bf480091b9
|
@ -87,7 +87,7 @@ create
|
||||||
or replace view workflow_field_table_view as
|
or replace view workflow_field_table_view as
|
||||||
select wb.id,
|
select wb.id,
|
||||||
wb.fieldname,
|
wb.fieldname,
|
||||||
concat(ht.indexdesc, ':', wb.fieldname) indexdesc,
|
concat(ht.indexdesc, ':', wb.fieldname,'(',wb.id,')') indexdesc,
|
||||||
(
|
(
|
||||||
case
|
case
|
||||||
when wb.detailtable is null then (select distinct tablename from workflow_bill where id = wb.billid)
|
when wb.detailtable is null then (select distinct tablename from workflow_bill where id = wb.billid)
|
||||||
|
@ -103,16 +103,12 @@ select wb.id,
|
||||||
when wb.detailtable is null then 'main table'
|
when wb.detailtable is null then 'main table'
|
||||||
else wb.detailtable end
|
else wb.detailtable end
|
||||||
) showtablename,
|
) showtablename,
|
||||||
(case
|
|
||||||
when wb.fieldhtmltype = '1' then '单行文本框'
|
wf.TYPENAME as fieldhtmltype,
|
||||||
when wb.FIELDHTMLTYPE = '2' then '多行文本框'
|
|
||||||
when wb.FIELDHTMLTYPE = '3' then '流览框'
|
|
||||||
when wb.FIELDHTMLTYPE = '4' then 'check框'
|
|
||||||
when wb.FIELDHTMLTYPE = '5' then '选择框'
|
|
||||||
else '附件上传' end) fieldhtmltype,
|
|
||||||
wb.FIELDHTMLTYPE fieldtype
|
wb.FIELDHTMLTYPE fieldtype
|
||||||
from workflow_billfield wb
|
from workflow_billfield wb
|
||||||
left join htmllabelindex ht on wb.fieldlabel = ht.id
|
left join htmllabelindex ht on wb.fieldlabel = ht.id
|
||||||
|
left join workflow_fieldtype wf on wf.ID = wb.fieldhtmltype
|
||||||
union all
|
union all
|
||||||
select *
|
select *
|
||||||
from cus_workflow_base_field_assist;
|
from cus_workflow_base_field_assist;
|
||||||
|
|
|
@ -91,7 +91,7 @@ VALUES (-989, 'workflowid', '工作流id:workflowid', 'workflow_requestbase',
|
||||||
create or replace view workflow_field_table_view as
|
create or replace view workflow_field_table_view as
|
||||||
select wb.id,
|
select wb.id,
|
||||||
wb.fieldname,
|
wb.fieldname,
|
||||||
(ht.indexdesc || ':' || wb.fieldname) indexdesc,
|
(ht.indexdesc || ':' || wb.fieldname || '(' || CAST(wb.id as VARCHAR2(10)) || ')') indexdesc,
|
||||||
(
|
(
|
||||||
case
|
case
|
||||||
when wb.detailtable is null then (select distinct tablename from workflow_bill where id = wb.billid)
|
when wb.detailtable is null then (select distinct tablename from workflow_bill where id = wb.billid)
|
||||||
|
@ -107,16 +107,11 @@ select wb.id,
|
||||||
when wb.detailtable is null then 'main table'
|
when wb.detailtable is null then 'main table'
|
||||||
else wb.detailtable end
|
else wb.detailtable end
|
||||||
) showtablename,
|
) showtablename,
|
||||||
(case
|
wf.TYPENAME as fieldhtmltype,
|
||||||
when wb.fieldhtmltype = '1' then '单行文本框'
|
|
||||||
when wb.FIELDHTMLTYPE = '2' then '多行文本框'
|
|
||||||
when wb.FIELDHTMLTYPE = '3' then '流览框'
|
|
||||||
when wb.FIELDHTMLTYPE = '4' then 'check框'
|
|
||||||
when wb.FIELDHTMLTYPE = '5' then '选择框'
|
|
||||||
else '附件上传' end) fieldhtmltype,
|
|
||||||
wb.FIELDHTMLTYPE fieldtype
|
wb.FIELDHTMLTYPE fieldtype
|
||||||
from workflow_billfield wb
|
from workflow_billfield wb
|
||||||
left join htmllabelindex ht on wb.fieldlabel = ht.id
|
left join htmllabelindex ht on wb.fieldlabel = ht.id
|
||||||
|
left join workflow_fieldtype wf on wf.ID = wb.fieldhtmltype
|
||||||
union all
|
union all
|
||||||
select *
|
select *
|
||||||
from cus_workflow_base_field_assist /
|
from cus_workflow_base_field_assist /
|
||||||
|
|
|
@ -95,7 +95,7 @@ drop view workflow_field_table_view
|
||||||
create view workflow_field_table_view as
|
create view workflow_field_table_view as
|
||||||
select wb.id,
|
select wb.id,
|
||||||
wb.fieldname,
|
wb.fieldname,
|
||||||
(ht.indexdesc + ':' + wb.fieldname) indexdesc,
|
(ht.indexdesc + ':' + wb.fieldname + '(' + CONVERT(varchar(10),wb.id) + ')') indexdesc,
|
||||||
(
|
(
|
||||||
case
|
case
|
||||||
when wb.detailtable is null then (select distinct tablename from workflow_bill where id = wb.billid)
|
when wb.detailtable is null then (select distinct tablename from workflow_bill where id = wb.billid)
|
||||||
|
@ -111,16 +111,11 @@ select wb.id,
|
||||||
when wb.detailtable is null then 'main table'
|
when wb.detailtable is null then 'main table'
|
||||||
else wb.detailtable end
|
else wb.detailtable end
|
||||||
) showtablename,
|
) showtablename,
|
||||||
(case
|
wf.TYPENAME as fieldhtmltype,
|
||||||
when wb.fieldhtmltype = '1' then '单行文本框'
|
|
||||||
when wb.FIELDHTMLTYPE = '2' then '多行文本框'
|
|
||||||
when wb.FIELDHTMLTYPE = '3' then '流览框'
|
|
||||||
when wb.FIELDHTMLTYPE = '4' then 'check框'
|
|
||||||
when wb.FIELDHTMLTYPE = '5' then '选择框'
|
|
||||||
else '附件上传' end) fieldhtmltype,
|
|
||||||
wb.FIELDHTMLTYPE fieldtype
|
wb.FIELDHTMLTYPE fieldtype
|
||||||
from workflow_billfield wb
|
from workflow_billfield wb
|
||||||
left join htmllabelindex ht on wb.fieldlabel = ht.id
|
left join htmllabelindex ht on wb.fieldlabel = ht.id
|
||||||
|
left join workflow_fieldtype wf on wf.ID = wb.fieldhtmltype
|
||||||
union all
|
union all
|
||||||
select *
|
select *
|
||||||
from cus_workflow_base_field_assist go
|
from cus_workflow_base_field_assist go
|
||||||
|
|
Loading…
Reference in New Issue