瀏覽代碼

统计代码提交

chenweida 8 年之前
父節點
當前提交
5a8c00c10e

+ 3 - 1
patient-co-statistics/src/main/java/com/yihu/wlyy/statistics/util/IdCardUtil.java

@ -96,7 +96,7 @@ public class IdCardUtil {
    public static int getAgeForIdcard(String idcard) {
        int age = 0;
        if (StringUtils.isEmpty(idcard)) {
        if (org.springframework.util.StringUtils.isEmpty(idcard)) {
            return age;
        }
@ -106,6 +106,8 @@ public class IdCardUtil {
            birth = idcard.substring(6, 14);
        } else if (idcard.length() == 15) {
            birth = "19" + idcard.substring(6, 12);
        }else{
            return 0;
        }
        int year = Integer.valueOf(birth.substring(0, 4));

+ 1 - 1
patient-co-statistics/src/main/resources/application.yml

@ -169,7 +169,7 @@ fv:
    password: jkzlehr@123
systemConfig:
  msg_push_server: http://192.168.131.102:3000/api/v1/chats/sm
  msg_push_server: http://127.0.0.1:3000/api/v1/chats/sm
---