|
@@ -2,6 +2,7 @@ package shop.alien.lawyer.service.impl;
|
|
|
|
|
|
|
|
import cn.hutool.core.collection.CollectionUtil;
|
|
import cn.hutool.core.collection.CollectionUtil;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
|
|
+import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
@@ -347,4 +348,12 @@ public class LawyerNoticeServiceImpl extends ServiceImpl<LifeNoticeMapper, LifeN
|
|
|
log.debug("LawyerNoticeServiceImpl.hasUnreadNotice, receiverId={}, hasUnread={}", receiverId, hasUnread);
|
|
log.debug("LawyerNoticeServiceImpl.hasUnreadNotice, receiverId={}, hasUnread={}", receiverId, hasUnread);
|
|
|
return R.data(hasUnread);
|
|
return R.data(hasUnread);
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ @Override
|
|
|
|
|
+ public int readNoticeById(Integer id) {
|
|
|
|
|
+ LambdaUpdateWrapper<LifeNotice> wrapper = new LambdaUpdateWrapper<>();
|
|
|
|
|
+ wrapper.eq(LifeNotice::getId, id);
|
|
|
|
|
+ wrapper.set(LifeNotice::getIsRead, 1);
|
|
|
|
|
+ return lifeNoticeMapper.update(null, wrapper);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|