-
Notifications
You must be signed in to change notification settings - Fork 74
组件内置协议之fund_index
斩秋 edited this page Sep 6, 2019
·
2 revisions
国家标准:开放式基金业务数据交换协议(http://www.chinaclear.cn/zdjs/editor_file/20161014111132532.pdf)
<protocol name="fund_index" rowsplit="rowSplitByFixedlLength">
<head>
<row columnLayout="vertical">
<column>
<output>${column.value()}</output>
</column>
</row>
<row output="${totalCount}" type="Integer|[3,0]" />
</head>
<body>
<!-- 只有一个字段,定义成vertical 是为了避免调用行分割器, 因为fund_index body数据不是定长数据 -->
<row columnLayout="vertical">
<column>
<output>${column.value()}</output>
</column>
</row>
</body>
<tail>
<row>
<column>
<output>${column.value()}</output>
</column>
</row>
</tail>
</protocol>
{
"head":[
"identity|信息标识|[8,0]|default:OFDCFIDX",
"version|协议版本号|[4,0]|default:20",
"msgCreator|信息创建人|[9,0]|default:H0",
"msgRecipient|信息接收人|[9,0]",
"sendDate|传送发生日期|[8,0]|Date:yyyyMMdd"
],
"body":[
"path|基金文件路径"
],
"tail":[
"fileEnd|数据文件尾部字符|default:OFDCFEND|[8,0]"
],
"protocol":"FUND_INDEX"
}
OFDCFIDX
20
H0
xxx
20180302
003
aaa/xxx/ccc
bbb/xxx/ccc
ccc/xxx/ccc
OFDCFEND