Quellcode durchsuchen

可视化

Signed-off-by: tangsong <86121657@qq.com>
tangsong vor 4 Monaten
Ursprung
Commit
f2b5033bd2

+ 2 - 1
unis-plugin/unis-plugin-biz/src/main/java/com/unis/visualization/modular/grainOilReserve/entity/VO/DeportStockChart.java

@@ -37,6 +37,7 @@ public class DeportStockChart {
37 37
     @ApiModelProperty(value = "库存数量(数字,单位万吨)", position = 6)
38 38
     private Double kcsl;
39 39
 
40
-
40
+    @ApiModelProperty(value = "性质", position = 7)
41
+    private String hwxz ;
41 42
 
42 43
 }

+ 4 - 2
unis-plugin/unis-plugin-biz/src/main/java/com/unis/visualization/modular/grainOilReserve/mapper/mapping/GrainOilReserveMapper.xml

@@ -189,10 +189,12 @@ ORDER  by pz
189 189
                 a.org_name,
190 190
                 a.longitude,
191 191
                 a.latitude,
192
-                ROUND(IFNULL(SUM(kcsl),0.0)/1000/10000,2) as kcsl
192
+                ROUND(IFNULL(SUM(kcsl),0.0)/1000/10000,2) as kcsl,
193
+                GROUP_CONCAT(DISTINCT b.hwxz) as hwxz
193 194
                 FROM
194 195
                 depot_qh.org_info a
195
-                LEFT JOIN depot_qh.data_kcgl_kcsw_default b on a.org_id = b.UnitID
196
+                LEFT JOIN depot_qh.data_kcgl_kcsw_default b on a.org_id = b.UnitID and b.hwxz in (6877,6878,6879)
197
+                /*  只要省储,市储,县储*/
196 198
                 where a.org_id != '9'
197 199
                 GROUP BY a.org_id
198 200
                 ORDER BY a.org_id