| | |
| | | import java.math.RoundingMode; |
| | | import java.net.URL; |
| | | import java.net.URLDecoder; |
| | | import java.time.Instant; |
| | | import java.time.LocalDate; |
| | | import java.time.Period; |
| | | import java.time.ZoneId; |
| | | import java.time.temporal.ChronoUnit; |
| | | import java.util.*; |
| | | import java.util.Date; |
| | |
| | | } |
| | | return Constants.countPriceVO(countCyclePriceDTO.getStartDate(),countCyclePriceDTO.getSolutions()); |
| | | } |
| | | |
| | | public static int calculateAge(String idCard,Date dateDate) { |
| | | try{ |
| | | Integer happenYear = Integer.valueOf(DateUtil.dateToString(dateDate,"yyyy")); |
| | | Integer birthYear = Integer.valueOf(idCard.substring(6,10)); |
| | | return happenYear - birthYear; |
| | | }catch (Exception e){ |
| | | throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(),"年龄信息错误"); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | // if (idCard == null || idCard.length() != 18) { |
| | | // throw new IllegalArgumentException("身份证号码必须是18位"); |
| | | // } |
| | | // |
| | | // // 提取出生日期 |
| | | // String birthDateStr = idCard.substring(6, 14); // 例如:19900101 |
| | | // LocalDate birthDate = LocalDate.parse(birthDateStr); |
| | | // Instant instant = dateDate.toInstant(); |
| | | // // 获取当前日期 |
| | | // LocalDate currentDate = instant.atZone(ZoneId.systemDefault()).toLocalDate(); // 转换为 LocalDate |
| | | // |
| | | // // 计算年龄 |
| | | // Period period = Period.between(birthDate, currentDate); |
| | | // int age = period.getYears(); // 直接获取年份差即为年龄 |
| | | |
| | | // return age; |
| | | } |
| | | |
| | | |
| | | public static CountCyclePriceVO countPriceVO(Date startDate, Solutions solutions){ |
| | | CountCyclePriceVO countCyclePriceVO = new CountCyclePriceVO(); |
| | |
| | | |
| | | public enum NoticeType { |
| | | |
| | | ZERO(0, "待审核","","","待审核","待处理","待审核","待签署","待签署"), |
| | | ONE(1, "企业待签署","","","工种待审核","","已退回","",""), |
| | | TWO(2, "待出单","待审核","待审核","","","待受理","",""), |
| | | ZERO(0, "待审核","","","待审核","待处理","风险案件待审核","待签署","待签署"), |
| | | //理赔通知企业(非待办) |
| | | ONE(1, "企业待签署","","","工种待审核","","风险案件立案退回","",""), |
| | | TWO(2, "待出单","待审核","待审核","","","已立案待受理","",""), |
| | | THREE(3, "申请退回","申请退回","申请退回","","","已受理,需要补充材料","",""), |
| | | FOUR(4, "已退回","已退回","已退回","","","已拒绝","",""), |
| | | //理赔通知企业(非待办) |
| | | FOUR(4, "已退回","已退回","已退回","","","已拒绝受理","",""), |
| | | FIVE(5, "申请驳回","申请驳回","申请驳回","","","商议待领导审批","",""), |
| | | //续保通知 |
| | | SIX(6, "","","","","","商议审批拒绝","",""), |
| | | //商户端 委托保 - 投保待审核 加减保 换厂 待审核 |
| | | //商户端 委托保 - 投保待审核 加减保 换厂 待审核, 理赔通知企业(非待办) |
| | | SEVEN(7, "待审核","待审核","待审核","","","商议审批拒绝通知","",""), |
| | | //待复审 |
| | | EIGHT(8, "待审核","","","","","待理算","",""), |
| | |
| | | TEN(10, "","","","","","待核赔确认","",""), |
| | | ELEVEN(11, "","","","","","赔付金额已变更","",""), |
| | | TWELVE(12, "","","","","","待结案","",""), |
| | | THIRTEEN(13, "","","","","","已结案","",""), |
| | | //理赔通知平台(非代办) |
| | | THIRTEEN(13, "","","","","","已结案,赔付款项将在1-3个工作日内到账","",""), |
| | | //理赔通知平台(非代办) |
| | | FOURTEEN(14, "","","","","","已撤案","",""), |
| | | //理赔通知企业(非待办) |
| | | FIFTEEN(15, "","","","","","已受理待理算","",""), |
| | | //理赔通知企业(非待办) |
| | | SIXTEEN(16, "","","","","","受理审批中","",""), |
| | | //理赔通知企业(非待办) |
| | | SEVENTEEN(17, "","","","","","已理算待核赔","",""), |
| | | //理赔通知企业(非待办) |
| | | EIGHTEEN(18, "","","","","","待结案,赔付金额已变更","",""), |
| | | ; |
| | | |
| | | // 成员变量 |
| | |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | |
| | | // 普通方法 |
| | | public static SettleClaimsLogParentStatus getAll(int index) { |