Helius
2021-06-21 2c8306d7104747b18bcd8dff0208c30b942afceb
src/main/java/com/xcong/excoin/rabbit/consumer/ChatConsumer.java
@@ -24,7 +24,7 @@
@Slf4j
@Component
//@ConditionalOnProperty(prefix = "app", name = "rabbit-consumer", havingValue = "true")
@ConditionalOnProperty(prefix = "app", name = "websocket-job", havingValue = "true")
public class ChatConsumer {
    @Autowired
@@ -54,9 +54,12 @@
            OtcMsgUserListEntity from = new OtcMsgUserListEntity();
            from.setMemberId(fromId);
            from.setTargetId(toId);
            from.setIsRead(OtcMsgUserListEntity.ISREAD_ONE);
            from.setIsRead(OtcMsgUserListEntity.ISREAD_TWO);
            from.setLastMsgTime(new Date());
            otcMsgUserListDao.insert(from);
        } else {
            fromList.setLastMsgTime(new Date());
            otcMsgUserListDao.updateById(fromList);
        }
        // 收件人是否存在聊天框
@@ -65,7 +68,7 @@
            OtcMsgUserListEntity from = new OtcMsgUserListEntity();
            from.setMemberId(toId);
            from.setTargetId(fromId);
            from.setIsRead(OtcMsgUserListEntity.ISREAD_TWO);
            from.setIsRead(OtcMsgUserListEntity.ISREAD_ONE);
            from.setLastMsgTime(new Date());
            otcMsgUserListDao.insert(from);
        } else {