diff --git a/javascript/youhong.ai/pcn/workflow_code_block.js b/javascript/youhong.ai/pcn/workflow_code_block.js new file mode 100644 index 0000000..95cbb39 --- /dev/null +++ b/javascript/youhong.ai/pcn/workflow_code_block.js @@ -0,0 +1 @@ +// 流程代码块 diff --git a/sql/youhong.ai/common_view_sql/mysql.sql b/sql/youhong.ai/common_view_sql/mysql.sql new file mode 100644 index 0000000..d931134 --- /dev/null +++ b/sql/youhong.ai/common_view_sql/mysql.sql @@ -0,0 +1,72 @@ +create or replace view workflow_type_info_view as +select wb.id, + wb.workflowname, + wt.typename, + wb.workflowdesc, + (IF(wb.version is null, 1, wb.version)) version +from workflow_base wb + RIGHT JOIN workflow_type wt on wb.workflowtype = wt.id; + +create or replace view workflow_table_view as +select base.id, + base.workflowname, + base.formid, + bill.tablename, + (IF(base.version is null, 1, base.version)) version +from workflow_bill bill + join workflow_base base on base.formid = bill.id; + +create or replace view workflow_detail_table_view as +select CONCAT(bill.id, '-', base.id) id, + bill.id bill_id, + base.id workflow_id, + base.workflowname, + base.formid main_formid, + bill.tablename +from workflow_billdetailtable bill + join workflow_base base on base.formid = bill.billid; + +create or replace view workflow_field_table_view as +select wb.id, + wb.fieldname, + concat(ht.indexdesc, ':', wb.fieldname) indexdesc, + ( + case + when wb.detailtable is null then (select distinct tablename from workflow_bill where id = wb.billid) + when wb.detailtable = '' + then (select distinct tablename from workflow_bill where id = wb.billid) + else wb.detailtable + end + ) tablename, + billid, + ( + case + when wb.detailtable = '' then 'main table' + when wb.detailtable is null then 'main table' + else wb.detailtable end + ) showtablename, + (case + 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 +from workflow_billfield wb + left join htmllabelindex ht on wb.fieldlabel = ht.id; + +create or replace view mode_bill_info_view as +select bill.id, bill.tablename, hti.indexdesc +from workflow_bill bill + left join htmllabelindex hti on hti.id = bill.namelabel +where bill.id < 0 + and bill.tablename like 'uf%'; + +create or replace view workflow_node_info_view as +select distinct nb.id, + nb.nodename, + (case when wb.version is null then 1 else wb.version end) version, + fn.workflowid +from workflow_nodebase nb + left join workflow_flownode fn on nb.id = fn.nodeid + left join workflow_base wb on wb.id = fn.workflowid; diff --git a/sql/youhong.ai/common_view_sql/oracle.sql b/sql/youhong.ai/common_view_sql/oracle.sql new file mode 100644 index 0000000..14e960f --- /dev/null +++ b/sql/youhong.ai/common_view_sql/oracle.sql @@ -0,0 +1,79 @@ +create or replace view workflow_type_info_view as +select wb.id, + wb.workflowname, + wt.typename, + wb.workflowdesc, + (IF(wb.version is null, 1, wb.version)) version +from workflow_base wb + RIGHT JOIN workflow_type wt on wb.workflowtype = wt.id +/ + +create or replace view workflow_table_view as +select base.id, + base.workflowname, + base.formid, + bill.tablename, + (IF(base.version is null, 1, base.version)) version +from workflow_bill bill + join workflow_base base on base.formid = bill.id +/ + +create or replace view workflow_detail_table_view as +select (bill.id || '-' || base.id) id, + bill.id bill_id, + base.id workflow_id, + base.workflowname, + base.formid main_formid, + bill.tablename +from workflow_billdetailtable bill + join workflow_base base on base.formid = bill.billid +/ + + +create or replace view workflow_field_table_view as +select wb.id, + wb.fieldname, + (ht.indexdesc || ':' || wb.fieldname) indexdesc, + ( + case + when wb.detailtable is null then (select distinct tablename from workflow_bill where id = wb.billid) + when wb.detailtable = '' + then (select distinct tablename from workflow_bill where id = wb.billid) + else wb.detailtable + end + ) tablename, + billid, + ( + case + when wb.detailtable = '' then 'main table' + when wb.detailtable is null then 'main table' + else wb.detailtable end + ) showtablename, + (case + 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 +from workflow_billfield wb + left join htmllabelindex ht on wb.fieldlabel = ht.id +/ + +create or replace view mode_bill_info_view as +select bill.id, bill.tablename, hti.indexdesc +from workflow_bill bill + left join htmllabelindex hti on hti.id = bill.namelabel +where bill.id < 0 + and bill.tablename like 'uf%' +/ + +create or replace view workflow_node_info_view as +select distinct nb.id, + nb.nodename, + (case when wb.version is null then 1 else wb.version end) version, + fn.workflowid +from workflow_nodebase nb + left join workflow_flownode fn on nb.id = fn.nodeid + left join workflow_base wb on wb.id = fn.workflowid +/ diff --git a/sql/youhong.ai/common_view_sql/sqlserver.sql b/sql/youhong.ai/common_view_sql/sqlserver.sql new file mode 100644 index 0000000..98781cc --- /dev/null +++ b/sql/youhong.ai/common_view_sql/sqlserver.sql @@ -0,0 +1,73 @@ +create view workflow_type_info_view as +select wb.id, + wb.workflowname, + wt.typename, + wb.workflowdesc, + ( +IF (wb.version is null, 1, wb.version)) version from workflow_base wb + RIGHT JOIN workflow_type wt on wb . workflowtype = wt . id; + +create or replace view workflow_table_view as +select base.id, + base.workflowname, + base.formid, + bill.tablename, + ( +IF (base.version is null, 1, base.version)) version + from workflow_bill bill join workflow_base base on base . formid = bill . id; + +create or replace view workflow_detail_table_view as +select (bill.id + '-' + base.id) id, + bill.id bill_id, + base.id workflow_id, + base.workflowname, + base.formid main_formid, + bill.tablename +from workflow_billdetailtable bill + join workflow_base base on base.formid = bill.billid; + + +create view workflow_field_table_view as +select wb.id, + wb.fieldname, + (ht.indexdesc + ':' + wb.fieldname) indexdesc, + ( + case + when wb.detailtable is null then (select distinct tablename from workflow_bill where id = wb.billid) + when wb.detailtable = '' + then (select distinct tablename from workflow_bill where id = wb.billid) + else wb.detailtable + end + ) tablename, + billid, + ( + case + when wb.detailtable = '' then 'main table' + when wb.detailtable is null then 'main table' + else wb.detailtable end + ) showtablename, + (case + 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 +from workflow_billfield wb + left join htmllabelindex ht on wb.fieldlabel = ht.id; + +create view mode_bill_info_view as +select bill.id, bill.tablename, hti.indexdesc +from workflow_bill bill + left join htmllabelindex hti on hti.id = bill.namelabel +where bill.id < 0 + and bill.tablename like 'uf%'; + +create view workflow_node_info_view as +select distinct nb.id, + nb.nodename, + (case when wb.version is null then 1 else wb.version end) version, + fn.workflowid +from workflow_nodebase nb + left join workflow_flownode fn on nb.id = fn.nodeid + left join workflow_base wb on wb.id = fn.workflowid; diff --git a/常用信息.md b/常用信息.md new file mode 100644 index 0000000..2bb8351 --- /dev/null +++ b/常用信息.md @@ -0,0 +1,4 @@ +# 常用的数据信息 + ++ 缓存地址: `/commcache/cacheMonitor.jsp` ++ 移动端流程模拟地址: `/spa/workflow/static4mobile/index.html#/center/doing` \ No newline at end of file diff --git a/开发文档.md b/开发文档.md new file mode 100644 index 0000000..e73dc47 --- /dev/null +++ b/开发文档.md @@ -0,0 +1,38 @@ +# 二开文档 + +> @create: 2022-11-23 +>
@author: youHong.ai +>
@维护人员:开发部全体成员 + +## 环境搭建 + +环境搭建请查看[README.MD](README.md)文档 + +## 项目体系 + ++ [项目研发体系](https://e-cloudstore.com/e9/index5.html) ++ [相关技术快速入门方法](https://e-cloudstore.com/doc.html?appId=41be1b9bcb66484b9137748d4591d620) ++ [e9技术栈](https://e-cloudstore.com/e9/index2.html) ++ + +## 开发文档 + +### 后端文档 + ++ [后端开发文档](https://e-cloudstore.com/doc.html?appId=84e77d7890a14c439590b37707251859) ++ [Jersey接口无侵入式开发](https://e-cloudstore.com/doc.html?appId=3765707c36e146049241e55c10796af1) ++ [全局数据读取](https://e-cloudstore.com/doc.html?appId=d420e0bcd34b4fbe888fa9e5a7e9f658) ++ [代理无侵入开发](https://e-cloudstore.com/e9/file/E9BackendDdevelopmentGuide.pdf) ++ [后端接口地址文档](https://e-cloudstore.com/ec/api/applist/index.html#/) + +### 前端文档 + ++ [移动端js接口文档](http://emdoc.wx.weaver.com.cn/web/#/1/532) ++ [流程表单开发](https://e-cloudstore.com/doc.html?appId=98cb7a20fae34aa3a7e3a3381dd8764e) ++ [ecode开发](https://e-cloudstore.com/doc.html) ++ [weaJs文档](https://e-cloudstore.com/doc.html?appId=ddb03e0fa89048bbab26cba6b2f02b75) 请求、弹窗、获取url参数等 ++ [建模开发文档](https://e-cloudstore.com/doc.html?appId=e783a1d75a784d9b97fbd40fdf569f7d) ++ [支持ecode复写的组件版本信息整理](https://e-cloudstore.com/doc.html?appId=f353923a8d2d42948235e7bbbd5f8912) ++ [ecode常见问题](https://e-cloudstore.com/doc.html?appId=25fb364617c44ca3aa007581db3e4269) ++ [前端开发规范](https://e-cloudstore.com/doc.html?appId=36f4cc525d7444ee9291e6dfaeb0a632) ++ [e9组件库](https://cloudstore.e-cology.cn/#/pc/doc/common-index) \ No newline at end of file