2021与蓝度共同重构项目,服务端
liuhaonan
2022-07-22 74e253770f0c321ad47bb68e490e4a118f35fd35
ximon-admin/src/main/java/com/sandu/ximon/admin/service/PoleService.java
@@ -569,10 +569,10 @@
     */
    public boolean poleReset(Long id) {
        Pole byId = getById(id);
        String deviceName = byId.getDeviceCode();
        if (byId == null) {
            throw new BusinessException("未找到该灯杆");
        }
        String deviceName = byId.getDeviceCode();
        if (deviceName.isEmpty()) {
            throw new BusinessException("该灯杆Mca为空");
        }
@@ -708,8 +708,8 @@
        /**
         * 实体灯杆注册日志记录开始
         */
//        String content = "{灯杆ID:" + pole.getId() + ",灯杆编号:" + pole.getPoleCode() + ",灯杆名称:" + pole.getPoleName() + ",灯杆类型:" + pole.getDeviceType() + ",灯杆MAC:" + pole.getDeviceCode() + " }";
//        StoreOperationRecordsUtils.storeOperationData(null, null, "实体灯杆注册", content);
        String content = "{灯杆ID:" + pole.getId() + ",灯杆编号:" + pole.getPoleCode() + ",灯杆名称:" + pole.getPoleName() + ",灯杆类型:" + pole.getDeviceType() + ",灯杆MAC:" + pole.getDeviceCode() + " }";
        StoreOperationRecordsUtils.storeOperationData(null, null, "实体灯杆注册", content);
        /**
         * 实体灯杆注册日志记录结束
         */