From 3ec572e2cb7adf7d33d2018b24c003d9ef18906a Mon Sep 17 00:00:00 2001
From: 无关风月 <443237572@qq.com>
Date: 星期二, 12 十一月 2024 13:32:51 +0800
Subject: [PATCH] 代码提交

---
 xinquan-modules/xinquan-user/src/main/java/com/xinquan/user/controller/client/ClientAppUserTreeController.java |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/xinquan-modules/xinquan-user/src/main/java/com/xinquan/user/controller/client/ClientAppUserTreeController.java b/xinquan-modules/xinquan-user/src/main/java/com/xinquan/user/controller/client/ClientAppUserTreeController.java
index 7d0f5c2..6f2f983 100644
--- a/xinquan-modules/xinquan-user/src/main/java/com/xinquan/user/controller/client/ClientAppUserTreeController.java
+++ b/xinquan-modules/xinquan-user/src/main/java/com/xinquan/user/controller/client/ClientAppUserTreeController.java
@@ -130,7 +130,10 @@
                     .between(AppUserViewingHistory::getCreateTime, startOfDay, endOfDay).list();
             int temp = 0;
             for (AppUserViewingHistory appUserViewingHistory : list) {
-                temp += appUserViewingHistory.getTimeLook();
+                if (appUserViewingHistory.getTimeLook()!=null){
+                    temp += appUserViewingHistory.getTimeLook();
+
+                }
             }
             AppUserTree one = appUserTreeService.lambdaQuery().eq(AppUserTree::getAppUserId, userId)
                     .eq(AppUserTree::getSowAgain, 2).one();
@@ -406,7 +409,7 @@
             noticeRecord.setReadStatus(1);
             noticeRecord.setNoticeType(1);
             noticeRecord.setTitle("树苗升级通知");
-            noticeRecord.setContent("恭喜,您的树苗已升至"+y+"级,"+"继续加油哦");
+            noticeRecord.setContent("恭喜,您的树苗已升至"+x+"级,"+"继续加油哦");
             noticeRecordService.save(noticeRecord);
         }
         return R.ok(wateringVO);
@@ -445,6 +448,7 @@
         Long userId = loginUser.getUserid();
         if(userId ==null || userId == 0)return R.tokenError("登录失效");
         AppUser byId = appUserService.getById(userId);
+        System.err.println("调用是否弹窗"+byId.getIsFirst());
         if (byId.getIsFirst() == 1){
             byId.setIsFirst(2);
             appUserService.updateById(byId);

--
Gitblit v1.7.1