From ebd8f7437df11b5f59d4e96eed5208fc80e83cff Mon Sep 17 00:00:00 2001 From: yanghui <2536613402@qq.com> Date: 星期二, 06 十二月 2022 14:11:28 +0800 Subject: [PATCH] Merge branch 'local_20221104' into huacheng_test --- springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ConvenientMerchantServiceImpl.java | 9 +++++---- 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ConvenientMerchantServiceImpl.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ConvenientMerchantServiceImpl.java index a6e2afa..e837558 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ConvenientMerchantServiceImpl.java +++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ConvenientMerchantServiceImpl.java @@ -125,6 +125,7 @@ if (isNull(convenientMerchantDO)) { return R.fail("商家不存在"); } + BeanUtils.copyProperties(convenientMerchantDTO, convenientMerchantDO); if (nonNull(merchantDO) && !merchantDO.getId().equals(convenientMerchantDO.getId())) { R.fail("该微信手机号:" + mobilePhone + "已被使用!请更换"); } @@ -154,7 +155,7 @@ convenientServiceCategoryDO.getName(), convenientMerchantDTO.getCreatedBy()); }); } - BeanUtils.copyProperties(convenientMerchantDTO, convenientMerchantDO); + convenientMerchantDO.setIntroduction(convenientMerchantDTO.getIntroduction()); this.baseMapper.updateById(convenientMerchantDO); return R.ok(); @@ -190,7 +191,7 @@ @Override public R getMerchant(Long merchantId) { ConvenientMerchantVO convenientMerchantVO = this.baseMapper.selectMerchantById(merchantId); - List<Long> serviceIds = convenientServiceCategoryDAO.selectServiceIdsForMerchant(merchantId); + List<String> serviceIds = convenientServiceCategoryDAO.selectServiceIdsForMerchant(merchantId); convenientMerchantVO.setServiceIds(serviceIds); return R.ok(convenientMerchantVO); } @@ -272,7 +273,7 @@ Long merchantId = merchantDO.getId(); ConvenientMerchantVO convenientMerchantVO = new ConvenientMerchantVO(); BeanUtils.copyProperties(merchantDO, convenientMerchantVO); - List<Long> serviceIds = convenientServiceCategoryDAO.selectServiceIdsForMerchant(merchantId); + List<String> serviceIds = convenientServiceCategoryDAO.selectServiceIdsForMerchant(merchantId); convenientMerchantVO.setServiceIds(serviceIds); Date nowDate = new Date(); SimpleDateFormat mothFormat = new SimpleDateFormat("yyyy-MM"); @@ -484,7 +485,7 @@ return R.fail("商家不存在"); } Long merchantId = convenientMerchantVO.getId(); - List<Long> serviceIds = convenientServiceCategoryDAO.selectServiceIdsForMerchant(merchantId); + List<String> serviceIds = convenientServiceCategoryDAO.selectServiceIdsForMerchant(merchantId); convenientMerchantVO.setServiceIds(serviceIds); BigDecimal score = comShopFlowerEvaluateDAO.statisticsScore(merchantId); convenientMerchantVO.setScore(null == score ? BigDecimal.ZERO : NumberUtil.round(score, 1)); -- Gitblit v1.7.1