Coder Social home page Coder Social logo

exceltojson's People

Contributors

rct1985 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

exceltojson's Issues

主键目前不支持数值类型啊,已经给修改了,请联系我

因为很多情况下需要将主键设置为数值类型,所以进行了修改。

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.