This commit is contained in:
Your Name
2026-07-09 17:58:02 +08:00
parent a650747fd3
commit f5a89b4310
290 changed files with 478 additions and 332 deletions
@@ -1,7 +1,8 @@
-- 诊单:复诊接诊率统计起始偏移(1=从诊起计,2=从诊起计…)
-- 诊单:复诊接诊率统计起始偏移(0=从诊起计,1=从诊起计…)
-- 执行前确认表前缀为 zyt_。
-- 若此前已执行过 DEFAULT 1 的版本,请改用下方 ALTER 将默认值改为 0。
ALTER TABLE `zyt_tcm_diagnosis`
ADD COLUMN `revisit_slot_start_offset` tinyint(3) unsigned NOT NULL DEFAULT 1
COMMENT '复诊接诊率统计起始偏移:统计诊次=实单序号+偏移(1=第1笔实单计二诊,2=计三诊5笔实单等价七诊'
ADD COLUMN `revisit_slot_start_offset` tinyint(3) unsigned NOT NULL DEFAULT 0
COMMENT '复诊接诊率统计起始偏移:统计诊次=实单序号+偏移(0=第1笔实单计一诊,1=计二诊,2=计三诊)'
AFTER `show_card`;
@@ -0,0 +1,6 @@
-- 若已执行过 revisit_slot_start_offset DEFAULT 1 的建列脚本,执行本脚本将默认值改为 0。
-- 不回写历史行:已保存为 1 的诊单保持原值;仅影响新诊单默认值。
ALTER TABLE `zyt_tcm_diagnosis`
MODIFY COLUMN `revisit_slot_start_offset` tinyint(3) unsigned NOT NULL DEFAULT 0
COMMENT '复诊接诊率统计起始偏移:统计诊次=实单序号+偏移(0=第1笔实单计一诊,1=计二诊,2=计三诊)';