| 
					
				 | 
			
			
				@@ -1,6 +1,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 package com.qmrb.system.controller; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import cn.hutool.core.collection.CollectionUtil; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import cn.hutool.core.util.IdUtil; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import cn.hutool.core.util.StrUtil; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import cn.hutool.json.JSONUtil; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -105,8 +106,18 @@ public class OrderController extends CommonController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             @ParameterObject PayOrderQuery queryParams 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     ) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if(StrUtil.isNotBlank(queryParams.getUserId())){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            Page<PayOrderVO> result = orderService.getPageByUserId(queryParams); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            return PageResult.success(result); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            Page<PayOrderVO> pageResult = orderService.getPageByUserId(queryParams); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if(CollectionUtil.isNotEmpty(pageResult.getRecords())){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                List<PayOrderVO> list = pageResult.getRecords().stream().map(item -> { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    Integer amountsPayable = item.getAmountsPayable(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    if (amountsPayable != null) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        item.setAmountActuallyPaid(new BigDecimal(amountsPayable).divide(new BigDecimal(100))); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    return item; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                }).collect(Collectors.toList()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                pageResult.setRecords(list); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            return PageResult.success(pageResult); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				          
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         return PageResult.success(null); 
			 |