|
@@ -229,9 +229,9 @@ public class FodderServiceImpl extends IBaseServiceImpl<FodderEntity, Long> impl
|
|
|
if (type.equals("pano")) {
|
|
|
log.info("准备发送消息: " + entity.getId());
|
|
|
//发消息到mq
|
|
|
- DoSliceDTO doSliceDTO = new DoSliceDTO();
|
|
|
- doSliceDTO.setId(entity.getId());
|
|
|
- rabbitMqProducer.sendByWorkQueue(doSliceQueue,doSliceDTO);
|
|
|
+ Map<String,Object> map=new HashMap<>();
|
|
|
+ map.put("id", entity.getId());
|
|
|
+ rabbitMqProducer.sendByWorkQueue(doSliceQueue,map);
|
|
|
log.info("发送消息到队列完成: " + entity.getId());
|
|
|
}
|
|
|
long end = System.currentTimeMillis();
|
|
@@ -732,9 +732,9 @@ public class FodderServiceImpl extends IBaseServiceImpl<FodderEntity, Long> impl
|
|
|
List<FodderEntity> fodderEntities = getBaseMapper().selectByCondition(condition);
|
|
|
log.info("重新入队数量{}",fodderEntities.size());
|
|
|
for (FodderEntity fodderEntity : fodderEntities) {
|
|
|
- DoSliceDTO doSliceDTO = new DoSliceDTO();
|
|
|
- doSliceDTO.setId(fodderEntity.getId());
|
|
|
- rabbitMqProducer.sendByWorkQueue(doSliceQueue,doSliceDTO);
|
|
|
+ Map<String,Object> map=new HashMap<>();
|
|
|
+ map.put("id", fodderEntity.getId());
|
|
|
+ rabbitMqProducer.sendByWorkQueue(doSliceQueue,map);
|
|
|
}
|
|
|
}
|
|
|
}
|