update
This commit is contained in:
@@ -136,13 +136,13 @@ public class TransferDeviceService {
|
||||
if (device == null) {
|
||||
return AjaxResult.error("设备不存在");
|
||||
} else {
|
||||
Long tenantId = device.getTenantId();
|
||||
if (tenantId == -1) {
|
||||
return AjaxResult.error("设备未绑定");
|
||||
}
|
||||
if (!tenantId.equals(user.getUserId())) {
|
||||
return AjaxResult.error("无操作权限");
|
||||
}
|
||||
// Long tenantId = device.getTenantId();
|
||||
// if (tenantId == -1) {
|
||||
// return AjaxResult.error("设备未绑定");
|
||||
// }
|
||||
// if (!tenantId.equals(user.getUserId())) {
|
||||
// return AjaxResult.error("无操作权限");
|
||||
// }
|
||||
device.setDeviceAlias(bindDTO.getDeviceAlias());
|
||||
device.setUpdateTime(LocalDateTime.now());
|
||||
device.setCreateBy(user.getUsername());
|
||||
|
||||
Reference in New Issue
Block a user