|
@@ -176,6 +176,18 @@ public class EgDeviceServiceImpl extends AbstractCrudService<EgDeviceMapper, EgD
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public void attachUpdate(EgDevice egDevice){
|
|
|
+ if(checkNameUnique(egDevice)){
|
|
|
+ throw new BusinessException("更新门禁设备附加功能'"+egDevice.getDeviceId()+"'失败,设备已存在");
|
|
|
+ }
|
|
|
+
|
|
|
+ egDevice.setUpdateBy(SecurityUtils.getUsername());
|
|
|
+ egDevice.setUpdateTime(LocalDateTime.now());
|
|
|
+
|
|
|
+ this.updateById(egDevice);
|
|
|
+ }
|
|
|
+
|
|
|
@Override
|
|
|
public void remove(Integer id){
|
|
|
EgDevice egDevice = this.getById(id);
|