xushengqiang 4 éve
szülő
commit
8e55b3b1e5

+ 0 - 1
src/main/java/cn/efunbox/audio/controller/AudioController.java

@@ -286,7 +286,6 @@ public class AudioController {
         record.setIdDevice(device.getId());
         record.setIdChannel(device.getIdChannel());
         record.setIdAudio(id);
-        record.setCreated(new Timestamp(new Date().getTime()));
         recordService.Insert(record);
     }
 

+ 4 - 5
src/main/java/cn/efunbox/audio/entity/Record.java

@@ -1,15 +1,15 @@
 package cn.efunbox.audio.entity;
 
 
-import cn.efunbox.audio.consts.Status;
 import lombok.Data;
 import lombok.ToString;
 import org.hibernate.annotations.DynamicInsert;
 import org.hibernate.annotations.DynamicUpdate;
 
-import javax.persistence.*;
+import javax.persistence.Column;
+import javax.persistence.Entity;
+import javax.persistence.Id;
 import java.io.Serializable;
-import java.sql.Timestamp;
 import java.util.Date;
 
 /**
@@ -26,7 +26,6 @@ import java.util.Date;
 public class Record implements Serializable, Cloneable {
 
     @Id
-    @GeneratedValue
     private Long id;
 
     //渠道编号
@@ -47,7 +46,7 @@ public class Record implements Serializable, Cloneable {
     @Column
 //    @Temporal(TemporalType.TIMESTAMP)
 //    private Date created;
-    private Timestamp created;
+    private Date created;
 
     public Object clone() throws CloneNotSupportedException {
         return super.clone();