| | |
| | | import com.alibaba.fastjson2.JSONObject; |
| | | import com.ard.alarm.stealelec.domain.ArdAlarmStealelec; |
| | | import com.ard.utils.http.HttpUtils; |
| | | import com.ard.utils.mqtt.MqttConsumer; |
| | | import com.ard.utils.mqtt.MqttProducer; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.scheduling.annotation.Async; |
| | | import org.springframework.scheduling.annotation.Scheduled; |
| | | import org.springframework.stereotype.Service; |
| | | import javax.annotation.Resource; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | |
| | | if (tempList.contains(wd.getId())) { |
| | | continue; |
| | | } |
| | | MqttConsumer.publish(2, false, "stealelec", JSON.toJSONString(wd)); |
| | | MqttProducer.publish(2, false, "stealelec", JSON.toJSONString(wd)); |
| | | tempList.add(wd.getId()); |
| | | } |
| | | } |