Commit 6b3aaf8a authored by hezhen's avatar hezhen

Merge branch 'master-tiande' into dev-tiande

parents 3b609a77 1bf2f81e
......@@ -21,18 +21,18 @@ public class RabbitTourConfig extends RabbitCommonConfig {
//同步企业信息
public static final String CORPORATION_UPD_QUEUE = "tourCorporation:upd.queue";
public static final String TOUR_CORPORATION_UPD_QUEUE = "tour.corporation:upd.queue";
//同步门店信息
public static final String COMPANY_UPD_QUEUE = "tourCompany:upd.queue";
public static final String TOUR_COMPANY_UPD_QUEUE = "tour.company:upd.queue";
static {
myQueue = new ArrayList<BindDTO>() {{
//企业
add(new BindDTO(CORPORATION_UPD_QUEUE, VEHICLE_TOPIC, KEY_CORPORATION_UPD));
add(new BindDTO(TOUR_CORPORATION_UPD_QUEUE, VEHICLE_TOPIC, KEY_CORPORATION_UPD));
//门店
add(new BindDTO(COMPANY_UPD_QUEUE, VEHICLE_TOPIC, KEY_COMPANY_UPD));
add(new BindDTO(TOUR_COMPANY_UPD_QUEUE, VEHICLE_TOPIC, KEY_COMPANY_UPD));
}};
}
}
......
......@@ -33,7 +33,7 @@ public class BranchCompanyMQHandler {
* 同步门店信息
* @param
*/
@RabbitListener(queues = COMPANY_UPD_QUEUE)
@RabbitListener(queues = TOUR_COMPANY_UPD_QUEUE)
public void integralHandler(Message message, @Headers Map<String, Object> headers, Channel channel) {
log.info("同步门店信息 messageJson:"+ JSONUtil.parse(message));
ExecutorService executorService = Executors.newCachedThreadPool();
......
......@@ -34,7 +34,7 @@ public class CorporationMQHandler {
* 同步企业信息
* @param
*/
@RabbitListener(queues = CORPORATION_UPD_QUEUE)
@RabbitListener(queues = TOUR_CORPORATION_UPD_QUEUE)
public void integralHandler(Message message, @Headers Map<String, Object> headers, Channel channel) {
log.info("同步企业信息 messageJson:"+ JSONUtil.parse(message));
ExecutorService executorService = Executors.newCachedThreadPool();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment