Selaa lähdekoodia

1.获取高线数据

zym 2 vuotta sitten
vanhempi
commit
3ee57162b9

+ 89 - 0
src/main/java/com/steerinfo/feigen/model/XgWeight.java

@@ -0,0 +1,89 @@
+package com.steerinfo.feigen.model;
+
+import io.swagger.annotations.ApiModelProperty;
+
+import java.math.BigDecimal;
+
+public class XgWeight {
+
+    @ApiModelProperty(value="主键ID",required=true)
+    private String id;
+    public String getId() {
+        return id;
+    }
+    public void setId(String id) {
+        this.id = id == null ? null : id.trim();
+    }
+    private String type;
+    private BigDecimal weight;
+    private String prodate;
+    private String materialcode;
+    private String unit;
+    private String materialname;
+    private String fid;
+    private String roundid;
+
+    public String getRoundid() {
+        return roundid;
+    }
+
+    public void setRoundid(String roundid) {
+        this.roundid = roundid;
+    }
+
+    public String getFid() {
+        return fid;
+    }
+
+    public void setFid(String fid) {
+        this.fid = fid;
+    }
+
+    public String getMaterialcode() {
+        return materialcode;
+    }
+
+    public void setMaterialcode(String materialcode) {
+        this.materialcode = materialcode;
+    }
+
+    public String getUnit() {
+        return unit;
+    }
+
+    public void setUnit(String unit) {
+        this.unit = unit;
+    }
+
+    public String getMaterialname() {
+        return materialname;
+    }
+
+    public void setMaterialname(String materialname) {
+        this.materialname = materialname;
+    }
+
+    public String getType() {
+        return type;
+    }
+
+    public void setType(String type) {
+        this.type = type;
+    }
+
+    public BigDecimal getWeight() {
+        return weight;
+    }
+
+    public void setWeight(BigDecimal weight) {
+        this.weight = weight;
+    }
+
+    public String getProdate() {
+        return prodate;
+    }
+
+    public void setProdate(String prodate) {
+        this.prodate = prodate;
+    }
+}

+ 19 - 0
src/main/java/com/steerinfo/feigen/service/XgWeightFeigenService.java

@@ -0,0 +1,19 @@
+package com.steerinfo.feigen.service;
+
+
+import com.steerinfo.feigen.model.GxWeight;
+import com.steerinfo.feigen.model.XgWeight;
+import org.springframework.cloud.openfeign.FeignClient;
+import org.springframework.stereotype.Component;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.RequestParam;
+
+import java.util.List;
+
+@FeignClient("xt-ems-datasource")
+@Component
+public interface XgWeightFeigenService {
+
+    @GetMapping("v1/xGweight/QueryWeightforRound")
+    public List<XgWeight> QueryWeightforRound(@RequestParam("startTime")String startTime, @RequestParam("endTime")String endTime);
+}