主子表示例添加日期格式案例

This commit is contained in:
RuoYi
2020-08-11 17:34:10 +08:00
parent cdbf0e2264
commit a0ada99856
3 changed files with 39 additions and 1 deletions

View File

@@ -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();
}