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

修改说明

上级 7c80a0b1
......@@ -91,7 +91,7 @@ public class {{entity.codeName}}ServiceBase extends ServiceImpl<{{entity.codeNam
public List<{{entity.codeName}}> getByEntities(List<{{entity.codeName}}> entities) {
{{#if entity.unionKeyMode}}
list.forEach(et -> {
entities.forEach(et -> {
if(ObjectUtils.isEmpty(et.get{{pascalCase entity.keyField.codeName}}()))
et.set{{pascalCase entity.keyField.codeName}}(({{entity.keyField.type.java}})et.getDefaultKey(true));
});
......@@ -142,7 +142,7 @@ public class {{entity.codeName}}ServiceBase extends ServiceImpl<{{entity.codeNam
{{#entity.hasPhisicalLinkField}}
fillParentData(et);
{{/entity.hasPhisicalLinkField}}
{{#if.isIndexSubDE}}
{{#if entity.isIndexSubDE}}
if(ObjectUtils.isEmpty(et.get{{pascalCase entity.keyField.codeName}}()))
et.set{{pascalCase entity.keyField.codeName}}(({{entity.keyField.type.java}})et.getDefaultKey(true));
{{entity.indexRelation.entityCodeName}} {{camelCase entity.indexRelation.entityCodeName}} = {{camelCase entity.codeName}}InheritMapping.to{{pascalCase entity.indexRelation.entityCodeName}}(et);
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册