rct1985 / exceltojson Goto Github PK
View Code? Open in Web Editor NEWa Tool that convert data from excel to json (created by dprat, modified by terrenceRao)
a Tool that convert data from excel to json (created by dprat, modified by terrenceRao)
因为很多情况下需要将主键设置为数值类型,所以进行了修改。
XLSStructure.java 中,OutputJson_withMainKey(HSSFSheet, String) 方法,
我在取主键的时候,修改了程序。修改内容如下:
//默认第一列为主键 Cell keyCell = thisRow.getCell(0); // To support number primary key // Modified by Shane Loo Li at 2013-7-31 Wednesday char keyType = rowType.getCell(0).getStringCellValue().charAt(0); String l_strMainKey = ""; switch (keyType) { case 'i': l_strMainKey = String.valueOf((int) keyCell.getNumericCellValue()); break; case 'f': l_strMainKey = String.valueOf(keyCell.getNumericCellValue()); break; case 's': l_strMainKey = keyCell.getStringCellValue(); break; }
请审阅,如果可以的话,希望能联系一下。
我的**大陆手机号码: 18610629106, 13505191463
单位的电子邮箱: [email protected]
另外,我其实悲惨地使用 QQ : 295205322
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.