提交 d272cd95 编写于 作者: TANGYAOLONG's avatar TANGYAOLONG

bugfixed

上级 a30a0e6f
...@@ -11,10 +11,10 @@ import java.util.List; ...@@ -11,10 +11,10 @@ import java.util.List;
@Mapper(componentModel = "spring", uses = {}) @Mapper(componentModel = "spring", uses = {})
public interface ${de.codeName}${item.codeName} { public interface ${de.codeName}${item.codeName} {
<#if item.codeName != 'Default'>
<#assign keyFieldName=srfr7templcaseformat(de.getKeyPSDEField().getCodeName())> <#assign keyFieldName=srfr7templcaseformat(de.getKeyPSDEField().getCodeName())>
<#if item.getPSDEDataImportItems?? && item.getPSDEDataImportItems()??> <#if item.getPSDEDataImportItems?? && item.getPSDEDataImportItems()??>
@Mappings({ @Mappings({
<#if item.codeName != 'Default'>
@Mapping(target = "${keyFieldName}", source = "${keyFieldName}"), @Mapping(target = "${keyFieldName}", source = "${keyFieldName}"),
<#list item.getPSDEDataImportItems() as importItem> <#list item.getPSDEDataImportItems() as importItem>
<#if importItem.getPSDEField()?? && importItem.getPSDEField().isKeyDEField()==false> <#if importItem.getPSDEField()?? && importItem.getPSDEField().isKeyDEField()==false>
...@@ -22,11 +22,12 @@ public interface ${de.codeName}${item.codeName} { ...@@ -22,11 +22,12 @@ public interface ${de.codeName}${item.codeName} {
@Mapping(target = "${deFieldName}", source = "${deFieldName}"), @Mapping(target = "${deFieldName}", source = "${deFieldName}"),
</#if> </#if>
</#list> </#list>
</#if>
}) })
@BeanMapping(ignoreByDefault = true) @BeanMapping(ignoreByDefault = true)
</#if> </#if>
${de.codeName} toDomain(${de.codeName} entity); ${de.codeName} toDomain(${de.codeName} entity);
List<${de.codeName}> toDomain(List<${de.codeName}> entities); List<${de.codeName}> toDomain(List<${de.codeName}> entities);
</#if>
} }
\ No newline at end of file
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册