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

索引实体

上级 c0fc9364
......@@ -33,7 +33,6 @@ TARGET=PSDATAENTITY
<#assign majorIndexDE=indexPSDER.getMajorPSDataEntity()>
<#assign majorIndexDECodeName=indexPSDER.getMajorPSDataEntity().codeName>
<#assign majorIndexDECodeNameCamel = srfcaseformat(majorIndexDECodeName,'l_u2lC')?cap_first>
<#assign majorGroupFieldCodeNameCamel = srfcaseformat(majorIndexDE.getIndexTypePSDEField().codeName,'l_u2lC')?cap_first>
<#break>
</#if>
</#list>
......@@ -625,11 +624,15 @@ ${deaction.getRender().code}
* @param et
*/
private void createIndexMajorEntityData(${de.codeName} et){
<#if majorIndexDE.getIndexTypePSDEField()??>
if(ObjectUtils.isEmpty(et.get${srfcaseformat(keyfield.codeName,'l_u2lC')?cap_first}()))
et.set${srfcaseformat(keyfield.codeName,'l_u2lC')?cap_first}((${srfjavatype(keyfield.stdDataType)})et.getDefaultKey(true));
${pub.getPKGCodeName()}.core.${majorIndexDE.getPSSystemModule().getCodeName()?lower_case}.domain.${majorIndexDECodeName} ${majorIndexDECodeName?lower_case} =${de.codeName?lower_case}InheritMapping.to${majorIndexDECodeNameCamel}(et);
${majorIndexDECodeName?lower_case}.set("${majorIndexDECodeName?lower_case}","${indexPSDER.getTypeValue()}");
${majorIndexDECodeName?lower_case}.set("${majorIndexDE.getIndexTypePSDEField().codeName?lower_case}","${indexPSDER.getTypeValue()}");
${srfcaseformat(majorIndexDECodeName,'l_u2lC')}Service.create(${majorIndexDECodeName?lower_case});
<#else>
throw new ${pub.getPKGCodeName()}.util.errors.BadRequestAlertException("实体[${de.getLogicName()}]未配置分组属性","${de.codeName}","createIndexMajorEntityData");
</#if>
}
</#if>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册