🐛 修正应收账单汇总导出并新增广州模板
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
-- 广州分公司应收账单模板:适用于已存在 ar_export_template 表的数据库。
|
||||
-- 执行一次;若相同业务类型、模板编码和版本已存在,唯一索引会报错,不覆盖现有配置。
|
||||
INSERT INTO `ar_export_template` (
|
||||
`template_code`, `template_name`, `business_type`, `template_version`,
|
||||
`storage_type`, `storage_key`, `file_hash`, `status`, `is_default`,
|
||||
`effective_start`, `effective_end`, `remark`, `create_by`, `create_time`
|
||||
) VALUES (
|
||||
'AR_BILL_GZ', '应收账单广州模板', 'AR_BILL', '1.0',
|
||||
'CLASSPATH', 'templates/receivable/ar_bill_template_gz.xlsx', NULL, 'ENABLED', '0',
|
||||
NULL, NULL, '广州分公司应收账单导出模板', SUBSTRING_INDEX(CURRENT_USER(), '@', 1), NOW()
|
||||
);
|
||||
|
||||
-- 核对新增记录,正常应返回一条。
|
||||
SELECT `template_id`, `template_code`, `template_name`, `business_type`,
|
||||
`template_version`, `storage_type`, `storage_key`, `status`, `is_default`,
|
||||
`effective_start`, `effective_end`
|
||||
FROM `ar_export_template`
|
||||
WHERE `business_type` = 'AR_BILL'
|
||||
AND `template_code` = 'AR_BILL_GZ'
|
||||
AND `template_version` = '1.0';
|
||||
Reference in New Issue
Block a user