Order status flow chart

code

Dubbo interface method (){1. Call create order method 2. Call Create order detail + update order state to pay method 3. Call write data to channel method}Copy the code

instructions

The transaction 123 step is handled in a single interface (dubbo interface), but in a different transaction 1. 2. Create order details + update order table’s order status to pay, is in a transaction // success, update to pay; 3. Write data to channel, another method // success and failure, state unchanged or payment