From 10df7e29b51d6a2efacc83d870856f57d97a9b66 Mon Sep 17 00:00:00 2001
From: yanghui <2536613402@qq.com>
Date: 星期一, 24 十月 2022 13:48:24 +0800
Subject: [PATCH] #feat 修改别名

---
 springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComActDAO.java |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComActDAO.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComActDAO.java
index a2d9b8a..fb6192b 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComActDAO.java
+++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComActDAO.java
@@ -63,8 +63,8 @@
     void updateAccountPassword(@Param("password") String password, @Param("account") String account,
         @Param("communityId") Long communityId);
 
-    @Select("select community_id,`name`,lng,lat from com_act where state = 0")
-    List<EventGridCommunityAdminVO> getCommunityLists();
+    @Select("select community_id,`name`,lng,lat from com_act where state = 0 and app_id =#{appId}")
+    List<EventGridCommunityAdminVO> getCommunityLists(@Param("appId") String appId);
 
     @Select("select ca.`name`,cmsap.province_name,cmsac.city_name,cmsad.district_name,ca.street_id,ca.community_id,cs.`name` as streetName from com_act as ca \n"
         + "left join com_mng_struct_area_province as cmsap on cmsap.province_adcode = ca.province_code\n"
@@ -113,4 +113,9 @@
     @Select("select name from com_pb_check_unit where id=#{id}")
     String selectUnitName(@Param("id") Long id);
 
+    @Select("select community_id from com_act where street_id=#{id}")
+    List<Long> selectCommunityByStreetId(Long id);
+    @Select("SELECT  caa.community_id FROM com_act caa WHERE caa.`name` = ( select ca.`name` FROM com_act ca WHERE ca.community_id =#{id})")
+    List<Long> selectIds(@Param("id") Long id);
+
 }

--
Gitblit v1.7.1