Commit b121a3ed authored by 马33's avatar 马33

修改解绑bug

parent 2f7f426c
...@@ -16,4 +16,6 @@ public interface DeviceMapper extends BaseMapper<Device> { ...@@ -16,4 +16,6 @@ public interface DeviceMapper extends BaseMapper<Device> {
List<DeviceVo> getDeviceList(String appName, String userName, String sn, Integer status); List<DeviceVo> getDeviceList(String appName, String userName, String sn, Integer status);
boolean addDevice(String sn, String appId); boolean addDevice(String sn, String appId);
int updateDeviceById(Device device);
} }
...@@ -118,7 +118,7 @@ public class DeviceServiceImpl extends ServiceImpl<DeviceMapper, Device> impleme ...@@ -118,7 +118,7 @@ public class DeviceServiceImpl extends ServiceImpl<DeviceMapper, Device> impleme
device.setSnBind(null); device.setSnBind(null);
device.setStatus(0); device.setStatus(0);
device.setUpdateTime(new Date()); device.setUpdateTime(new Date());
int res = deviceMapper.updateById(device); int res = deviceMapper.updateDeviceById(device);
return res > 0; return res > 0;
} }
return false; return false;
......
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