{{#each system.apps as |app|}}
{{#eq app.codeName "link"}}
{
{{#each app.appEntities as |appEntity|}}
    "{{appEntity.entity.codeName}}":
    {
        "codeName": "{{appEntity.entity.codeName}}",
        "tableName": "{{appEntity.entity.tableName}}",
        "keyField": "{{appEntity.entity.keyField.jsonName}}",
        "entityClass": "{{packageName}}.api.{{lowerCase app.codeName}}.domain.{{pascalCase appEntity.codeName}}",
        "mapperClass": "{{packageName}}.api.{{lowerCase app.codeName}}.mapper.{{pascalCase appEntity.codeName}}Mapper",
        "references": [
        {{#each appEntity.entity.references}}
            {{#eq entityCodeName "TYYW_KG_XFJSDJ"}}
            {
                "refTopic": "{{entityCodeName}}",
                "keyField": "{{fkField.jsonName}}",
                "refField": "{{lowerCase fkField.refFieldCodeName}}"
            },
            {{/eq}}
        {{/each}}
            {}
        ]
    }{{#unless @last}},{{/unless}}
{{/each}}
}
{{/eq}}
{{/each}}