This commit is contained in:
Guoqs
2024-05-28 10:51:51 +08:00
parent 2fdca99608
commit 2274aee0ef
6 changed files with 200 additions and 18 deletions

View File

@@ -252,6 +252,22 @@ public class SpringBootTestController {
@Autowired
private NotificationService notificationService;
@Test
public void getSnowflakeIdTest() {
for (int i = 0; i < 100; i++) {
String snowflakeId = SnowflakeIdWorker.getSnowflakeId();
System.out.println("" + i + "个snowflakeId" + snowflakeId);
}
}
@Test
public void getOrderCodeTest() {
for (int i = 0; i < 10; i++) {
String orderCode = IdUtils.getOrderCode();
System.out.println("" + i + 1 + "个orderCode" + orderCode);
}
}
@Test
public void notificationStationInfoTest() {
String stationId = "19";