yujian
2019-05-14 b1f7380b94ff1189759ed14b563fed6534f73ab0
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);
      }
   }