Commit ed029d8e by 丁伟峰

工单号

1 parent 224e4722
......@@ -89,6 +89,11 @@ public class OrderCreateServiceImpl implements OrderCreateService {
log.info("[createOrder] current XID: {}", RootContext.getXID());
OrderRequestEntity entity = new OrderRequestEntity();
entity.setId(UUID.randomUUID().toString().replace("-", ""));
String orderId = req.getOrderId();
if (orderId == null || orderId.isBlank()) {
orderId = UUID.randomUUID().toString().replace("-", "");
}
entity.setOrderId(orderId);
entity.setName(req.getName());
entity.setPhone(req.getPhone());
entity.setAddress(req.getAddress());
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!