📄 product.java
字号:
package org.whatisjava.dang.domain;import java.text.SimpleDateFormat;import java.util.Date;import java.util.TimeZone;public class Product implements java.io.Serializable{ private static final long serialVersionUID = -1364023314193158258L; private Integer id; private Integer category_id; private String product_name; private String description; private long add_time; private double fixed_price; private double dang_price; private String keywords; private boolean has_deleted; private String product_pic; public Product(Integer id, String product_name, double fixed_price, double dang_price, boolean has_deleted, String product_pic) { super(); this.id = id; this.product_name = product_name; this.fixed_price = fixed_price; this.dang_price = dang_price; this.has_deleted = has_deleted; this.product_pic = product_pic; } public Product() { } private static final SimpleDateFormat format; static{ format=new SimpleDateFormat("yyyy年MM月dd日"); format.setTimeZone(TimeZone.getTimeZone("UTC")); } public String getAdd_date(){ Date date =new Date(add_time); return format.format(date); } public long getAdd_time() { return add_time; } public void setAdd_time(long add_time) { this.add_time = add_time; } public double getDang_price() { return dang_price; } public void setDang_price(double dang_price) { this.dang_price = dang_price; } public String getDescription() { return description; } public void setDescription(String description) { this.description = description; } public double getFixed_price() { return fixed_price; } public void setFixed_price(double fixed_price) { this.fixed_price = fixed_price; } public boolean isHas_deleted() { return has_deleted; } public void setHas_deleted(boolean has_deleted) { this.has_deleted = has_deleted; } public Integer getId() { return id; } public void setId(Integer id) { this.id = id; } public String getKeywords() { return keywords; } public void setKeywords(String keywords) { this.keywords = keywords; } public String getProduct_name() { return product_name; } public void setProduct_name(String product_name) { this.product_name = product_name; } public String getProduct_pic() { return product_pic; } public void setProduct_pic(String product_pic) { this.product_pic = product_pic; } public Integer getCategory_id() { return category_id; } public void setCategory_id(Integer category_id) { this.category_id = category_id; } public String toString(){ return product_name; }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -