|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public static long getAgeByIdCard(String idCard){ | 
|---|
|  |  |  | int birthYear = Integer.parseInt(idCard.substring(6, 10)); | 
|---|
|  |  |  | int birthMonth = Integer.parseInt(idCard.substring(10, 12)); | 
|---|
|  |  |  | int birthDay = Integer.parseInt(idCard.substring(12, 14)); | 
|---|
|  |  |  | try{ | 
|---|
|  |  |  | LocalDate birthDate = LocalDate.of(birthYear, birthMonth, birthDay); | 
|---|
|  |  |  | LocalDate currentDate = LocalDate.now(); | 
|---|
|  |  |  | long age = ChronoUnit.YEARS.between(birthDate, currentDate); | 
|---|
|  |  |  | return age; | 
|---|
|  |  |  | try { | 
|---|
|  |  |  | int birthYear = Integer.parseInt(idCard.substring(6, 10)); | 
|---|
|  |  |  | int birthMonth = Integer.parseInt(idCard.substring(10, 12)); | 
|---|
|  |  |  | int birthDay = Integer.parseInt(idCard.substring(12, 14)); | 
|---|
|  |  |  | try{ | 
|---|
|  |  |  | LocalDate birthDate = LocalDate.of(birthYear, birthMonth, birthDay); | 
|---|
|  |  |  | LocalDate currentDate = LocalDate.now(); | 
|---|
|  |  |  | long age = ChronoUnit.YEARS.between(birthDate, currentDate); | 
|---|
|  |  |  | return age; | 
|---|
|  |  |  | }catch (Exception e){ | 
|---|
|  |  |  | throw new BusinessException(ResponseStatus.BAD_REQUEST.getCode(),"身份证号码错误:"+idCard); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }catch (Exception e){ | 
|---|
|  |  |  | throw new BusinessException(ResponseStatus.BAD_REQUEST.getCode(),"身份证号码错误:"+idCard); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  | return 0; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public  enum ApplyCollectStatus { | 
|---|
|  |  |  | DSP(0, "待审批"), | 
|---|
|  |  |  | DSP(0, "待审核"), | 
|---|
|  |  |  | DCD(1, "待出单"), | 
|---|
|  |  |  | BZZ(2, "保障中"), | 
|---|
|  |  |  | YGQ(3, "已过期"), | 
|---|
|  |  |  | 
|---|
|  |  |  | WTBDCD(23, "待出单"), | 
|---|
|  |  |  | WTBYTH(24, "已退回"), | 
|---|
|  |  |  | WTBYGB(25, "已关闭"), | 
|---|
|  |  |  | WTBTBZ(26, "投保中"), | 
|---|
|  |  |  | //2024年4月25日15:17:13 修改 投保中 = 》 批改申请中 | 
|---|
|  |  |  | WTBTBZ(26, "批改申请中"), | 
|---|
|  |  |  | WTBBZZ(27, "保障中"), | 
|---|
|  |  |  | ; | 
|---|
|  |  |  | // 成员变量 | 
|---|
|  |  |  | 
|---|
|  |  |  | CA_JIAJIAN_APPLY_SIGN(23, "加减保申请企业签章","",1), | 
|---|
|  |  |  | CA_CHANGUNIT_APPLY_SIGN(24, "换厂申请企业签章","",1), | 
|---|
|  |  |  | CA_UPLOAD_AGAIN(25, "再次投保","",1), | 
|---|
|  |  |  | CA_HBD_AUDIT(42, "审批通过","原因:${param}",1), | 
|---|
|  |  |  |  | 
|---|
|  |  |  | WTB_FINISH_FAQRS(26, "委托保 - 企业完成签署方案确认书","",0), | 
|---|
|  |  |  | WTB_FINISH_MEMBER_LIST(27, "委托保 - 企业完成签署人员名单","",0), | 
|---|
|  |  |  | 
|---|
|  |  |  | CA_HBD_SIGNATURE_TBD(38, "商户签章","",4), | 
|---|
|  |  |  | CA_HBD_UPLOAD_INSURANCE(39, "投保完成","",4), | 
|---|
|  |  |  | CA_HBD_CLOSE(40, "退回申请","原因:${param}",4), | 
|---|
|  |  |  | CA_HBD_AUDIT(41, "审批通过","原因:${param}",4), | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public  enum NoticeType { | 
|---|
|  |  |  |  | 
|---|
|  |  |  | ZERO(0, "待审批","","","待审核","待处理","处理中"), | 
|---|
|  |  |  | ZERO(0, "待审核","","","待审核","待处理","处理中"), | 
|---|
|  |  |  | ONE(1, "企业待签署","","","工种待审核","","已结案"), | 
|---|
|  |  |  | TWO(2, "待出单","待审批","待审批","","",""), | 
|---|
|  |  |  | TWO(2, "待出单","待审核","待审核","","",""), | 
|---|
|  |  |  | THREE(3, "申请退回","申请退回","申请退回","","",""), | 
|---|
|  |  |  | FOUR(4, "已退回","已退回","已退回","","","已撤销"), | 
|---|
|  |  |  | FIVE(5, "申请驳回","申请驳回","申请驳回","","",""), | 
|---|