Commit 97a8d0f61ce8f743c9227a6dcf19ee223a1ac36e
1 parent
7c9bae68
Changes by shaofan
Showing
1 changed file
with
3 additions
and
0 deletions
sl-express-ms-transport-info-service/src/main/java/com/sl/transport/info/mq/TransportInfoMQListener.java
| ... | ... | @@ -9,6 +9,7 @@ import com.sl.transport.common.vo.TransportInfoMsg; |
| 9 | 9 | import com.sl.transport.domain.OrganDTO; |
| 10 | 10 | import com.sl.transport.info.entity.TransportInfoDetail; |
| 11 | 11 | import com.sl.transport.info.service.TransportInfoService; |
| 12 | +import lombok.extern.slf4j.Slf4j; | |
| 12 | 13 | import org.springframework.amqp.core.ExchangeTypes; |
| 13 | 14 | import org.springframework.amqp.rabbit.annotation.Exchange; |
| 14 | 15 | import org.springframework.amqp.rabbit.annotation.Queue; |
| ... | ... | @@ -22,6 +23,7 @@ import org.springframework.transaction.annotation.Transactional; |
| 22 | 23 | * 物流信息消息 |
| 23 | 24 | */ |
| 24 | 25 | @Component |
| 26 | +@Slf4j | |
| 25 | 27 | public class TransportInfoMQListener { |
| 26 | 28 | |
| 27 | 29 | @Autowired |
| ... | ... | @@ -39,6 +41,7 @@ public class TransportInfoMQListener { |
| 39 | 41 | @Transactional |
| 40 | 42 | public void listenTransportInfoMsg(String msg) { |
| 41 | 43 | //{"info":"您的快件已到达【$organId】", "status":"运输中", "organId":90001, "transportOrderId":"SL920733749248" , "created":1653133234913} |
| 44 | + log.info("接收到更新物流信息的消息 >>> msg = {}", msg); | |
| 42 | 45 | TransportInfoMsg transportInfoMsg = JSONUtil.toBean(msg, TransportInfoMsg.class); |
| 43 | 46 | Long organId = transportInfoMsg.getOrganId(); |
| 44 | 47 | String transportOrderId = Convert.toStr(transportInfoMsg.getTransportOrderId()); | ... | ... |