goja-core/src/main/java/goja/core/kits/IdCardKit.java
public static String getProvinceByIdCard(String idCard) {
        int len = idCard.length();
        String sProvince;
        String sProvinNum = "";
        if (len == CHINA_ID_MIN_LENGTH || len == CHINA_ID_MAX_LENGTH) {
            sProvinNum = idCard.substring(0, 2);
        }
        sProvince = cityCodes.get(sProvinNum);
        return sProvince;
    }
public static String getProvinceByIdCard(String idCard) {
        int len = idCard.length();
        String sProvince;
        String sProvinNum = "";
        if (len == CHINA_ID_MIN_LENGTH || len == CHINA_ID_MAX_LENGTH) {
            sProvinNum = idCard.substring(0, 2);
        }
        sProvince = cityCodes.get(sProvinNum);
        return sProvince;
    }
public static String getProvinceByIdCard ( String idCard ) { int len = idCard . length ( ) ; String sProvince ; String sProvinNum = "" ; if ( len == CHINA_ID_MIN_LENGTH || len == CHINA_ID_MAX_LENGTH ) { sProvinNum = idCard . substring ( 0 , 2 ) ; } sProvince = cityCodes . get ( sProvinNum ) ; return sProvince ; }
根据身份编号获取户籍省份

@param idCard 身份编码
@return 省级编码。
根据身份编号获取户籍省份