本帖最后由 Clark.Pan 于 2021-9-30 13:51 编辑
所填充的数据json:
{"budgets":[{"status":"审批中","dept":"[运营中台] 信息技术中心","type":"资产","category":"资产","account":"知识产权","year":2021,"jan":7.0,"feb":7.0,"mar":7.0,"apr":7.0,"may":7.0,"jun":7.0,"jul":7.0,"aug":7.0,"sep":7.0,"oct":7.0,"nov":7.0,"dec":7.0,"total":84.0},{"status":"已审批","dept":"[运营中台] 信息技术中心","type":"费用","category":"研发设计","account":"委外开发费","year":2022,"jan":5.0,"feb":5.0,"mar":5.0,"apr":5.0,"may":5.0,"jun":5.0,"jul":5.0,"aug":5.0,"sep":5.0,"oct":5.0,"nov":5.0,"dec":5.0,"total":60.0},{"status":"审批中","dept":"[运营中台] 信息技术中心","type":"费用","category":"直接人工","account":"直接","year":2021,"jan":1.0,"feb":1.0,"mar":1.0,"apr":1.0,"may":1.0,"jun":1.0,"jul":1.0,"aug":1.0,"sep":1.0,"oct":1.0,"nov":1.0,"dec":1.0,"total":12.0}],"header":{"parentDept":"[运营中台] 信息技术中心"}}
在进行这不操作时,报下面的year这个字段错误,但是年份是有数据的
workbook.addDataSource("ds", budgets);
workbook.processTemplate();
|
|