From b2dd01e7ea2b7e37b5f81302f589401fe7e1636d Mon Sep 17 00:00:00 2001 From: huanghongfa <huanghongfa123456> Date: 星期五, 07 五月 2021 16:36:13 +0800 Subject: [PATCH] 创建订单返回订单 --- springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComCvtBusinessServiceImpl.java | 13 +++++++++++-- 1 files changed, 11 insertions(+), 2 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComCvtBusinessServiceImpl.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComCvtBusinessServiceImpl.java index de32519..57e27d8 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComCvtBusinessServiceImpl.java +++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComCvtBusinessServiceImpl.java @@ -150,8 +150,17 @@ } ComCvtBusinessVO comCvtBusinessVO = new ComCvtBusinessVO(); BeanUtils.copyProperties(comCvtBusinessDO, comCvtBusinessVO); - List<Long> areaIds = comCvtBusinessAreaService.getBusinessServiceAreaIds(comCvtBusinessDO.getId()); - List<ComActDO> comActDOS = comActDAO.selectBatchIds(areaIds); + List<ComActDO> comActDOS = new ArrayList<>(); + + if(comCvtBusinessDO.getAreaFlag()==1){ + comActDOS = comActDAO.selectList(new QueryWrapper<ComActDO>().lambda().eq(ComActDO::getState,0)); + }else{ + List<Long> areaIds = comCvtBusinessAreaService.getBusinessServiceAreaIds(comCvtBusinessDO.getId()); + if(!ObjectUtils.isEmpty(areaIds)){ + comActDOS = comActDAO.selectBatchIds(areaIds); + } + } + if (!ObjectUtils.isEmpty(comActDOS)) { List<ComActVO> comActVOS = new ArrayList<>(); comActDOS.forEach(comActDO -> { -- Gitblit v1.7.1