@Column
@Comment("创建时间")
@Prev(els = @EL("$me.getCreatetime()"))
@ColDefine(type = ColType.TIMESTAMP)
Date createtime;
public Date getCreatetime() {
Date date = new Date();
Timestamp timeStamp = new Timestamp(date.getTime());
return timeStamp;
}
注入了一个 createtime,结果查询出来的数据,所有的createtime 都是当前时间
{
id: 7,
appid: 0,
materialid: 0,
planname: "4555",
status: 0,
plancheck: 0,
createtime: "2017-05-05 15:49:57"
},
{
id: 13,
appid: 0,
materialid: 0,
planname: "qwdqwdw",
status: 0,
plancheck: 0,
createtime: "2017-05-05 15:49:57"
},
时间都一样