From c4e7a59d3266c09f59405faface88f71a8da9a11 Mon Sep 17 00:00:00 2001
From: yujian <yujian>
Date: 星期一, 15 四月 2019 14:47:45 +0800
Subject: [PATCH] 用户订单申诉-改为系统自动处理 + 次数限制

---
 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