Commit 1964c25f authored by ma's avatar ma

解绑更新授权SN

parent b94e7e4d
......@@ -119,6 +119,7 @@ public class DeviceServiceImpl extends ServiceImpl<DeviceMapper, Device> impleme
queryWrapper.eq(Device::getSnBind, snBind).last("limit 1");
Device device = deviceMapper.selectOne(queryWrapper);
if (device != null) {
device.setSn(CommonUtil.genRandomNum(18));
device.setSnBind(null);
device.setStatus(0);
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