<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ### 一對多導出needMerge注解的使用 1)注意事項:需要一對多的時候才可以正確導出縱向合并單元格(如一個教師對應多個學生) 2)一對多,一表中需要導出的字段都需要添加上needMerge 3)后臺代碼實現示例 教師實體類 ``` /**needMerge需要寫在@Excel里面,并且是一對多的情況下,否則合并失敗*/ /**教師名稱*/ @Excel(name = "教師名稱", width = 15,needMerge = true) @ApiModelProperty(value = "教師名稱") private String name; @ExcelCollection(name="學生") @ApiModelProperty(value = "學生") private List<Student> studentList; ``` ![](https://img.kancloud.cn/ec/1a/ec1a117f51e85995d7b98b76fc033182_797x589.png) 學生實體類 ``` /**主鍵*/ @TableId(type = IdType.ID_WORKER_STR) @ApiModelProperty(value = "主鍵") private String id; /**所屬部門*/ @ApiModelProperty(value = "所屬部門") private String sysOrgCode; /**姓名*/ @Excel(name = "姓名", width = 15) @ApiModelProperty(value = "姓名") private String name; /**年齡*/ @Excel(name = "年齡", width = 15) @ApiModelProperty(value = "年齡") private String age; /**性別*/ @Excel(name = "性別", width = 15) @ApiModelProperty(value = "性別") private String sex; /**教師id*/ @ApiModelProperty(value = "教師id") private String teacherId; ``` controller控制類 ![](https://img.kancloud.cn/91/eb/91ebe4408875b21d6eca4acba5b48b11_1520x582.png) ![](https://img.kancloud.cn/a9/10/a9101a20a5714096e4ff6b83a446796e_1689x607.png) 導出excel截圖 ![](https://img.kancloud.cn/78/aa/78aa127bcb95a03f0fe588f709d7ce21_696x348.png)
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看