|
@@ -185,10 +185,8 @@ public class ManageServiceImpl implements ManageService {
|
|
for (Manage manage: totalManages) {
|
|
for (Manage manage: totalManages) {
|
|
if (Objects.equals(manage.getType(), ManageTypeEnum.COST)){
|
|
if (Objects.equals(manage.getType(), ManageTypeEnum.COST)){
|
|
sum = sum.subtract(new BigDecimal(Double.toString(manage.getAmount())));
|
|
sum = sum.subtract(new BigDecimal(Double.toString(manage.getAmount())));
|
|
- System.out.println(sum);
|
|
|
|
}else {
|
|
}else {
|
|
sum = sum.add(new BigDecimal(Double.toString(manage.getAmount())));
|
|
sum = sum.add(new BigDecimal(Double.toString(manage.getAmount())));
|
|
- System.out.println(sum);
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if(Objects.isNull(manages)){
|
|
if(Objects.isNull(manages)){
|