|
@@ -57,7 +57,8 @@ public class SecSupplyService {
|
|
|
AmountDayThirtyDto amountDayThirtyDto = new AmountDayThirtyDto();
|
|
|
if (maps.containsKey(df.format(d).toString())) {
|
|
|
amountDayThirtyDto.setAmountTime(d);
|
|
|
- amountDayThirtyDto.setAmount((double)Math.round(maps.get(df.format(d))*1000)/1000);
|
|
|
+ if (maps.get(df.format(d)) != null)
|
|
|
+ amountDayThirtyDto.setAmount((double) Math.round(maps.get(df.format(d)) * 1000) / 1000);
|
|
|
} else {
|
|
|
amountDayThirtyDto.setAmountTime(d);
|
|
|
amountDayThirtyDto.setAmount(0d);
|