ForeverSmiYngEcologyKit/关于无法删除泛微旧字段,显示被公式引用的bug

6 lines
645 B
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

部分旧字段确认已经没有引用了,但是泛微删除一直提示字段被引用。
检查过泛微的代码应该是某种情况之下泛微存在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'