Search in sources :

Example 1 with WebSideMessageDO

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);
}
Also used : WebSideMessageDO(com.orion.ops.entity.domain.WebSideMessageDO)

Example 2 with WebSideMessageDO

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);
}
Also used : WebSideMessageDO(com.orion.ops.entity.domain.WebSideMessageDO) LambdaQueryWrapper(com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper)

Aggregations

WebSideMessageDO (com.orion.ops.entity.domain.WebSideMessageDO)2 LambdaQueryWrapper (com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper)1