发布时间:2026-8-25
特价活动:>>>> 用友U8、T6、T+、T3软件产品4折优惠,畅捷通T+cloud、好会计、好业财、好生意云产品8折优惠,另有话费赠送。
【问题现象】:
客户点开预制资产负债表,发现公式错误,但是是预制报表,不想一个个修改,想恢复系统预制的资产负债表公式
【解决方案】:
备份数据,执行脚本,查找对应的templateSourceID
select templateSourceID,* from SR_Template where name ='资产负债表'
数据库找到对应templateSourceID是 :-15001,则按以下脚本进行修改,如果查出来的templateSourceID是其他的数,下方脚本的-15001,换成查出来的值即可
脚本如下:
DELETE SR_ReportDataFormula where idReportDataDTO in (Select id FROM SR_ReportData where templateID in(-15001))
DELETE SR_ReportDataCell where idReportDataDTO in(Select id FROM SR_ReportData where templateID in(-15001))
DELETE SR_ReportData where templateID in(-15001)
DELETE SR_PeriodTemplate where TemplateID in(-15001)
DELETE SR_KeyWord where TemplateID in(-15001)
DELETE SR_TemplateCell where idTemplateDTO in(Select id FROM SR_Template where templateSourceID in(-15001))
DELETE SR_Template where templateSourceID in(-15001)
截屏,微信识别二维码
客服QQ:5151867
(点击QQ号复制,添加好友)