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

补充索引属性映射

上级 d1c728b6
......@@ -47,18 +47,34 @@ import java.util.List;
public interface ${de.codeName}InheritMapping {
@Mappings({
<#--<#if indexPSDER.getPropertyMapNames?? && indexPSDER.getPropertyMapNames()??>-->
@Mapping(source ="${MinorIndexDEKeyFieldCodeName}",target = "${majorIndexDEKeyFieldCodeName}"),
@Mapping(source ="${MinorIndexDEMajorTextFieldCodeName}",target = "${majorIndexDEMajorTextFieldCodeName}"),
<#--</#if>-->
<#if indexPSDER.getPSDERIndexDEFieldMaps()??>
<#list indexPSDER.getPSDERIndexDEFieldMaps() as indexFieldmapping>
<#assign majorDEField=indexFieldmapping.getMajorPSDEField()>
<#assign MinorDEField=indexFieldmapping.getMinorPSDEField()>
<#comment>排除主键及主文本属性</#comment>
<#if majorDEField?? && MinorDEField?? && majorDEField.isKeyDEField==false && MinorDEField.isKeyDEField==false && majorDEField.isMajorDEField==false && MinorDEField.isMajorDEField==false>
@Mapping(source ="${srfcaseformat(MinorDEField.codeName,'l_u2lC')}",target = "${srfcaseformat(majorDEField.codeName,'l_u2lC')}"),
</#if>
</#list>
</#if>
})
${majorIndexDECodeName} to${majorIndexDECodeNameCamel}(${MinorIndexDECodeName} ${MinorIndexDECodeName?lower_case});
@Mappings({
<#--<#if indexPSDER.getPropertyMapNames?? && indexPSDER.getPropertyMapNames()??>-->
@Mapping(source ="${majorIndexDEKeyFieldCodeName}" ,target = "${MinorIndexDEKeyFieldCodeName}"),
@Mapping(source ="${majorIndexDEMajorTextFieldCodeName}" ,target = "${MinorIndexDEMajorTextFieldCodeName}"),
<#--</#if>-->
<#if indexPSDER.getPSDERIndexDEFieldMaps()??>
<#list indexPSDER.getPSDERIndexDEFieldMaps() as indexFieldmapping>
<#assign majorDEField=indexFieldmapping.getMajorPSDEField()>
<#assign MinorDEField=indexFieldmapping.getMinorPSDEField()>
<#comment>排除主键及主文本属性</#comment>
<#if majorDEField?? && MinorDEField?? && majorDEField.isKeyDEField==false && MinorDEField.isKeyDEField==false && majorDEField.isMajorDEField==false && MinorDEField.isMajorDEField==false>
@Mapping(source ="${srfcaseformat(majorDEField.codeName,'l_u2lC')}",target = "${srfcaseformat(MinorDEField.codeName,'l_u2lC')}"),
</#if>
</#list>
</#if>
})
${MinorIndexDECodeName} to${MinorIndexDECodeNameCamel}(${majorIndexDECodeName} ${majorIndexDECodeName?lower_case});
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册