From 42a0781964054efcda982f8e5f79808450c675d2 Mon Sep 17 00:00:00 2001 From: 101captain <237651143@qq.com> Date: 星期五, 21 一月 2022 14:04:53 +0800 Subject: [PATCH] 仁和区bug修改 --- springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ConvenientMerchantServiceImpl.java | 11 ++++++++++- 1 files changed, 10 insertions(+), 1 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 6c9aa04..9af65f8 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 @@ -80,13 +80,22 @@ @Resource private ConvenientViewStatisticsDAO convenientViewStatisticsDAO; + private static final String DQ="510402"; + private static final String RHQ="510411"; + @Override @Transactional(rollbackFor = Exception.class) public R addMerchant(ConvenientMerchantDTO convenientMerchantDTO) { ConvenientMerchantDO convenientMerchantDO = new ConvenientMerchantDO(); BeanUtils.copyProperties(convenientMerchantDTO, convenientMerchantDO); if(convenientMerchantDTO.getCommunityId()==0){ - convenientMerchantDO.setCommunityName("西区社区"); + if(DQ.equals(convenientMerchantDTO.getAreaCode())){ + convenientMerchantDO.setCommunityName("东区社区"); + }else if(RHQ.equals(convenientMerchantDTO.getAreaCode())){ + convenientMerchantDO.setCommunityName("仁和区社区"); + }else{ + convenientMerchantDO.setCommunityName("西区社区"); + } } else { ComActDO comActDO = comActDAO.selectById(convenientMerchantDTO.getCommunityId()); -- Gitblit v1.7.1