Commit e3dc1784 authored by ma's avatar ma

解绑更新授权SN

parent 388cfef0
...@@ -119,6 +119,7 @@ public class DeviceServiceImpl extends ServiceImpl<DeviceMapper, Device> impleme ...@@ -119,6 +119,7 @@ public class DeviceServiceImpl extends ServiceImpl<DeviceMapper, Device> impleme
queryWrapper.eq(Device::getSnBind, snBind).last("limit 1"); queryWrapper.eq(Device::getSnBind, snBind).last("limit 1");
Device device = deviceMapper.selectOne(queryWrapper); Device device = deviceMapper.selectOne(queryWrapper);
if (device != null) { if (device != null) {
device.setSn(CommonUtil.genRandomNum(18));
device.setSnBind(null); device.setSnBind(null);
device.setStatus(0); device.setStatus(0);
device.setUpdateTime(new Date()); device.setUpdateTime(new Date());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment