PC端添加本地打印机
This commit is contained in:
@@ -0,0 +1,246 @@
|
||||
package com.chaozhanggui.system.cashierservice.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 打印机设备(TbPrintMachine)实体类
|
||||
*
|
||||
* @author ww
|
||||
* @since 2024-04-01 10:52:53
|
||||
*/
|
||||
public class TbPrintPCMachine implements Serializable {
|
||||
private static final long serialVersionUID = -45444134635096942L;
|
||||
|
||||
private Integer id;
|
||||
/**
|
||||
* 设备名称
|
||||
*/
|
||||
private String name;
|
||||
/**
|
||||
* printer
|
||||
*/
|
||||
private String type;
|
||||
/**
|
||||
* 现在打印机支持USB 和 网络、蓝牙
|
||||
*/
|
||||
private String connectionType;
|
||||
/**
|
||||
* ip地址
|
||||
*/
|
||||
private String address;
|
||||
/**
|
||||
* 端口
|
||||
*/
|
||||
private String port;
|
||||
/**
|
||||
* 打印类型(分类)label标签cash小票kitchen出品
|
||||
*/
|
||||
private String subType;
|
||||
/**
|
||||
* 状态 online
|
||||
*/
|
||||
private Integer status;
|
||||
/**
|
||||
* 店铺Id
|
||||
*/
|
||||
private String shopId;
|
||||
/**
|
||||
* 分类Id
|
||||
*/
|
||||
private String categoryIds;
|
||||
/**
|
||||
* 现在打印机支持USB 和 网络两种
|
||||
*/
|
||||
private String contentType;
|
||||
/**
|
||||
* 主配置
|
||||
*/
|
||||
private String config;
|
||||
|
||||
private Long createdAt;
|
||||
|
||||
private Long updatedAt;
|
||||
/**
|
||||
* 分类
|
||||
*/
|
||||
private String categoryList;
|
||||
/**
|
||||
* 排序
|
||||
*/
|
||||
private Integer sort;
|
||||
/**
|
||||
* Android打印机需要标识设备ID
|
||||
*/
|
||||
private String vendorId;
|
||||
/**
|
||||
* Android打印机需要标识设备ID
|
||||
*/
|
||||
private String productId;
|
||||
|
||||
private Integer pageSize;
|
||||
|
||||
private Integer page;
|
||||
|
||||
|
||||
public Integer getPageSize() {
|
||||
return pageSize;
|
||||
}
|
||||
|
||||
public void setPageSize(Integer pageSize) {
|
||||
this.pageSize = pageSize;
|
||||
}
|
||||
|
||||
public Integer getPage() {
|
||||
return page;
|
||||
}
|
||||
|
||||
public void setPage(Integer page) {
|
||||
this.page = page;
|
||||
}
|
||||
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
public void setType(String type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public String getConnectionType() {
|
||||
return connectionType;
|
||||
}
|
||||
|
||||
public void setConnectionType(String connectionType) {
|
||||
this.connectionType = connectionType;
|
||||
}
|
||||
|
||||
public String getAddress() {
|
||||
return address;
|
||||
}
|
||||
|
||||
public void setAddress(String address) {
|
||||
this.address = address;
|
||||
}
|
||||
|
||||
public String getPort() {
|
||||
return port;
|
||||
}
|
||||
|
||||
public void setPort(String port) {
|
||||
this.port = port;
|
||||
}
|
||||
|
||||
public String getSubType() {
|
||||
return subType;
|
||||
}
|
||||
|
||||
public void setSubType(String subType) {
|
||||
this.subType = subType;
|
||||
}
|
||||
|
||||
public Integer getStatus() {
|
||||
return status;
|
||||
}
|
||||
|
||||
public void setStatus(Integer status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public String getShopId() {
|
||||
return shopId;
|
||||
}
|
||||
|
||||
public void setShopId(String shopId) {
|
||||
this.shopId = shopId;
|
||||
}
|
||||
|
||||
public String getCategoryIds() {
|
||||
return categoryIds;
|
||||
}
|
||||
|
||||
public void setCategoryIds(String categoryIds) {
|
||||
this.categoryIds = categoryIds;
|
||||
}
|
||||
|
||||
public String getContentType() {
|
||||
return contentType;
|
||||
}
|
||||
|
||||
public void setContentType(String contentType) {
|
||||
this.contentType = contentType;
|
||||
}
|
||||
|
||||
public String getConfig() {
|
||||
return config;
|
||||
}
|
||||
|
||||
public void setConfig(String config) {
|
||||
this.config = config;
|
||||
}
|
||||
|
||||
public Long getCreatedAt() {
|
||||
return createdAt;
|
||||
}
|
||||
|
||||
public void setCreatedAt(Long createdAt) {
|
||||
this.createdAt = createdAt;
|
||||
}
|
||||
|
||||
public Long getUpdatedAt() {
|
||||
return updatedAt;
|
||||
}
|
||||
|
||||
public void setUpdatedAt(Long updatedAt) {
|
||||
this.updatedAt = updatedAt;
|
||||
}
|
||||
|
||||
public String getCategoryList() {
|
||||
return categoryList;
|
||||
}
|
||||
|
||||
public void setCategoryList(String categoryList) {
|
||||
this.categoryList = categoryList;
|
||||
}
|
||||
|
||||
public Integer getSort() {
|
||||
return sort;
|
||||
}
|
||||
|
||||
public void setSort(Integer sort) {
|
||||
this.sort = sort;
|
||||
}
|
||||
|
||||
public String getVendorId() {
|
||||
return vendorId;
|
||||
}
|
||||
|
||||
public void setVendorId(String vendorId) {
|
||||
this.vendorId = vendorId;
|
||||
}
|
||||
|
||||
public String getProductId() {
|
||||
return productId;
|
||||
}
|
||||
|
||||
public void setProductId(String productId) {
|
||||
this.productId = productId;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,29 @@
|
||||
package com.chaozhanggui.system.cashierservice.entity.dto;
|
||||
|
||||
import com.chaozhanggui.system.cashierservice.entity.TbShopCategory;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author 12847
|
||||
*/
|
||||
@Data
|
||||
public class PrintConfig {
|
||||
@NotNull(message = "设备尺寸不能为空")
|
||||
private String width;
|
||||
@NotNull(message = "打印份数不能为空")
|
||||
private String printerNum;
|
||||
|
||||
private List<TbShopCategory> categoryList;
|
||||
|
||||
private String model;
|
||||
@NotNull(message = "尾部留空需设置")
|
||||
private String feet;
|
||||
@NotNull(message = "自动切刀0开启1关闭")
|
||||
private String autoCut;
|
||||
private String deviceName;//选择设备
|
||||
//打印子订单 0开启1关闭
|
||||
private String printSub;
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
package com.chaozhanggui.system.cashierservice.entity.dto;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import javax.validation.constraints.NotNull;
|
||||
|
||||
@Data
|
||||
public class PrintMachineDto {
|
||||
private Integer id;
|
||||
|
||||
/** 设备名称 */
|
||||
private String name;
|
||||
|
||||
/** printer */
|
||||
private String type;
|
||||
|
||||
/** 现在打印机支持USB 和 网络、蓝牙 */
|
||||
private String connectionType;
|
||||
|
||||
/** ip地址 */
|
||||
private String address;
|
||||
|
||||
/** 端口 */
|
||||
private String port;
|
||||
|
||||
/** 打印类型(分类) */
|
||||
private String subType;
|
||||
|
||||
/** 状态 online */
|
||||
private Integer status;
|
||||
|
||||
/** 店铺Id */
|
||||
@NotNull(message = "店铺ID不能为空")
|
||||
private String shopId;
|
||||
|
||||
/** 现在打印机支持USB 和 网络两种 */
|
||||
private String contentType;
|
||||
|
||||
/** 主配置 */
|
||||
private PrintConfig config;
|
||||
|
||||
/** 排序 */
|
||||
private Integer sort;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user