|  | @@ -65,15 +65,7 @@ public class SysUserCashAccountServiceImpl extends BaseServiceImpl<Integer, SysU
 | 
	
		
			
				|  |  |  			throw new BizException("用户[{}]现金账户不存在", userId);
 | 
	
		
			
				|  |  |  		}
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -		if (cashAccount.getStatus() != PlatformCashAccountStatusEnum.NORMAL) {
 | 
	
		
			
				|  |  | -			throw new BizException("账户不可用");
 | 
	
		
			
				|  |  | -		}
 | 
	
		
			
				|  |  | -		BigDecimal balance = cashAccount.getCourseBalance().add(decimal);
 | 
	
		
			
				|  |  | -		if (balance.doubleValue() < 0) {
 | 
	
		
			
				|  |  | -			throw new BizException("现金账户[{}]余额不足,可用余额剩{}元", userId, cashAccount.getCourseBalance().doubleValue());
 | 
	
		
			
				|  |  | -		}
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -		cashAccount.setCourseBalance(balance);
 | 
	
		
			
				|  |  | +		cashAccount.setCourseBalance(decimal);
 | 
	
		
			
				|  |  |  		cashAccount.setUpdateTime(new Date());
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  		sysUserCashAccountDao.update(cashAccount);
 |