店铺管理-店铺配置:打印机设置相关接口
This commit is contained in:
@@ -0,0 +1,67 @@
|
||||
package cn.ysk.cashier.dto.shop;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 店铺打印机配置
|
||||
*
|
||||
* @author tankaikai
|
||||
* @since 2024-09-24 17:13
|
||||
*/
|
||||
@Data
|
||||
public class ShopPrinterDTO implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
private Integer id;
|
||||
|
||||
private String name;
|
||||
|
||||
private String type;
|
||||
|
||||
private String connectionType;
|
||||
|
||||
private String address;
|
||||
|
||||
private String port;
|
||||
|
||||
private String subType;
|
||||
|
||||
private Integer status;
|
||||
|
||||
private String shopId;
|
||||
|
||||
private String categoryIds;
|
||||
|
||||
private String contentType;
|
||||
|
||||
private String createdAt;
|
||||
|
||||
private String updatedAt;
|
||||
|
||||
private Integer sort;
|
||||
|
||||
private String vendorId;
|
||||
|
||||
private String productId;
|
||||
private String config;
|
||||
|
||||
public String getCreatedAt() {
|
||||
if("".equals(createdAt) || createdAt == null){
|
||||
return "";
|
||||
}
|
||||
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
||||
return sdf.format(new Date(Long.valueOf(createdAt)));
|
||||
}
|
||||
|
||||
public String getUpdatedAt() {
|
||||
if("".equals(updatedAt) || updatedAt == null){
|
||||
return "";
|
||||
}
|
||||
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
||||
return sdf.format(new Date(Long.valueOf(updatedAt)));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user