已分配的报表模板,在模板分配日志中不显示,但是在报表接收重复显示
1、问题描述
已分配的报表模板,在模板分配中无法查询到。如图所示
2、分析过程
常见于861/85版本(其他版本不可参考)
成因:t_csl_templetdispense(模板分配记录表)原来是一张table,优化后变成了view,由t_csl_templetdispense_his t_csl_templetdispense_new这两张table查询结果组合而成,其本身不在存储数据。因此模板分配记录真实是写入t_csl_templetdispense_his、t_csl_templetdispense_new中,t_csl_templetdispense只做查询用。现场可能是补丁脚本执行不完全,导致这3张均为table,出现该问题。
需要执行脚本处理。
3、操作步骤
确认t_csl_templetdispense_his、t_csl_templetdispense_new数据是否正确存在
如不存在,将t_csl_templetdispense的数据复制到t_csl_templetdispense_new中.
删除表 drop table t_csl_templetdispense
添加视图,执行下面脚本
CREATE VIEW t_csl_templetdispense AS
select fid,fcreatorid,fcreatetime,flastupdateuserid,flastupdatetime,fcompanyid,forgboundid,fsourcetype,fdispensesrcid,fisallowchgtemplet,fiscovertmpformula,fiscoverformula,fcontrolunitid,fisallowchgsol,fiscovernolockcell, 1 as ftype from t_csl_templetdispense_new
union all select fid,fcreatorid,fcreatetime,flastupdateuserid,flastupdatetime,fcompanyid,forgboundid,fsourcetype,fdispensesrcid,fisallowchgtemplet,fiscovertmpformula,fiscoverformula,fcontrolunitid,fisallowchgsol,fiscovernolockcell, 0 as ftype from t_csl_templetdispense_his
4、注意
可以先备份表t_csl_templetdispense 以防止数据误删除。
执行脚本之前,需要先确认t_csl_templetdispense 是否为视图。检验方法为,t_csl_templetdispense_his t_csl_templetdispense_new 两张表的记录数和是否 等于t_csl_templetdispense 记录数。 如不等,则t_csl_templetdispense 为表,不是视图。或使用数据库连接工具确认。
已分配的报表模板,在模板分配日志中不显示,但是在报表接收重复显示
本文2024-09-22 18:04:49发表“eas cloud知识”栏目。
本文链接:https://wenku.my7c.com/article/kingdee-eas-98473.html
- 鼎捷EAI整合規範文件V3.1.07 (集團).pdf
- 鼎捷OpenAPI應用場景說明_基礎資料.pdf
- 鼎捷OpenAPI應用場景說明_財務管理.pdf
- 鼎捷T100 API設計器使用手冊T100 APIDesigner(V1.0).docx
- 鼎新e-GoB2雲端ERP B2 線上課程E6-2應付票據整批郵寄 領取.pdf
- 鼎新e-GoB2雲端ERP B2 線上課程A4使用者建立權限設定.pdf
- 鼎新e-GoB2雲端ERP B2 線上課程C3會計開帳與會計傳票.pdf
- 鼎新e-GoB2雲端ERP B2 線上課程E6-1應付票據.pdf
- 鼎新e-GoB2雲端ERP B2 線上課程A5-1進銷存參數設定(初階篇).pdf
- 鼎新e-GoB2雲端ERP B2 線上課程D2帳款開帳與票據開帳.pdf