打印日志

This commit is contained in:
2026-04-17 17:10:20 +08:00
parent 501f1c1856
commit ed85ed84f1
4 changed files with 45 additions and 109 deletions

View File

@@ -31,38 +31,43 @@ public class PrintMachineLog implements Serializable {
private static final long serialVersionUID = 1L;
/**
* id
* 主键ID
*/
@Id(keyType = KeyType.Auto)
private Long id;
private Integer id;
/**
* 打印机类型 本地打印机-local USB打印机-USB 云打印机-network
* 店铺Id
*/
private String connectionType;
private Long shopId;
/**
* 打印机品牌 云想印 = yxyPrinter飞鹅 = fePrinter 本地 = local USB = printer
*/
private String contentType;
/**
* 打印小票 标签-label 出品-kitchen 小票-cash
*/
private String subType;
/**
* 打印机名称
* 设备名称
*/
private String name;
/**
* IP地址/打印机编号
* 连接方式 USB、云打印、局域网
*/
private String connectionType;
/**
* 打印类型 label标签 cash小票
*/
private String printType;
/**
* 打印机品牌 飞鹅/云想印
*/
private String brand;
/**
* ip地址/MAC地址
*/
private String address;
/**
* 端口/打印机秘钥
* 端口
*/
private String port;
@@ -72,34 +77,14 @@ public class PrintMachineLog implements Serializable {
private String receiptSize;
/**
* 分类打印 0-所以 1-部分分类 2-部分商品
* 打印数量
*/
private String classifyPrint;
private Integer printNum;
/**
* 桌台打印 0-所有 1-部分
* 打印内容类型
*/
private String tablePrint;
/**
* 打印数量 c1m1^2=顾客+商家[2张] m1^1=商家[1张] c1^1顾客[1张] c2m1^3=顾客2+商家1[3张]
*/
private String printQty;
/**
* 打印方式 normal-普通出单 one-一菜一品 callTicket-排队取号
*/
private String printMethod;
/**
* 打印类型 JSON数组字符串数据 1-确认退款单 2-交班单 3-排队取号,如:[1,2,3]
*/
private String printType;
/**
* 打印票据 0-全部打印 1-仅厨房 2-仅前台
*/
private String printReceipt;
private String printContentType;
/**
* 打印内容
@@ -107,33 +92,7 @@ public class PrintMachineLog implements Serializable {
private String printContent;
/**
* 店铺id
*/
private String shopId;
/**
* 业务类型
*/
private String bizType;
/**
* 打印人id
*/
private Long createUserId;
/**
* 打印人名称
*/
private String createUserName;
/**
* 打印任务创建时间
*/
@Column(onInsertValue = "now()")
private LocalDateTime createTime;
/**
* 打印任务id用于复查打印状态云想印=orderId
* 打印任务id用于复查打印状态
*/
private String taskId;
@@ -157,4 +116,15 @@ public class PrintMachineLog implements Serializable {
*/
private String respMsg;
/**
* 创建时间
*/
@Column(onInsertValue = "now()")
private LocalDateTime createTime;
/**
* 更新时间
*/
@Column(onUpdateValue = "now()")
private LocalDateTime updateTime;
}

View File

@@ -1,8 +1,8 @@
package com.czg.order.service;
import com.czg.account.entity.PrintMachine;
import com.mybatisflex.core.service.IService;
import com.czg.order.entity.PrintMachineLog;
import com.mybatisflex.core.service.IService;
/**
* 店铺小票打印记录 服务层。