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