提交 fba150d2 编写于 作者: zhouweidong's avatar zhouweidong

虚拟联合主键

上级 b33cb212
...@@ -356,7 +356,7 @@ public class ${item.getCodeName()}ServiceImpl extends ServiceImpl<${de.getCodeNa ...@@ -356,7 +356,7 @@ public class ${item.getCodeName()}ServiceImpl extends ServiceImpl<${de.getCodeNa
${srfcaseformat(majorIndexDECodeName,'l_u2lC')}Service.update(${de.codeName?lower_case}InheritMapping.to${majorIndexDECodeNameCamel}(et)); ${srfcaseformat(majorIndexDECodeName,'l_u2lC')}Service.update(${de.codeName?lower_case}InheritMapping.to${majorIndexDECodeNameCamel}(et));
</#if> </#if>
<#if de.getKeyPSDEField()??> <#if de.getKeyPSDEField()??>
<#if de.getKeyPSDEField().isPhisicalDEField==false && de.getUnionKeyValuePSDEFields()??> <#if de.getKeyPSDEField().isPhisicalDEField()==false && de.getUnionKeyValuePSDEFields()??>
<#comment>虚拟联合主键</#comment> <#comment>虚拟联合主键</#comment>
if(!updateById(et)) if(!updateById(et))
return false; return false;
...@@ -900,7 +900,7 @@ public class ${item.getCodeName()}ServiceImpl extends ServiceImpl<${de.getCodeNa ...@@ -900,7 +900,7 @@ public class ${item.getCodeName()}ServiceImpl extends ServiceImpl<${de.getCodeNa
<@deImportData/> <@deImportData/>
<#comment>虚拟联合主键</#comment> <#comment>虚拟联合主键</#comment>
<#if de.getKeyPSDEField().isPhisicalDEField==false && de.getUnionKeyValuePSDEFields()??> <#if de.getKeyPSDEField().isPhisicalDEField()==false && de.getUnionKeyValuePSDEFields()??>
private ${item.getCodeName()} getById(${srfr7javatype(keyfield.getStdDataType())} id){ private ${item.getCodeName()} getById(${srfr7javatype(keyfield.getStdDataType())} id){
${item.getCodeName()} entity=new ${item.getCodeName()}(); ${item.getCodeName()} entity=new ${item.getCodeName()}();
entity.set${srfcaseformat(keyfield.codeName,'l_u2lC')?cap_first}(id); entity.set${srfcaseformat(keyfield.codeName,'l_u2lC')?cap_first}(id);
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册