diff --git a/jetlinks-manager/device-manager/src/main/java/org/jetlinks/community/device/service/LocalDeviceProductService.java b/jetlinks-manager/device-manager/src/main/java/org/jetlinks/community/device/service/LocalDeviceProductService.java index fbd25f2bb..d3b938281 100644 --- a/jetlinks-manager/device-manager/src/main/java/org/jetlinks/community/device/service/LocalDeviceProductService.java +++ b/jetlinks-manager/device-manager/src/main/java/org/jetlinks/community/device/service/LocalDeviceProductService.java @@ -3,6 +3,7 @@ import lombok.extern.slf4j.Slf4j; import org.hswebframework.ezorm.rdb.mapping.ReactiveRepository; import org.hswebframework.web.bean.FastBeanCopier; +import org.hswebframework.web.crud.events.EntityEventHelper; import org.hswebframework.web.crud.service.GenericReactiveCrudService; import org.hswebframework.web.exception.BusinessException; import org.jetlinks.community.device.entity.DeviceInstanceEntity; @@ -43,6 +44,7 @@ public Mono deploy(String id) { .set(DeviceProductEntity::getState, DeviceProductState.registered.getValue()) .where(DeviceProductEntity::getId, id) .execute() + .as(EntityEventHelper::setDoNotFireEvent) ) .flatMap(i -> FastBeanCopier .copy(product, new DeviceProductDeployEvent())