chenweida 7 yıl önce
ebeveyn
işleme
bc88b76737

+ 1 - 1
patient-co-statistics-es/src/main/java/com/yihu/wlyy/statistics/config/quartz/SchedulerConfig.java

@ -24,7 +24,7 @@ public class SchedulerConfig {
    @Autowired
    private DataSource dataSource;
    @Bean
    SchedulerFactoryBean schedulerFactoryBean_cwd_local() throws IOException {
    SchedulerFactoryBean schedulerFactoryBean_cwd() throws IOException {
        SchedulerFactoryBean bean = new SchedulerFactoryBean();
        bean.setJobFactory(jobFactory);
        bean.setApplicationContext(this.applicationContext);

+ 9 - 5
patient-co-statistics-es/src/main/java/com/yihu/wlyy/statistics/util/IdCardUtil.java

@ -10,7 +10,7 @@ import java.util.Date;
 */
public class IdCardUtil {
//    /**
    //    /**
//     * 根据身份证的号码算出当前身份证持有者的年龄
//     *
//     * @param
@ -49,6 +49,10 @@ public class IdCardUtil {
//        }
//        return age;
//    }
    public static void main(String[] args) throws Exception{
        System.out.println(getSexForIdcard("350206199109092048"));
    }
    /**
     * 根据身份证的号码算出当前身份证持有者的性别
     * 1 女 2 男 3未知
@ -63,22 +67,22 @@ public class IdCardUtil {
            if (Integer.parseInt(CardCode.substring(16).substring(0, 1)) % 2 == 0) {// 判断性别
                // modifid by lyr 2016-09-29
                // sex =  Constant.level_sex_2;
                sex ="1";
                sex = "2";
                // modifid by lyr 2016-09-29
            } else {
                // modifid by lyr 2016-09-29
                // sex =  Constant.level_sex_1;
                sex ="2";
                sex = "1";
                // modifid by lyr 2016-09-29
            }
        } else if (CardCode.length() == 15) {
            String usex = CardCode.substring(14, 15);// 用户的性别
            if (Integer.parseInt(usex) % 2 == 0) {
                // sex =  Constant.level_sex_2;
                sex = "1";
                sex = "2";
            } else {
                // sex =  Constant.level_sex_1;
                sex = "2";
                sex = "1";
            }
        }
        return sex;