From 397c032f84533f96108ab487e87d2469c76b8d27 Mon Sep 17 00:00:00 2001
From: yanghui <2536613402@qq.com>
Date: 星期四, 10 十一月 2022 10:42:49 +0800
Subject: [PATCH] #feat 便民服务订单、支付基础类添加

---
 springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ConvenientElevatingPointServiceImpl.java |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ConvenientElevatingPointServiceImpl.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ConvenientElevatingPointServiceImpl.java
index fb4ef7c..30d72c2 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ConvenientElevatingPointServiceImpl.java
+++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ConvenientElevatingPointServiceImpl.java
@@ -67,7 +67,7 @@
         BeanUtils.copyProperties(convenientElevatingPointDTO,convenientElevatingPointDO);
         String communityId = convenientElevatingPointDTO.getCommunityId();
         if (nonNull(communityId)) {
-            ComActDO comActDO = comActDAO.selectById(Long.parseLong(communityId.substring(communityId.lastIndexOf(","))));
+            ComActDO comActDO = comActDAO.selectById(Long.parseLong(communityId.substring(communityId.lastIndexOf(",")+1)));
             if(comActDO!=null){
                 convenientElevatingPointDO.setCommunityName(comActDO.getName());
             }
@@ -91,7 +91,7 @@
         }
         String communityId = convenientElevatingPointDTO.getCommunityId();
         if (nonNull(communityId)) {
-            ComActDO comActDO = comActDAO.selectById(Long.parseLong(communityId.substring(communityId.lastIndexOf(","))));
+            ComActDO comActDO = comActDAO.selectById(Long.parseLong(communityId.substring(communityId.lastIndexOf(",")+1)));
             if(comActDO!=null){
                 convenientElevatingPointDO.setCommunityName(comActDO.getName());
             }

--
Gitblit v1.7.1