feat: 使用fenix内置的雪花算法
This commit is contained in:
@@ -109,6 +109,8 @@ public class TestApplication {
|
||||
Assert.isTrue(listItems("company").at("/data/items").size() == 2, "数量错误");
|
||||
Assert.isTrue(listItems("company").at("/data/total").asLong() == 2, "返回数量错误");
|
||||
|
||||
log.info(listItems("company").toPrettyString());
|
||||
|
||||
System.exit(0);
|
||||
}
|
||||
|
||||
|
||||
@@ -11,7 +11,9 @@ import org.springframework.data.jpa.domain.support.AuditingEntityListener;
|
||||
@EntityListeners(AuditingEntityListener.class)
|
||||
@Comment("企业")
|
||||
public class Company extends SimpleEntity {
|
||||
@Comment("名称")
|
||||
private String name;
|
||||
@Comment("成员数")
|
||||
private Integer members;
|
||||
|
||||
public String getName() {
|
||||
|
||||
@@ -13,4 +13,8 @@ public class CompanyService extends SimpleServiceSupport<Company> {
|
||||
public CompanyService(CompanyRepository repository) {
|
||||
super(repository);
|
||||
}
|
||||
|
||||
public void test() {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user