| | |
| | | Pole update = new Pole(); |
| | | BeanUtils.copyProperties(param, update); |
| | | update.setId(poleId); |
| | | /** |
| | | * 修改灯杆日志记录开始 |
| | | */ |
| | | String content = "编辑灯杆:" + poleId; |
| | | StoreOperationRecordsUtils.storeOperationData(null, null, "编辑灯杆", content); |
| | | /** |
| | | * 修改灯杆日志记录结束 |
| | | */ |
| | | return updateById(update); |
| | | } |
| | | |
| | |
| | | } |
| | | // 删除灯杆绑定关系 |
| | | poleBindingService.remove(Wrappers.<PoleBinding>lambdaQuery().eq(PoleBinding::getPoleId, poleId)); |
| | | |
| | | /** |
| | | * 删除灯杆日志记录开始 |
| | | */ |
| | | String content = "{灯杆Code:" + pole.getDeviceCode() + ", 灯杆名称:" + pole.getPoleName() + " }"; |
| | | |
| | | StoreOperationRecordsUtils.storeOperationData(null, null, "删除灯杆", content); |
| | | /** |
| | | * 删除灯杆日志记录结束 |
| | | */ |
| | | return removeById(poleId); |
| | | } |
| | | |