-
Notifications
You must be signed in to change notification settings - Fork 74
组件内置协议之SP
quhongwei edited this page Mar 28, 2018
·
1 revision
SP是简单格式simple的意思
1.文件布局分为head, body, tail 三部分
2.head, body, tail字段都是横向输出,根据分隔符连接而成
3.head,tail 都只有一行
<protocol name="sp">
<head>
<row>
<column>
<output>${column.value()}</output>
</column>
</row>
</head>
<body>
<row>
<column>
<output>${column.value()}</output>
</column>
</row>
</body>
<tail>
<row>
<column>
<output>${column.value()}</output>
</column>
</row>
</tail>
</protocol>
{
"head":[
"totalCount|总笔数|Required|Integer",
"totalAmount|总金额|BigDecimal|Required"
],
"body":[
"seq|流水号",
"instSeq|基金公司订单号|Required",
"gmtApply|订单申请时间|Date:yyyy-MM-dd HH:mm:ss",
"date|普通日期|Date:yyyyMMdd",
"dateTime|普通日期时间|Date:yyyyMMdd HH:mm:ss",
"applyNumber|普通数字|BigDecimal",
"amount|金额|BigDecimal",
"age|年龄|Integer",
"longN|长整型|Long",
"bol|布尔值|Boolean",
"memo|备注"
],
"tail": [
"fileEnd|数据文件尾部字符|default:OFDCFEND"
],
"protocol":"SP"
}
100|300.03
seq_0|inst_seq_0|2013-11-09 12:34:56|20131109|20131112 12:23:34|23.33|10.22|22|12345|true|备注1
seq_1|inst_seq_1|2013-11-10 15:56:12|20131110|20131113 12:33:34|23.34|11.88|33|56789|false|
OFDCFEND