| | |
| | | if(solutions.getInsureCycleUnit().equals(Constants.ZERO)){ |
| | | countCyclePriceVO.setEndDate( |
| | | DateUtil.getMontageDate( |
| | | DateUtil.afterDateByType(startDate,0,solutions.getInsureCycle()) |
| | | DateUtil.afterDateByType(startDate,0,solutions.getInsureCycle()-1) |
| | | ,2) |
| | | ); |
| | | }else if(solutions.getInsureCycleUnit().equals(Constants.TWO)){ |
| | |
| | | //获取天数后的日期 |
| | | Date afterDate = DateUtil.afterDateByType(startDate,0,monthDays); |
| | | //赋值 每日结束时分秒 |
| | | countCyclePriceVO.setEndDate(DateUtil.getMontageDate(afterDate,2)); |
| | | countCyclePriceVO.setEndDate(DateUtil.getMontageDate(afterDate,3)); |
| | | }else if(solutions.getInsureCycleUnit().equals(Constants.THREE)){ |
| | | //获取X年后日期 多了一天 |
| | | Date afterDate = DateUtil.afterDateByType(startDate,2,solutions.getInsureCycle()); |
| | |
| | | public static Integer getSexByIdCard(String idCard){ |
| | | Pattern pattern = Pattern.compile("\\d{17}[\\d|x]"); // 定义身份证号码格式的正则表达式 |
| | | Matcher matcher = pattern.matcher(idCard); |
| | | Integer sex = 1; |
| | | Integer sex = 0; |
| | | if (matcher.matches()) { |
| | | int genderCode = Integer.parseInt(idCard.substring(16, 17)); // 从第17位开始提取性别编码(奇数为男性,偶数为女性) |
| | | if ((genderCode % 2 == 1) ) { |
| | | sex = 1; |
| | | sex = 0; |
| | | } else { |
| | | sex = 2; |
| | | sex = 1; |
| | | } |
| | | } else { |
| | | sex = -1; |
| | |
| | | CA_PALTFORM_EDIT_PIDAN(21, "修改批单","修改原因:${param}",1), |
| | | PALTFORM_EDIT_BD(22, "修改保单","修改原因:${param}",1), |
| | | CA_JIAJIAN_APPLY_SIGN(23, "加减保申请企业签章","",1), |
| | | CA_CHANGUNIT_APPLY_SIGN(24, "换成申请企业签章","",1), |
| | | CA_CHANGUNIT_APPLY_SIGN(24, "换厂申请企业签章","",1), |
| | | CA_UPLOAD_AGAIN(25, "再次投保","",1), |
| | | ; |
| | | // 成员变量 |