|
@@ -47,6 +47,8 @@ public class ApiLandController extends BaseComponent {
|
|
|
((List<Land>)result.data()).stream().forEach(land -> {
|
|
|
land.setCropTypeName(CropAreaStat.castName(land.getCrop_type()));
|
|
|
land.setParcelTypeName(LandAreaStat.castName(land.getParcelType()));
|
|
|
+ //计算总产量
|
|
|
+ land.setZongChan(land.getDanChan() * land.getArea());
|
|
|
land.setGeojson(GeoCastUtil.gjson.toString(land.getGeom()));
|
|
|
});
|
|
|
return result;
|