Commit 391aea73 by 杨林龙

优化设备激活发送时间

1 parent dac790f7
......@@ -1840,8 +1840,10 @@ public class VehicleService extends AbstractCommonService {
private void pushDeviceEvent(List<String> snList, TenantDataOperatorEnum tenantDataOperatorEnum) {
log.info("update vehicle device publisher event:{}, operator:{}", JSONObject.toJSONString(snList), tenantDataOperatorEnum.getMessage());
applicationEventPublisher.publishEvent(new TenantDeviceSync(ShieldContextHolder.getTenantId(), snList, tenantDataOperatorEnum));
// 发送设备激活时间
applicationEventPublisher.publishEvent(new DeviceActiveSync(snList));
if (TenantDataOperatorEnum.ADD_DEVICE.getCode().equals(tenantDataOperatorEnum.getCode())) {
// 添加设备的时候 发送设备激活时间
applicationEventPublisher.publishEvent(new DeviceActiveSync(snList));
}
}
public List<Vehicle> getAllVehicle() {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!