Updated null to 0
This commit is contained in:
@@ -510,8 +510,8 @@ public class DashboardDao {
|
|||||||
stats.put(GepafinConstant.REQUESTED_VS_APPROVED_AMOUNTS, requestedVsApprovedAmounts.stream().map(result -> {
|
stats.put(GepafinConstant.REQUESTED_VS_APPROVED_AMOUNTS, requestedVsApprovedAmounts.stream().map(result -> {
|
||||||
Map<String, Object> data = new HashMap<>();
|
Map<String, Object> data = new HashMap<>();
|
||||||
data.put(GepafinConstant.MONTH, result[0]);
|
data.put(GepafinConstant.MONTH, result[0]);
|
||||||
data.put(GepafinConstant.TOTAL_REQUESTED, result[1]);
|
data.put(GepafinConstant.TOTAL_REQUESTED, result[1]!= null ? result[1] : 0L);
|
||||||
data.put(GepafinConstant.TOTAL_APPROVED, result[2]);
|
data.put(GepafinConstant.TOTAL_APPROVED, result[2] != null ? result[2] : 0L);
|
||||||
return data;
|
return data;
|
||||||
}).toList());
|
}).toList());
|
||||||
return stats;
|
return stats;
|
||||||
|
|||||||
Reference in New Issue
Block a user