| 
														
															@@ -195,6 +195,8 @@ public class OrderController extends CommonController { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         orderService.save(new Order().setAmountsPayable(toCreatOrderVO.getTotal()) 
														 | 
														
														 | 
														
															         orderService.save(new Order().setAmountsPayable(toCreatOrderVO.getTotal()) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 .setPayDescription(toCreatOrderVO.getDescription()) 
														 | 
														
														 | 
														
															                 .setPayDescription(toCreatOrderVO.getDescription()) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                  .setId(id) 
														 | 
														
														 | 
														
															                  .setId(id) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                 .setGoodId(toCreatOrderVO.getGoodId()) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                 .setGoodsName(toCreatOrderVO.getDescription()) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                  .setPayStatus(SystemConstant.NUM_ZERO)); 
														 | 
														
														 | 
														
															                  .setPayStatus(SystemConstant.NUM_ZERO)); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         return process(() -> orderService.createOrder(toolWxConfigService.findConf(),toCreatOrderVO)); 
														 | 
														
														 | 
														
															         return process(() -> orderService.createOrder(toolWxConfigService.findConf(),toCreatOrderVO)); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     } 
														 | 
														
														 | 
														
															     } 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -250,17 +252,21 @@ public class OrderController extends CommonController { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         //todo 调用计费模块,计算是否有应付费用 
														 | 
														
														 | 
														
															         //todo 调用计费模块,计算是否有应付费用 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         BigDecimal bigDecimal = new BigDecimal(1); 
														 | 
														
														 | 
														
															         BigDecimal bigDecimal = new BigDecimal(1); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+         
														 | 
													
												
											
												
													
														| 
														 | 
														
															         BarnRecordForm formData = barnRecordService.chargingByBarnId(id); 
														 | 
														
														 | 
														
															         BarnRecordForm formData = barnRecordService.chargingByBarnId(id); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         if(formData != null && formData.getPendingAmount() != null && formData.getPendingAmount().compareTo(BigDecimal.ZERO) >0){ 
														 | 
														
														 | 
														
															         if(formData != null && formData.getPendingAmount() != null && formData.getPendingAmount().compareTo(BigDecimal.ZERO) >0){ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             ToCreateOrderVO toCreateOrderVO = new ToCreateOrderVO(); 
														 | 
														
														 | 
														
															             ToCreateOrderVO toCreateOrderVO = new ToCreateOrderVO(); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             toCreateOrderVO.setTotal(formData.getPendingAmount().multiply(new BigDecimal(100)).intValueExact()); 
														 | 
														
														 | 
														
															             toCreateOrderVO.setTotal(formData.getPendingAmount().multiply(new BigDecimal(100)).intValueExact()); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             toCreateOrderVO.setDescription("停车缴费"); 
														 | 
														
														 | 
														
															             toCreateOrderVO.setDescription("停车缴费"); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             toCreateOrderVO.setOpenId(openId); 
														 | 
														
														 | 
														
															             toCreateOrderVO.setOpenId(openId); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-             
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            Long orderId = IdUtil.getSnowflake().nextId(); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            toCreateOrderVO.setOutTradeNo(orderId.toString()); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             //订单入库 
														 | 
														
														 | 
														
															             //订单入库 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             orderService.save(new Order().setAmountsPayable(toCreateOrderVO.getTotal()) 
														 | 
														
														 | 
														
															             orderService.save(new Order().setAmountsPayable(toCreateOrderVO.getTotal()) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                     .setPayDescription(toCreateOrderVO.getDescription()) 
														 | 
														
														 | 
														
															                     .setPayDescription(toCreateOrderVO.getDescription()) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                    .setId(id) 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                    .setId(orderId) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                    .setGoodId(id) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                    .setGoodsName(toCreateOrderVO.getDescription()) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                     .setPayStatus(SystemConstant.NUM_ZERO)); 
														 | 
														
														 | 
														
															                     .setPayStatus(SystemConstant.NUM_ZERO)); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             return process(() -> orderService.createOrder(toolWxConfigService.findConf(),toCreateOrderVO)); 
														 | 
														
														 | 
														
															             return process(() -> orderService.createOrder(toolWxConfigService.findConf(),toCreateOrderVO)); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         }else if(formData != null && formData.getPendingAmount() != null && formData.getPendingAmount().compareTo(BigDecimal.ZERO) <= 0){ 
														 | 
														
														 | 
														
															         }else if(formData != null && formData.getPendingAmount() != null && formData.getPendingAmount().compareTo(BigDecimal.ZERO) <= 0){ 
														 |