use of com.orion.ops.entity.domain.WebSideMessageDO in project orion-ops by lijiahangmax.
the class WebSideMessageServiceImpl method getMessageDetail.
@Override
public WebSideMessageVO getMessageDetail(Long id) {
WebSideMessageDO message = webSideMessageDAO.selectById(id);
Valid.notNull(message, MessageConst.UNKNOWN_DATA);
return Converts.to(message, WebSideMessageVO.class);
}
use of com.orion.ops.entity.domain.WebSideMessageDO in project orion-ops by lijiahangmax.
the class WebSideMessageServiceImpl method setAllRead.
@Override
public Integer setAllRead() {
WebSideMessageDO update = new WebSideMessageDO();
update.setReadStatus(ReadStatus.READ.getStatus());
LambdaQueryWrapper<WebSideMessageDO> wrapper = new LambdaQueryWrapper<WebSideMessageDO>().eq(WebSideMessageDO::getToUserId, Currents.getUserId()).eq(WebSideMessageDO::getReadStatus, ReadStatus.UNREAD.getStatus());
return webSideMessageDAO.update(update, wrapper);
}
Aggregations