提交 d1378061 编写于 作者: sq3536's avatar sq3536

long 联合主键

上级 e7a77bb7
...@@ -156,6 +156,13 @@ public class {{entity.codeName}} extends EntityMP implements Serializable ...@@ -156,6 +156,13 @@ public class {{entity.codeName}} extends EntityMP implements Serializable
{{/entity.nesteds}} {{/entity.nesteds}}
{{#if entity.keyField.type.number}}
@Override
public Serializable getDefaultKey(boolean gen) {
return IdWorker.getId();
}
{{else}}
{{#entity.unionKeyMode}} {{#entity.unionKeyMode}}
{{#unless entity.keyField.phisicalDEField}} {{#unless entity.keyField.phisicalDEField}}
...@@ -194,12 +201,6 @@ public class {{entity.codeName}} extends EntityMP implements Serializable ...@@ -194,12 +201,6 @@ public class {{entity.codeName}} extends EntityMP implements Serializable
} }
{{/entity.unionKeyMode}} {{/entity.unionKeyMode}}
{{#if entity.keyField.type.number}}
@Override
public Serializable getDefaultKey(boolean gen) {
return IdWorker.getId();
}
{{/if}} {{/if}}
{{#if entity.hasResetField}} {{#if entity.hasResetField}}
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册