diff --git a/关于无法删除泛微旧字段,显示被公式引用的bug b/关于无法删除泛微旧字段,显示被公式引用的bug new file mode 100644 index 0000000..48deef5 --- /dev/null +++ b/关于无法删除泛微旧字段,显示被公式引用的bug @@ -0,0 +1,6 @@ +部分旧字段确认已经没有引用了,但是泛微删除一直提示字段被引用。 +检查过泛微的代码,应该是某种情况之下,泛微存在bug,没有删除引用。在这里通过泛微底层检测的sql查到数据后删除,清理缓存即可。 + +SELECT a.formula formula, a.TRIGGERS triggers, b.nodename nodename FROM WORKFLOW_FORMULA_HTMLLAYOUT a LEFT JOIN WORKFLOW_NODEBASE b ON a.NODEID = b.id WHERE a.FORMID = -967//表单id and exists(select 1 from workflow_nodehtmllayout c where a.layoutid = c.id) and a.formula like '%97966%' //字段id + +delete WORKFLOW_FORMULA_HTMLLAYOUT where TRIGGERS='1#93015##1#97966' \ No newline at end of file