|
|
@@ -1,6 +1,9 @@
|
|
|
package com.uas.service.donate.model;
|
|
|
|
|
|
import javax.persistence.*;
|
|
|
+import java.io.Serializable;
|
|
|
+import java.text.ParseException;
|
|
|
+import java.text.SimpleDateFormat;
|
|
|
import java.util.Date;
|
|
|
|
|
|
/**
|
|
|
@@ -9,7 +12,11 @@ import java.util.Date;
|
|
|
*/
|
|
|
@Entity
|
|
|
@Table(name="alipay$order")
|
|
|
-public class AlipayOrder {
|
|
|
+public class AlipayOrder implements Serializable {
|
|
|
+
|
|
|
+ private static final long serialVersionUID = 1L;
|
|
|
+ private static final SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
|
|
+
|
|
|
@Id
|
|
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
|
|
@Column(name = "id")
|
|
|
@@ -144,8 +151,14 @@ public class AlipayOrder {
|
|
|
return notify_time;
|
|
|
}
|
|
|
|
|
|
- public void setNotify_time(Date notify_time) {
|
|
|
- this.notify_time = notify_time;
|
|
|
+ public void setNotify_time(String notify_time) {
|
|
|
+ Date date = null;
|
|
|
+ try {
|
|
|
+ date = sdf.parse(notify_time);
|
|
|
+ } catch (ParseException e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ }
|
|
|
+ this.notify_time = date;
|
|
|
}
|
|
|
|
|
|
public String getNotify_type() {
|