|
@@ -91,7 +91,7 @@ public class DeviceController {
|
|
if(service.existDevice(device.getDeviceCode(),null)) {
|
|
if(service.existDevice(device.getDeviceCode(),null)) {
|
|
return RespVOBuilder.error("该设备编码已存在,勿重复添加");
|
|
return RespVOBuilder.error("该设备编码已存在,勿重复添加");
|
|
}
|
|
}
|
|
- device.setModifyBy(token.getTokenId());
|
|
|
|
|
|
+ device.setModifyBy(token.getUsName());
|
|
return RespVOBuilder.ok(service.add(device));
|
|
return RespVOBuilder.ok(service.add(device));
|
|
|
|
|
|
}
|
|
}
|
|
@@ -108,7 +108,7 @@ public class DeviceController {
|
|
if(service.existDevice(device.getDeviceCode(), device.getDeviceId())) {
|
|
if(service.existDevice(device.getDeviceCode(), device.getDeviceId())) {
|
|
return RespVOBuilder.error("该设备编码已存在,勿重复添加");
|
|
return RespVOBuilder.error("该设备编码已存在,勿重复添加");
|
|
}
|
|
}
|
|
- device.setModifyBy(token.getTokenId());
|
|
|
|
|
|
+ device.setModifyBy(token.getUsName());
|
|
service.update(device);
|
|
service.update(device);
|
|
|
|
|
|
return RespVOBuilder.ok();
|
|
return RespVOBuilder.ok();
|