//package com.prolog.cs.biz.outbound.service.impl;
//
//import com.prolog.cs.biz.outbound.dao.WaveBillDMapper;
//import com.prolog.cs.biz.outbound.service.TestService;
//import com.prolog.upcloud.base.inventory.vo.StockWaveResultVO;
//import org.slf4j.Logger;
//import org.slf4j.LoggerFactory;
//import org.springframework.amqp.rabbit.core.RabbitTemplate;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.beans.factory.annotation.Value;
//import org.springframework.stereotype.Service;
//
//@Service
//public class TestServiceImpl implements TestService
//{
//    private static Logger logger = LoggerFactory.getLogger(TestService.class);
//    @Autowired
//    private RabbitTemplate rabbitTemplate;
//
//    @Value("${mq.wave.response.queueName}")
//    String responseDebugQueue;
//
//    @Value("${mq.wave.response.topicName}")
//    String responseDebugTopic;
//    @Autowired
//    private WaveBillDMapper billDMapper;
//
//
//    @Override
//    public void test(StockWaveResultVO waveResultVO)
//    {
//
//        logger.info("test: send wave result message");
//        rabbitTemplate.convertAndSend("waveTopicExchange", responseDebugTopic, waveResultVO);
//
//    }
//
//    @Override
//    public boolean testDoubleCheck(String itemCode) {
//        return billDMapper.needDoubleCheck(itemCode);
//    }
//}
