fanli/src/main/java/com/yeshi/fanli/service/impl/msg/MsgDeviceReadStateServiceImpl.java
@@ -26,6 +26,15 @@ update.setUnReadCount(0); update.setUpdateTime(new Date()); msgDeviceReadStateMapper.updateByPrimaryKeySelective(update); } else { state = new MsgDeviceReadState(); state.setCreateTime(new Date()); state.setDevice(device); state.setPlatform(platform); state.setReadTime(new Date()); state.setType(type); state.setUnReadCount(0); msgDeviceReadStateMapper.insertSelective(state); } }