|  |  |  | 
|---|
|  |  |  | ); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  | memberInsuranceJoinMapper.insertBatchSomeColumn(memberInsuranceList); | 
|---|
|  |  |  | memberInsuranceJoinMapper.insert(memberInsuranceList); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | this.updateApplyCurrentFee(insuranceApply.getId(),null); | 
|---|
|  |  |  | 
|---|
|  |  |  | this.checkMemberSolution(solutions.getParentId(),member.getIdcardNo(),member.getName(),insuranceApply.getStartTime(),insuranceApply.getEndTime(),insuranceApply.getId()); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | if(CollectionUtils.isNotEmpty(addMemberList)){ | 
|---|
|  |  |  | memberJoinMapper.insertBatchSomeColumn(addMemberList); | 
|---|
|  |  |  | memberJoinMapper.insert(addMemberList); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | memberList.addAll(addMemberList); | 
|---|
|  |  |  | for (int i = 0; i < applyDetailList.size(); i++) { | 
|---|
|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  | Long end = System.currentTimeMillis(); | 
|---|
|  |  |  | logger.error("处理单数据结束时间:=========================>"+end +";耗时:====》"+(end-start)); | 
|---|
|  |  |  | applyDetailJoinMapper.insertBatchSomeColumn(applyDetailList); | 
|---|
|  |  |  | applyDetailJoinMapper.insert(applyDetailList); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  | return applyPowerVO; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //    @Override | 
|---|
|  |  |  | //    public InsuranceDataVO getInsuranceDataVO(){ | 
|---|
|  |  |  | //        InsuranceDataVO insuranceDataVO = new InsuranceDataVO(); | 
|---|
|  |  |  | //        insuranceDataVO.setInsuranceTotal(Constants.ZERO); | 
|---|
|  |  |  | //        insuranceDataVO.setInsuranceAddTotal(Constants.ZERO); | 
|---|
|  |  |  | //        insuranceDataVO.setInsuranceApplyTotal(Constants.ZERO); | 
|---|
|  |  |  | //        insuranceDataVO.setInsuranceApplyAddTotal(Constants.ZERO); | 
|---|
|  |  |  | //        insuranceDataVO.setInsuranceUserTotal(Constants.ZERO); | 
|---|
|  |  |  | //        insuranceDataVO.setInsuranceUserAddTotal(Constants.ZERO); | 
|---|
|  |  |  | //        insuranceDataVO.setTotalAddFee(BigDecimal.ZERO); | 
|---|
|  |  |  | //        insuranceDataVO.setTotalFee(BigDecimal.ZERO); | 
|---|
|  |  |  | //        //本月日期 | 
|---|
|  |  |  | //        String monthData = DateUtil.DateToStr(new Date(),"yyyy-MM"); | 
|---|
|  |  |  | //        //保险公司数量 | 
|---|
|  |  |  | //        List<Insurance> insuranceList = insuranceMapper.selectList(new QueryWrapper<Insurance>().lambda().eq(Insurance::getIsdeleted,Constants.ZERO).eq(Insurance::getStatus,Constants.ZERO)); | 
|---|
|  |  |  | //        if(CollectionUtils.isNotEmpty(insuranceList)){ | 
|---|
|  |  |  | //            insuranceDataVO.setInsuranceTotal(insuranceList.size()); | 
|---|
|  |  |  | //            insuranceDataVO.setInsuranceAddTotal(insuranceList.stream().filter(i->Objects.nonNull(i.getCreateDate())&&DateUtil.DateToStr(i.getCreateDate(),"yyyy-MM").equals(monthData)).collect(Collectors.toList()).size()); | 
|---|
|  |  |  | //        } | 
|---|
|  |  |  | // | 
|---|
|  |  |  | //        //保单数量 | 
|---|
|  |  |  | //        List<InsuranceApply> insuranceApplyList = insuranceApplyMapper.selectList(new QueryWrapper<InsuranceApply>() | 
|---|
|  |  |  | //                .lambda().eq(InsuranceApply::getIsdeleted,Constants.ZERO).in(InsuranceApply::getStatus, | 
|---|
|  |  |  | //                Constants.InsuranceApplyStatus.UPLOAD_INSURANCE.getKey(),Constants.InsuranceApplyStatus.WTB_DONE.getKey()) | 
|---|
|  |  |  | //        ); | 
|---|
|  |  |  | //        if(CollectionUtils.isNotEmpty(insuranceApplyList)){ | 
|---|
|  |  |  | //            insuranceDataVO.setInsuranceApplyTotal(insuranceApplyList.size()); | 
|---|
|  |  |  | //            insuranceDataVO.setInsuranceApplyAddTotal(insuranceApplyList.stream().filter(i->Objects.nonNull(i.getCreateDate())&&DateUtil.DateToStr(i.getCreateDate(),"yyyy-MM").equals(monthData)).collect(Collectors.toList()).size()); | 
|---|
|  |  |  | //        } | 
|---|
|  |  |  | // | 
|---|
|  |  |  | //        //在保人数 | 
|---|
|  |  |  | //        List<ApplyDetail> applyDetailList = applyDetailJoinMapper.selectJoinList(ApplyDetail.class,new MPJLambdaWrapper<ApplyDetail>().selectAll(ApplyDetail.class) | 
|---|
|  |  |  | //                .leftJoin(InsuranceApply.class,InsuranceApply::getId,ApplyDetail::getApplyId) | 
|---|
|  |  |  | //                .eq(InsuranceApply::getIsdeleted,Constants.ZERO).in(InsuranceApply::getStatus, | 
|---|
|  |  |  | //                        Constants.InsuranceApplyStatus.UPLOAD_INSURANCE.getKey(),Constants.InsuranceApplyStatus.WTB_DONE.getKey()) | 
|---|
|  |  |  | //                .eq(ApplyDetail::getIsdeleted,Constants.ZERO) | 
|---|
|  |  |  | //                .apply(" ( t.START_TIME >= now() and t.END_TIME <= now() ) ") | 
|---|
|  |  |  | //        ); | 
|---|
|  |  |  | //        if(CollectionUtils.isNotEmpty(applyDetailList)){ | 
|---|
|  |  |  | //            insuranceDataVO.setInsuranceUserTotal(applyDetailList.size()); | 
|---|
|  |  |  | //            insuranceDataVO.setInsuranceUserAddTotal( | 
|---|
|  |  |  | //                    applyDetailList.stream().filter(i->Objects.nonNull(i.getCreateDate())&&DateUtil.DateToStr(i.getCreateDate(),"yyyy-MM") | 
|---|
|  |  |  | //                            .equals(monthData)).collect(Collectors.toList()).size()); | 
|---|
|  |  |  | // | 
|---|
|  |  |  | //            insuranceDataVO.setTotalFee(applyDetailList.stream().map(i->i.getFee()).reduce(BigDecimal.ZERO,BigDecimal::add)); | 
|---|
|  |  |  | //            insuranceDataVO.setTotalAddFee(applyDetailList.stream() | 
|---|
|  |  |  | //                    .filter(i->Objects.nonNull(i.getCreateDate())&&DateUtil.DateToStr(i.getCreateDate(),"yyyy-MM") | 
|---|
|  |  |  | //                    .equals(monthData)).map(i->i.getFee()).reduce(BigDecimal.ZERO,BigDecimal::add)); | 
|---|
|  |  |  | //        } | 
|---|
|  |  |  | // | 
|---|
|  |  |  | //        return insuranceDataVO; | 
|---|
|  |  |  | //    } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|