class SequenceNumber extends Object
序列编号
| Type | Name and description |
|---|---|
static Object |
belongsTo |
static Object |
constraints |
String |
customKey自定义Key |
Date |
dateCreated时间戳:可以用来判断是否还有效 |
Integer |
day |
Date |
lastUpdated |
static Object |
mapping |
Integer |
month |
Long |
number当前流水号 |
Long |
orgId1机构规则:可支持两级 |
Long |
orgId2 |
String |
orgShortName1 |
String |
orgShortName2 |
Integer |
year时间规则 |
| Type | Name and description |
|---|---|
static String |
next(String definitionString, Map params = [:])获得下一个编号 |
| Methods inherited from class | Name |
|---|---|
class Object |
Object#wait(long, int), Object#wait(long), Object#wait(), Object#equals(Object), Object#toString(), Object#hashCode(), Object#getClass(), Object#notify(), Object#notifyAll() |
自定义Key
时间戳:可以用来判断是否还有效
当前流水号
机构规则:可支持两级
时间规则
获得下一个编号