From c6124d86ac68ea3774df70e531f687c37af7f13a Mon Sep 17 00:00:00 2001 From: "453530270@qq.com" Date: Tue, 12 Mar 2024 17:44:09 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/bc/mm/mis/core/bean/DataCdp.java | 277 ++++++++++++++++++ .../java/bc/mm/mis/v1/HomeController.java | 2 +- 2 files changed, 278 insertions(+), 1 deletion(-) create mode 100644 mis-service/main/java/bc/mm/mis/core/bean/DataCdp.java diff --git a/mis-service/main/java/bc/mm/mis/core/bean/DataCdp.java b/mis-service/main/java/bc/mm/mis/core/bean/DataCdp.java new file mode 100644 index 0000000..54ab26e --- /dev/null +++ b/mis-service/main/java/bc/mm/mis/core/bean/DataCdp.java @@ -0,0 +1,277 @@ +package bc.mm.mis.core.bean; + +import javax.persistence.*; +import java.util.Date; + +@Entity +@Table(name = "data_ddp") +public class DataCdp { + @Id + @GeneratedValue(strategy = GenerationType.IDENTITY) + private Integer id; + private Integer pid; + private String Symbol; + private Long Date; + private java.util.Date datetime; + private String Name; + private Double Open; + private Double High; + private Double Low; + private Double Close; + private Double LastClose; + private Double Price2; + private Double Price3; + @Column(name = "Open_Int") + private Double OpenInt; + private Double Volume; + private Double Amount; + @Column(name = "is_1min") + private Integer is1min; + @Column(name = "is_5min") + private Integer is5min; + @Column(name = "is_15min") + private Integer is15min; + @Column(name = "is_30min") + private Integer is30min; + @Column(name = "is_1h") + private Integer is1h; + @Column(name = "is_2h") + private Integer is2h; + @Column(name = "is_4h") + private Integer is4h; + + @Column(name = "is_6h") + private Integer is6h; + @Column(name = "is_12h") + private Integer is12h; + @Column(name = "is_day") + private Integer isDay; + @Column(name = "is_week") + private Integer isWeek; + @Column(name = "is_month") + private Integer isMonth; + + public Integer getId() { + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public Integer getPid() { + return pid; + } + + public void setPid(Integer pid) { + this.pid = pid; + } + + public String getSymbol() { + return Symbol; + } + + public void setSymbol(String symbol) { + Symbol = symbol; + } + + public Long getDate() { + return Date; + } + + public void setDate(Long date) { + Date = date; + } + + public java.util.Date getDatetime() { + return datetime; + } + + public void setDatetime(java.util.Date datetime) { + this.datetime = datetime; + } + + public String getName() { + return Name; + } + + public void setName(String name) { + Name = name; + } + + public Double getOpen() { + return Open; + } + + public void setOpen(Double open) { + Open = open; + } + + public Double getHigh() { + return High; + } + + public void setHigh(Double high) { + High = high; + } + + public Double getLow() { + return Low; + } + + public void setLow(Double low) { + Low = low; + } + + public Double getClose() { + return Close; + } + + public void setClose(Double close) { + Close = close; + } + + public Double getLastClose() { + return LastClose; + } + + public void setLastClose(Double lastClose) { + LastClose = lastClose; + } + + public Double getPrice2() { + return Price2; + } + + public void setPrice2(Double price2) { + Price2 = price2; + } + + public Double getPrice3() { + return Price3; + } + + public void setPrice3(Double price3) { + Price3 = price3; + } + + public Double getOpenInt() { + return OpenInt; + } + + public void setOpenInt(Double openInt) { + OpenInt = openInt; + } + + public Double getVolume() { + return Volume; + } + + public void setVolume(Double volume) { + Volume = volume; + } + + public Double getAmount() { + return Amount; + } + + public void setAmount(Double amount) { + Amount = amount; + } + + public Integer getIs1min() { + return is1min; + } + + public void setIs1min(Integer is1min) { + this.is1min = is1min; + } + + public Integer getIs5min() { + return is5min; + } + + public void setIs5min(Integer is5min) { + this.is5min = is5min; + } + + public Integer getIs15min() { + return is15min; + } + + public void setIs15min(Integer is15min) { + this.is15min = is15min; + } + + public Integer getIs30min() { + return is30min; + } + + public void setIs30min(Integer is30min) { + this.is30min = is30min; + } + + public Integer getIs1h() { + return is1h; + } + + public void setIs1h(Integer is1h) { + this.is1h = is1h; + } + + public Integer getIs2h() { + return is2h; + } + + public void setIs2h(Integer is2h) { + this.is2h = is2h; + } + + public Integer getIs4h() { + return is4h; + } + + public void setIs4h(Integer is4h) { + this.is4h = is4h; + } + + public Integer getIs6h() { + return is6h; + } + + public void setIs6h(Integer is6h) { + this.is6h = is6h; + } + + public Integer getIs12h() { + return is12h; + } + + public void setIs12h(Integer is12h) { + this.is12h = is12h; + } + + public Integer getIsDay() { + return isDay; + } + + public void setIsDay(Integer isDay) { + this.isDay = isDay; + } + + public Integer getIsWeek() { + return isWeek; + } + + public void setIsWeek(Integer isWeek) { + this.isWeek = isWeek; + } + + public Integer getIsMonth() { + return isMonth; + } + + public void setIsMonth(Integer isMonth) { + this.isMonth = isMonth; + } +} diff --git a/mis-web/src/main/java/bc/mm/mis/v1/HomeController.java b/mis-web/src/main/java/bc/mm/mis/v1/HomeController.java index a813dad..9c9dbc1 100644 --- a/mis-web/src/main/java/bc/mm/mis/v1/HomeController.java +++ b/mis-web/src/main/java/bc/mm/mis/v1/HomeController.java @@ -49,7 +49,7 @@ public class HomeController { @RequestMapping("/dotest") public String dotest(){ - UsTimeUtils.getUsDateTime(); +// UsTimeUtils.getUsDateTime(); return "go to see console output"; } }