| | |
| | | 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); |
| | | } |
| | |
| | | OtcMsgUserListEntity from = new OtcMsgUserListEntity(); |
| | | from.setMemberId(toId); |
| | | from.setTargetId(fromId); |
| | | from.setIsRead(OtcMsgUserListEntity.ISREAD_ONE); |
| | | from.setIsRead(OtcMsgUserListEntity.ISREAD_TWO); |
| | | from.setLastMsgTime(new Date()); |
| | | otcMsgUserListDao.insert(from); |
| | | } else { |
| | |
| | | toList.setLastMsgTime(new Date()); |
| | | otcMsgUserListDao.updateById(toList); |
| | | } else { |
| | | toList.setIsRead(OtcMsgUserListEntity.ISREAD_TWO); |
| | | toList.setIsRead(OtcMsgUserListEntity.ISREAD_ONE); |
| | | toList.setLastMsgTime(new Date()); |
| | | otcMsgUserListDao.updateById(toList); |
| | | } |