|
|
@@ -18,10 +18,14 @@ import org.springframework.stereotype.Component;
|
|
|
*/
|
|
|
@Slf4j
|
|
|
@Component
|
|
|
-@AllArgsConstructor
|
|
|
@AutoConfigureAfter(SlaveDistributeQueueConfig.class)
|
|
|
public class SlaveDistributeMsgListener {
|
|
|
private final DeviceMsgHandler deviceMsgHandler;
|
|
|
+
|
|
|
+ public SlaveDistributeMsgListener(DeviceMsgHandler deviceMsgHandler) {
|
|
|
+ this.deviceMsgHandler = deviceMsgHandler;
|
|
|
+ }
|
|
|
+
|
|
|
@RabbitHandler
|
|
|
@RabbitListener(queues = "${hospital.code}")
|
|
|
public void handleMsg(AliIotMessagePojo msg){
|