|
@@ -1,5 +1,6 @@
|
|
|
package com.ruoyi.web.controller.demo.domain;
|
|
|
|
|
|
+import java.util.Date;
|
|
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
|
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
|
|
|
|
@@ -24,6 +25,11 @@ public class GoodsModel
|
|
|
* 商品价格
|
|
|
*/
|
|
|
private Double price;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 商品日期
|
|
|
+ */
|
|
|
+ private Date date;
|
|
|
|
|
|
/**
|
|
|
* 商品种类
|
|
@@ -60,6 +66,16 @@ public class GoodsModel
|
|
|
this.price = price;
|
|
|
}
|
|
|
|
|
|
+ public Date getDate()
|
|
|
+ {
|
|
|
+ return date;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setDate(Date date)
|
|
|
+ {
|
|
|
+ this.date = date;
|
|
|
+ }
|
|
|
+
|
|
|
public String getType()
|
|
|
{
|
|
|
return type;
|
|
@@ -76,6 +92,7 @@ public class GoodsModel
|
|
|
.append("name", getName())
|
|
|
.append("weight", getWeight())
|
|
|
.append("price", getPrice())
|
|
|
+ .append("date", getDate())
|
|
|
.append("type", getType())
|
|
|
.toString();
|
|
|
}
|