src/main/java/org/edgegallery/appstore/infrastructure/persistence/message/MessageRepository.java
public void updateMessageReaded(String messageId) {
        MessagePo messagePo = messageMapper.getOneMessage(messageId);
        if (messagePo == null) {
            LOGGER.error(MESSAGE_NOT_EXISTED, messageId);
            throw new EntityNotFoundException(String.format(MESSAGE_NOT_EXISTED_FORMAT, messageId),
                ResponseConst.RET_MESSAGE_NOT_FOUND);
        }
        messagePo.setReaded(true);
        messageMapper.update(messagePo);
    }
/**
     * update message to readed.
     *
     * @param messageId id
     */
update message to readed.
@param messageId id
update message to readed . @param messageId id
public void updateMessageReaded(String messageId) {
        MessagePo messagePo = messageMapper.getOneMessage(messageId);
        if (messagePo == null) {
            LOGGER.error(MESSAGE_NOT_EXISTED, messageId);
            throw new EntityNotFoundException(String.format(MESSAGE_NOT_EXISTED_FORMAT, messageId),
                ResponseConst.RET_MESSAGE_NOT_FOUND);
        }
        messagePo.setReaded(true);
        messageMapper.update(messagePo);
    }
public void updateMessageReaded ( String messageId ) { MessagePo messagePo = messageMapper . getOneMessage ( messageId ) ; if ( messagePo == null ) { LOGGER . error ( MESSAGE_NOT_EXISTED , messageId ) ; throw new EntityNotFoundException ( String . format ( MESSAGE_NOT_EXISTED_FORMAT , messageId ) , ResponseConst . RET_MESSAGE_NOT_FOUND ) ; } messagePo . setReaded ( true ) ; messageMapper . update ( messagePo ) ; }
update message to readed.
update message to readed .