From 7e346c75d1878d4b6dc24ecdf4ba8c27452c37e0 Mon Sep 17 00:00:00 2001 From: k94314517 <8417338+k94314517@user.noreply.gitee.com> Date: 星期五, 29 三月 2024 15:03:57 +0800 Subject: [PATCH] git ch --- server/service/src/main/java/com/doumee/service/business/impl/InsuranceApplyServiceImpl.java | 24 +++++++++++++++++++++++- 1 files changed, 23 insertions(+), 1 deletions(-) diff --git a/server/service/src/main/java/com/doumee/service/business/impl/InsuranceApplyServiceImpl.java b/server/service/src/main/java/com/doumee/service/business/impl/InsuranceApplyServiceImpl.java index 6292a25..9cc0e6a 100644 --- a/server/service/src/main/java/com/doumee/service/business/impl/InsuranceApplyServiceImpl.java +++ b/server/service/src/main/java/com/doumee/service/business/impl/InsuranceApplyServiceImpl.java @@ -1621,13 +1621,34 @@ QueryWrapper<InsuranceApply> wrapper = new QueryWrapper<>(insuranceApply); return insuranceApplyMapper.selectList(wrapper); } + + public List<Integer> getCollectStatus(Integer collectStatus){ + List<Integer> statusList = Constants.InsuranceApplyStatus.getKesByStatus(collectStatus); + if(collectStatus.equals(Constants.ApplyCollectStatus.DCD)){ + statusList.addAll(Constants.InsuranceApplyStatus.getKesByStatus(Constants.ApplyCollectStatus.WTBDCD.getKey())); + }else if(collectStatus.equals(Constants.ApplyCollectStatus.DSP)){ + statusList.addAll(Constants.InsuranceApplyStatus.getKesByStatus(Constants.ApplyCollectStatus.WTBDSH.getKey())); + }else if(collectStatus.equals(Constants.ApplyCollectStatus.BZZ)){ + statusList.addAll(Constants.InsuranceApplyStatus.getKesByStatus(Constants.ApplyCollectStatus.WTBBZZ.getKey())); + }else if(collectStatus.equals(Constants.ApplyCollectStatus.YTH)){ + statusList.addAll(Constants.InsuranceApplyStatus.getKesByStatus(Constants.ApplyCollectStatus.WTBYTH.getKey())); + }else if(collectStatus.equals(Constants.ApplyCollectStatus.YGB)){ + statusList.addAll(Constants.InsuranceApplyStatus.getKesByStatus(Constants.ApplyCollectStatus.WTBYGB.getKey())); + }else if(collectStatus.equals(Constants.ApplyCollectStatus.DQYQZ)){ + statusList.addAll(Constants.InsuranceApplyStatus.getKesByStatus(Constants.ApplyCollectStatus.WTBDQS.getKey())); + } + + return statusList; + } @Override public PageData<InsuranceApply> findPage(PageWrap<InsuranceApplyQueryDTO> pageWrap) { IPage<InsuranceApply> page = new Page<>(pageWrap.getPage(), pageWrap.getCapacity()); MPJLambdaWrapper<InsuranceApply> queryWrapper = new MPJLambdaWrapper<>(); Utils.MP.blankToNull(pageWrap.getModel()); - List<Integer> statusList = Constants.InsuranceApplyStatus.getKesByStatus(pageWrap.getModel().getStatusCollect()); + + List<Integer> statusList = this.getCollectStatus(pageWrap.getModel().getStatusCollect()); + queryWrapper.selectAll(InsuranceApply.class); queryWrapper.selectAs(Company::getName,InsuranceApply::getCompanyName); queryWrapper.selectAs(Solutions::getName,InsuranceApply::getSolutionsName); @@ -2163,6 +2184,7 @@ ){ throw new BusinessException(ResponseStatus.BAD_REQUEST); } + smsEmailService.validateCode(smsCheckDTO.getCode()); MPJLambdaWrapper wrapper= new MPJLambdaWrapper<InsuranceApply>() -- Gitblit v1.9.3