霍林河露天煤矿生产一体化平台
1
13693261870
2023-04-07 853e68c5d4414acdb2ea98c27572c534184338a3
src/main/java/com/terra/coal/entity/Coal54Entity.java
@@ -47,6 +47,20 @@
    public Coal54Entity() {
    }
    public Coal54Entity(BigDecimal x, BigDecimal y, BigDecimal top, BigDecimal clong, BigDecimal width, BigDecimal height, String ctype, BigDecimal density, BigDecimal gangue) {
        this.top = top;
        this.clong = clong;
        this.width = width;
        this.height = height;
        this.ctype = ctype;
        this.density = density;
        this.gangue = gangue;
        this.bottom = top.add(height);
        this.volume = clong.multiply(width).multiply(height);
        this.geom = String.format("ST_GeomFromText('POINT (%f %f)')", x.doubleValue(), y.doubleValue());
    }
    public Integer getGid() {
        return gid;
    }