|
@@ -12,18 +12,18 @@ import java.io.Serializable;
|
|
|
@NoArgsConstructor
|
|
|
@Entity
|
|
|
@Table(name = "datastat_sort_strategy")
|
|
|
-@IdClass(DatastatSortStrategy.PK.class)
|
|
|
public class DatastatSortStrategy implements Serializable {
|
|
|
|
|
|
@Id
|
|
|
+ private Long id;
|
|
|
+ @Column(name = "date_str")
|
|
|
private String dateStr;
|
|
|
- @Id
|
|
|
+ @Column(name = "publish_time")
|
|
|
private String publishTime;
|
|
|
- @Id
|
|
|
+ @Column(name = "account_name")
|
|
|
private String accountName;
|
|
|
- @Id
|
|
|
+ @Column(name = "position")
|
|
|
private Integer position;
|
|
|
-
|
|
|
@Column(name = "type")
|
|
|
private String type;
|
|
|
@Column(name = "account_mode")
|
|
@@ -171,22 +171,4 @@ public class DatastatSortStrategy implements Serializable {
|
|
|
@Column(name = "source_id")
|
|
|
private String sourceId;
|
|
|
|
|
|
-
|
|
|
- @Data
|
|
|
- public static class PK implements Serializable {
|
|
|
-
|
|
|
- @Column(name = "date_str")
|
|
|
- private String dateStr;
|
|
|
- @Column(name = "publish_time")
|
|
|
- private String publishTime;
|
|
|
- @Column(name = "account_name")
|
|
|
- private String accountName;
|
|
|
- @Column(name = "position")
|
|
|
- private Integer position;
|
|
|
-
|
|
|
- public PK() {
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
- }
|
|
|
}
|