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