|
@@ -35,7 +35,7 @@ import java.util.*;
|
|
|
public class IndexService extends SocketToolService{
|
|
|
@Autowired
|
|
|
private InitialRunner initialRunner;
|
|
|
- private static int decimal_digit = 2;
|
|
|
+ private static int decimal_digit = 1;
|
|
|
IEdosUtil mongodb = new EdosUtil();
|
|
|
@Resource
|
|
|
private WindpowerinfodayService windpowerinfodayService;
|
|
@@ -74,7 +74,7 @@ public class IndexService extends SocketToolService{
|
|
|
|
|
|
try {
|
|
|
//安全天数
|
|
|
- PointData aqts_real = mongodb.getRealData(stationPointmap.get(0).get(Constant.TPOINT_AQTS).getCode());
|
|
|
+ PointData aqts_real = mongodb.getRealData(stationPointmap.get("0").get(Constant.TPOINT_AQTS).getCode());
|
|
|
aqts = new BigDecimal(aqts_real.getPointValueInDouble()).setScale(decimal_digit, RoundingMode.HALF_EVEN).doubleValue();
|
|
|
pointDataMap.put("aqts_real",aqts_real);
|
|
|
}catch (Exception e){
|