1
dd
2026-01-16 e6a7d151f42b24dfcf42ac8ccb6f10e0d8717ec6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
package com.nq.vo.stock;
 
 
 
/**
 * 涨跌幅分别基础柱状单元
 */
public class ChartCellVO {
 
    private String xAxis;
    private String yAxis;
    //是否涨跌 -1跌 0平 1涨
    private Integer type;
 
    public ChartCellVO(String yAxis, String xAxis ) {
        this.xAxis = xAxis;
        this.yAxis = yAxis;
        String substring = xAxis.substring(xAxis.length() - 1, xAxis.length());
        if(substring.equals("涨")){
            type=1;
        }else if(substring.equals("平")){
            type=0;
        }else {
            type=-1;
        }
 
    }
 
    public String getxAxis() {
        return xAxis;
    }
 
    public void setxAxis(String xAxis) {
        this.xAxis = xAxis;
    }
 
    public String getyAxis() {
        return yAxis;
    }
 
    public void setyAxis(String yAxis) {
        this.yAxis = yAxis;
    }
 
    public Integer getType() {
        return type;
    }
 
    public void setType(Integer type) {
        this.type = type;
    }
}