Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用Json结构导出一个表格的多个区域时,出现格式错乱 #296

Closed
farway000 opened this issue Jul 1, 2021 · 5 comments
Closed
Assignees
Labels

Comments

@farway000
Copy link

farway000 commented Jul 1, 2021

Expected behaviour

在测试Json结构导出时,我的预期表格结构见附件

ComplexExcel.xlsx

,数据源结构如下,但导出表格后,出现了最后一个区域错乱的现象。
ResultTable.xlsx

string json = @"{
            'ReportTitle': '测试报告',
            'BeginDate': '2020/06/24',
            'EndDate': '2021/06/24', 
            '播放大厅营收报表': [
              {'EquipName':'一区','放映场次':'100','取消场次':1,'售票数量':'100','入场人数':'100','入场异常':'100'},
              {'EquipName':'二区','放映场次':'101','取消场次':12,'售票数量':'101','入场人数':'101','入场异常':'101'}, 
              {'EquipName':'三区','放映场次':'101','取消场次':12,'售票数量':'101','入场人数':'101','入场异常':'101'},       
              {'EquipName':'四区','放映场次':'101','取消场次':12,'售票数量':'101','入场人数':'101','入场异常':'101'},      
              {'EquipName':'五区','放映场次':'101','取消场次':12,'售票数量':'101','入场人数':'101','入场异常':'101'},      
              {'EquipName':'六区','放映场次':'101','取消场次':12,'售票数量':'101','入场人数':'101','入场异常':'101'},      
              {'EquipName':'七区','放映场次':'101','取消场次':12,'售票数量':'101','入场人数':'101','入场异常':'101'},      
              {'EquipName':'八区','放映场次':'101','取消场次':12,'售票数量':'101','入场人数':'101','入场异常':'101'},      
              {'EquipName':'九区','放映场次':'101','取消场次':12,'售票数量':'101','入场人数':'101','入场异常':'101'},      
            ],
            '播放大厅能耗情况': [
              {'EquipName':'一区','放映设备':'100','放映空调':1,'4D设备':'100','能耗异常':'100','冷凝机组':'100','售卖区':'100'},
              {'EquipName':'s区','放映设备':'100','放映空调':2,'4D设备':'101','能耗异常':'111','冷凝机组':'200','售卖区':'30'},
{'EquipName':'1区','放映设备':'100','放映空调':2,'4D设备':'101','能耗异常':'111','冷凝机组':'200','售卖区':'30'},
{'EquipName':'一2区','放映设备':'100','放映空调':2,'4D设备':'101','能耗异常':'111','冷凝机组':'200','售卖区':'30'},
{'EquipName':'3','放映设备':'100','放映空调':2,'4D设备':'101','能耗异常':'111','冷凝机组':'200','售卖区':'30'},
{'EquipName':'4','放映设备':'100','放映空调':2,'4D设备':'101','能耗异常':'111','冷凝机组':'200','售卖区':'30'},
{'EquipName':'5','放映设备':'100','放映空调':2,'4D设备':'101','能耗异常':'111','冷凝机组':'200','售卖区':'30'},
{'EquipName':'6','放映设备':'100','放映空调':2,'4D设备':'101','能耗异常':'111','冷凝机组':'200','售卖区':'30'},
{'EquipName':'7','放映设备':'100','放映空调':2,'4D设备':'101','能耗异常':'111','冷凝机组':'200','售卖区':'30'}
            ],
            '安全情况':[
              {'EquipName':'火警','时间':'今天','位置':'测试','次数':'100'},
              {'EquipName':'异常','时间':'今天','位置':'测试','次数':'100'}
            ],
            '考勤情况':[
               {'EquipName':'早班1','出勤':'11','休假':'33','迟到':'55','缺勤':'77','总人数':'1100'},
               {'EquipName':'早班2','出勤':'22','休假':'44','迟到':'66','缺勤':'88','总人数':'1100'}
            ]
          }";

I'm seeing this behaviour on

  • [x ] Magicodes.IE.AspNetCore

package versions

Magicodes.IE.AspNetCore2.5.4.3

So how can we reproduce this?

必现。

@xl-wenqiang xl-wenqiang added the area-excel excel label Jul 3, 2021
@xl-wenqiang xl-wenqiang self-assigned this Jul 3, 2021
@xl-wenqiang
Copy link
Collaborator

目前暂不支持一行多个表格。

@xl-wenqiang
Copy link
Collaborator

支持此功能需要一定时间,我们尽快处理。

xin-lai pushed a commit that referenced this issue Jul 4, 2021
@xl-wenqiang
Copy link
Collaborator

2.5.4.6

2021.07.04

  • 模板导出支持一行多个表格#296

@farway000
Copy link
Author

感谢。。哈哈😁

1 similar comment
@farway000
Copy link
Author

感谢。。哈哈😁

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants