|  | @@ -31,6 +31,7 @@ import org.springframework.beans.factory.annotation.Autowired;
 | 
	
		
			
				|  |  |  import org.springframework.context.annotation.Lazy;
 | 
	
		
			
				|  |  |  import org.springframework.stereotype.Service;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +import java.math.BigDecimal;
 | 
	
		
			
				|  |  |  import java.util.*;
 | 
	
		
			
				|  |  |  import java.util.stream.Collectors;
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -285,8 +286,12 @@ public class StudentPaymentOrderServiceImpl extends BaseServiceImpl<Long, Studen
 | 
	
		
			
				|  |  |          List<StudentPaymentOrder> dataList = new ArrayList<>();
 | 
	
		
			
				|  |  |          int count = this.findCount(params);
 | 
	
		
			
				|  |  |          StudentPaymentOrder orderMoneyAmount = studentPaymentOrderDao.getOrderMoneyAmount(params);
 | 
	
		
			
				|  |  | -        pageInfo.setTotalExpectAmount(orderMoneyAmount.getExpectAmount());
 | 
	
		
			
				|  |  | -        pageInfo.setTotalActualAmount(orderMoneyAmount.getActualAmount());
 | 
	
		
			
				|  |  | +        if(orderMoneyAmount != null){
 | 
	
		
			
				|  |  | +            BigDecimal totalExpectAmount = orderMoneyAmount.getExpectAmount() !=null? orderMoneyAmount.getExpectAmount():BigDecimal.ZERO;
 | 
	
		
			
				|  |  | +            BigDecimal totalActualAmount = orderMoneyAmount.getActualAmount() !=null? orderMoneyAmount.getActualAmount():BigDecimal.ZERO;
 | 
	
		
			
				|  |  | +            pageInfo.setTotalExpectAmount(totalExpectAmount);
 | 
	
		
			
				|  |  | +            pageInfo.setTotalActualAmount(totalActualAmount);
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  |          if (count > 0) {
 | 
	
		
			
				|  |  |              pageInfo.setTotal(count);
 | 
	
		
			
				|  |  |              params.put("offset", pageInfo.getOffset());
 |