<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE excels PUBLIC "-//PAOHAIJIAO//DTD API EXCEL 1.0//EN"
        "classpath:paohaijiao/dtd/Jquick-excel.dtd">
<excels namespace="com.github.paohaijiao.biz.merge.Merge0060EcommerceReconciliationService">

    <!-- 导出：电商平台销售对账表 -->
    <excel name="exportEcommerceReconciliation" returnClass="void">
        <![CDATA[
            EXPORT WITH SHEET="电商平台销售对账表", HEADER=true,
                MAPPING={"a":"平台","b":"结算月份","c":"平台结算","d":"我方账面","e":"差异"},
                FORMAT={"c":"#,##0.00","d":"#,##0.00","e":"#,##0.00"},
                FORMULAS={
                    E2:'C2-D2',E3:'C3-D3',E4:'C4-D4',
                    C5:'SUM(C2:C4)',D5:'SUM(D2:D4)',E5:'C5-D5',
                    E6:'C6-D6',E7:'C7-D7',
                    C8:'SUM(C6:C7)',D8:'SUM(D6:D7)',E8:'C8-D8',
                    C9:'C5+C8',D9:'D5+D8',E9:'C9-D9'
                },
                STYLE={
                    ROW 5:{bold:true,fillPattern:solid_foreground,fillForegroundColor:lightYellow,alignment:right,verticalAlignment:center},
                    ROW 8:{bold:true,fillPattern:solid_foreground,fillForegroundColor:lightYellow,alignment:right,verticalAlignment:center},
                    ROW 9:{bold:true,fillPattern:solid_foreground,fillForegroundColor:lightYellow,alignment:right,verticalAlignment:center}
                },
                MERGE:{
                    RANGE A2:A4 WITH MERGE_WITH_FIRST,
                    RANGE A6:A7 WITH MERGE_WITH_FIRST
                }
        ]]>
    </excel>

    <!-- 导入解析：读取导出的电商平台销售对账表 -->
    <excel name="importEcommerceReconciliation" returnClass="java.util.List">
        <![CDATA[
            IMPORT WITH SHEET="电商平台销售对账表", HEADER=true,
                MAPPING={"平台":"platform","结算月份":"month","平台结算":"platformAmount","我方账面":"bookAmount","差异":"difference"}
        ]]>
    </excel>

</excels>
