Commit 964eaaed by 丁伟峰

order-request表的id,使用uuid

1 parent a098dffd
......@@ -35,6 +35,7 @@ import org.springframework.stereotype.Service;
import java.util.ArrayList;
import java.util.List;
import java.util.UUID;
@Slf4j
@Service
......@@ -58,7 +59,6 @@ public class OrderCreateServiceImpl implements OrderCreateService {
label = "最低";
} else if (i == prioritiesLevels) {
label = "最高";
} else {
label = String.format("优先级%d", i);
}
......@@ -88,6 +88,7 @@ public class OrderCreateServiceImpl implements OrderCreateService {
log.info("[createOrder] current XID: {}", RootContext.getXID());
OrderRequestEntity entity = new OrderRequestEntity();
entity.setId(UUID.randomUUID().toString().replace("-", ""));
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!