TRX 1 éve
szülő
commit
19445b87c1

+ 10 - 1
FullCardServer/src/main/java/com/zhongshu/card/server/core/service/tip/TipInfoService.java

@@ -123,10 +123,19 @@ public class TipInfoService extends SuperService {
         return ResultContent.buildSuccess(toModel(entity));
     }
 
+    /**
+     * 标记当前用户所有份已读
+     *
+     * @return
+     */
     public ResultContent markCurrentAllRead() {
+        return markUserAllRead(getCurrentUserId());
+    }
+
+    private ResultContent markUserAllRead(String userId) {
         java.util.Map<String, Object> where = new java.util.HashMap<>();
         where.put("isRead", Boolean.FALSE);
-        where.put("toUserId", getCurrentUserId());
+        where.put("toUserId", userId);
 
         Map<String, Object> standardData = new HashMap<String, Object>();
         standardData.put("isRead", Boolean.TRUE);