xufenglei
2018-04-25 169dbfb17843ba9bf57edc9e687555ab0351e7a0
src/main/java/com/moral/service/impl/DeviceServiceImpl.java
@@ -268,6 +268,7 @@
            device.setMac(device.getMac().toLowerCase());
         }
         if(device.getId()==null){
            device.setState(Constants.DEVICE_STATE_OFFLINE);
            device.setIsDelete(Constants.IS_DELETE_FALSE);
            deviceMapper.insertSelective(device);
         }else{