From 2c217c4f9e01bd2e764c7b62da1aaa89018d76d8 Mon Sep 17 00:00:00 2001
From: yujian <yujian>
Date: 星期一, 22 四月 2019 12:19:21 +0800
Subject: [PATCH] Merge branch 'div'

---
 fanli/src/main/java/com/yeshi/fanli/service/impl/user/UserMoneyServiceImpl.java |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/fanli/src/main/java/com/yeshi/fanli/service/impl/user/UserMoneyServiceImpl.java b/fanli/src/main/java/com/yeshi/fanli/service/impl/user/UserMoneyServiceImpl.java
index 3bcff14..027c612 100644
--- a/fanli/src/main/java/com/yeshi/fanli/service/impl/user/UserMoneyServiceImpl.java
+++ b/fanli/src/main/java/com/yeshi/fanli/service/impl/user/UserMoneyServiceImpl.java
@@ -17,17 +17,21 @@
 
 	@Override
 	public BigDecimal getMoneyToday(Long uid) {
-		return shareMapper.getMoneyToday(uid + "");
+		BigDecimal money = shareMapper.getMoneyToday(uid + "");
+		return money == null ? new BigDecimal(0) : money;
 	}
 
 	@Override
 	public BigDecimal getMoneyMonth(Long uid) {
-		return shareMapper.getMoneyMonth(uid + "");
+		BigDecimal money = shareMapper.getMoneyMonth(uid + "");
+		return money == null ? new BigDecimal(0) : money;
 	}
 
 	@Override
 	public BigDecimal getMoneyLastMonth(Long uid) {
-		return shareMapper.getMoneyLastMonth(uid + "");
+		BigDecimal money = shareMapper.getMoneyLastMonth(uid + "");
+
+		return money == null ? new BigDecimal(0) : money;
 	}
 
 }

--
Gitblit v1.8.0