Files
biz-api-cloud-zax/db/20260922_add_hard_printer_config_print_mode.sql
T
2026-09-22 13:18:45 +08:00

7 lines
612 B
SQL
Raw 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.
-- 打印机配置补充终端打印方式列:当前终端固定图片打印(指令打印在真机版式与走纸
-- 兼容性不达标后已停用),默认 IMAGE 后服务端生成凭证时跳过 ESC/POS 指令流
-- (print_cmd 置空),避免指令拼装写库与 MQTT/HTTP 载荷膨胀。
-- 未来支持指令打印的终端通过 /printer/info 上报 CMD 恢复指令流生成。
ALTER TABLE `pjcloudx_hardware`.`hard_printer_config`
ADD COLUMN `print_mode` varchar(16) NOT NULL DEFAULT 'IMAGE' COMMENT '终端打印方式: IMAGE 图片打印(默认) / CMD 指令打印' AFTER `image_mode`;