店铺管理-店铺配置:打印机设置相关接口
This commit is contained in:
parent
80edd84c4f
commit
0ed1e068ed
|
|
@ -16,41 +16,126 @@ import java.util.Date;
|
|||
public class ShopPrinterDTO implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* id
|
||||
*/
|
||||
private Integer id;
|
||||
|
||||
/**
|
||||
* 名称
|
||||
*/
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* 冗余/遗留字段
|
||||
*/
|
||||
private String type;
|
||||
|
||||
/**
|
||||
* 打印机类型:本地打印机-local USB打印机-USB 云打印机-network
|
||||
*/
|
||||
private String connectionType;
|
||||
|
||||
/**
|
||||
* 打印机编号/IP地址
|
||||
*/
|
||||
private String address;
|
||||
|
||||
/**
|
||||
* 打印机密钥/端口
|
||||
*/
|
||||
private String port;
|
||||
|
||||
/**
|
||||
* 打印类型 标签-label 出品-kitchen 小票-cash
|
||||
*/
|
||||
private String subType;
|
||||
|
||||
/**
|
||||
* 启用状态 0-启用 1-停用
|
||||
*/
|
||||
private Integer status;
|
||||
|
||||
/**
|
||||
* 店铺id
|
||||
*/
|
||||
private String shopId;
|
||||
|
||||
/**
|
||||
* 冗余/遗留字段
|
||||
*/
|
||||
private String categoryIds;
|
||||
|
||||
/**
|
||||
* 打印机品牌
|
||||
* 云想印 = yxyPrinter
|
||||
* 飞鹅 = fePrinter
|
||||
* 本地 = local
|
||||
* USB = printer
|
||||
*/
|
||||
private String contentType;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
private String createdAt;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
private String updatedAt;
|
||||
|
||||
/**
|
||||
* 排序码 从小到大升序排列
|
||||
*/
|
||||
private Integer sort;
|
||||
|
||||
/**
|
||||
* 冗余/遗留字段
|
||||
*/
|
||||
private String vendorId;
|
||||
|
||||
/**
|
||||
* 冗余/遗留字段
|
||||
*/
|
||||
private String productId;
|
||||
/**
|
||||
* 冗余/遗留字段(打印机个性化配置,存储JSON数据)
|
||||
*/
|
||||
private String config;
|
||||
|
||||
/**
|
||||
* 小票尺寸 58mm 80mm
|
||||
*/
|
||||
private String receiptSize;
|
||||
/**
|
||||
* 分类打印 0-所以 1-部分分类 2-部分商品
|
||||
*/
|
||||
private String classifyPrint;
|
||||
/**
|
||||
* 桌台打印 0-所有 1-部分
|
||||
*/
|
||||
private String tablePrint;
|
||||
/**
|
||||
* 打印数量 c1m1^2=顾客+商家[2张] m1^1=商家[1张] c1^1顾客[1张] c2m1^3顾客2+商家1[3张]
|
||||
*/
|
||||
private String printQty;
|
||||
/**
|
||||
* 打印方式 1-普通 2-单个菜
|
||||
*/
|
||||
private String printMethod;
|
||||
/**
|
||||
* 打印类型,JSON数组 1-确认退款单 2-交班单 3-排队取号
|
||||
*/
|
||||
private String printType;
|
||||
/**
|
||||
* 打印单据 0-全部打印 1-仅厨房 2-仅前台
|
||||
*/
|
||||
private String printReceipt;
|
||||
|
||||
|
||||
public String getCreatedAt() {
|
||||
if("".equals(createdAt) || createdAt == null){
|
||||
if ("".equals(createdAt) || createdAt == null) {
|
||||
return "";
|
||||
}
|
||||
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
||||
|
|
@ -58,7 +143,7 @@ public class ShopPrinterDTO implements Serializable {
|
|||
}
|
||||
|
||||
public String getUpdatedAt() {
|
||||
if("".equals(updatedAt) || updatedAt == null){
|
||||
if ("".equals(updatedAt) || updatedAt == null) {
|
||||
return "";
|
||||
}
|
||||
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
||||
|
|
|
|||
|
|
@ -42,4 +42,33 @@ public class TbPrintMachineEntity implements Serializable {
|
|||
private String vendorId;
|
||||
private String productId;
|
||||
|
||||
/**
|
||||
* 小票尺寸 58mm 80mm
|
||||
*/
|
||||
private String receiptSize;
|
||||
/**
|
||||
* 分类打印 0-所以 1-部分分类 2-部分商品
|
||||
*/
|
||||
private String classifyPrint;
|
||||
/**
|
||||
* 桌台打印 0-所有 1-部分
|
||||
*/
|
||||
private String tablePrint;
|
||||
/**
|
||||
* 打印数量 c1m1^2=顾客+商家[2张] m1^1=商家[1张] c1^1顾客[1张] c2m1^3顾客2+商家1[3张]
|
||||
*/
|
||||
private String printQty;
|
||||
/**
|
||||
* 打印方式 1-普通 2-单个菜
|
||||
*/
|
||||
private String printMethod;
|
||||
/**
|
||||
* 打印类型,JSON数组 1-确认退款单 2-交班单 3-排队取号
|
||||
*/
|
||||
private String printType;
|
||||
/**
|
||||
* 打印单据 0-全部打印 1-仅厨房 2-仅前台
|
||||
*/
|
||||
private String printReceipt;
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue