提交 fee26444 编写于 作者: xignzi006's avatar xignzi006 🇨🇳

继承 索引 isEnableModelRT

上级 15099024
......@@ -306,10 +306,10 @@ public class ${item.getCodeName()}ServiceImpl extends ServiceImpl<${de.getCodeNa
<#comment>附加数据逻辑-操作前</#comment>
<@addBoforeLogic deaction/>
<#comment>同步创建索引主实体、继承主实体数据:继承子实体属性来源与父,先保存父,再保存子,最后get一次获取父数据返回</#comment>
<#if isIndexSubDE>
<#if isIndexSubDE && !pub.isEnableModelRT()>
createIndexMajorEntityData(et);
</#if>
<#if isLogicInheritDE>
<#if isLogicInheritDE && !pub.isEnableModelRT()>
if(!update(et, (Wrapper) et.getUpdateWrapper(true).eq("${keyfield.name?lower_case}", et.get${srfr7templcaseformat(keyfield.codeName)?cap_first}()))) {
return false;
}
......@@ -395,7 +395,7 @@ public class ${item.getCodeName()}ServiceImpl extends ServiceImpl<${de.getCodeNa
<#comment>附加数据逻辑-操作前</#comment>
<@addBoforeLogic deaction/>
<#comment>同步更新索引主实体、继承主实体数据:继承子实体属性来源与父,先保存父,再保存子,最后get一次获取父数据返回</#comment>
<#if isIndexSubDE>
<#if isIndexSubDE && !pub.isEnableModelRT()>
${srfr7templcaseformat(majorIndexDECodeName)}Service.update(${de.codeName?lower_case}InheritMapping.to${majorIndexDECodeNameCamel}(et));
</#if>
<#if de.getKeyPSDEField()??>
......@@ -543,7 +543,7 @@ public class ${item.getCodeName()}ServiceImpl extends ServiceImpl<${de.getCodeNa
</#list>
</#if>
<#comment>同步清除索引主实体数据</#comment>
<#if isIndexSubDE>
<#if isIndexSubDE && !pub.isEnableModelRT()>
${srfr7templcaseformat(majorIndexDECodeName)}Service.remove(key);
</#if>
boolean result = removeById(key);
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册