| | |
| | | @Select("select ca.`name`,ca.street_id,ca.community_id,cs.`name` as streetName from com_act as ca left join com_street as cs on cs.street_id = ca.street_id where ca.state = 0 and ca.street_id = #{streetId}") |
| | | List<CommunitySwitchAllAppletsVO> getCommunityListByStreetId(@Param("streetId") Long streetId); |
| | | |
| | | @Select("<script> select ca.`name`,ca.street_id,ca.community_id,cs.`name` as streetName " + |
| | | "from com_act as ca " + |
| | | "left join com_street as cs on cs.street_id = ca.street_id " + |
| | | "where ca.state = 0 and ca.name like concat('%',#{name},'%') <if test='appId !=null and appId !=""'> and cs.app_id = #{appId} </if> </script> ") |
| | | // @Select("<script> select ca.`name`,ca.street_id,ca.community_id,cs.`name` as streetName " + |
| | | // "from com_act as ca " + |
| | | // "left join com_street as cs on cs.street_id = ca.street_id " + |
| | | // "where ca.state = 0 and ca.name like concat('%',#{name},'%') <if test='appId !=null and appId !=""'> and cs.app_id = #{appId} </if> </script> ") |
| | | List<CommunitySwitchAllAppletsVO> getCommunityListByName(@Param("name") String name,@Param("appId") String appId); |
| | | |
| | | @Select("SELECT c.community_id, c.`name`, c.street_id, cs.`name` as streetName," + |
| | |
| | | <mapper namespace="com.panzhihua.service_community.dao.ComActDAO"> |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | <select id="getCommunityListByName" resultType="com.panzhihua.common.model.vos.community.switchs.CommunitySwitchAllAppletsVO"> |
| | | select ca.`name`,ca.street_id,ca.community_id,cs.`name` as streetName |
| | | from com_act as ca |
| | | left join com_street as cs on cs.street_id = ca.street_id |
| | | where ca.state = 0 and ca.name like concat('%',#{name},'%') |
| | | <if test='appId !=null and appId !=""'> |
| | | and cs.app_id = #{appId} |
| | | </if> |
| | | </select> |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | <select id="oneTagThreeReal" resultType="com.panzhihua.common.model.vos.area.StreetAndBuildVO"> |
| | | select ca.name name,ca.community_id as communityId, |
| | | (select |
| | |
| | | nfpi.status, |
| | | nfpi.user_id |
| | | FROM new_fight_need_problem_inventory as nfpi |
| | | left join com_act_neighbor_circle_topic as canct on canct.id=nfpi.classify_id |
| | | left join com_act_neighbor_circle_topic_new as canct on canct.id=nfpi.classify_id |
| | | left join new_fight_need_problem_claim as nfnpc on nfnpc.task_id=nfpi.id and nfnpc.user_id=#{userIds} |
| | | <where> |
| | | 1=1 |
| | |
| | | nfpi.status, |
| | | nfpi.user_id |
| | | FROM new_fight_need_problem_inventory as nfpi |
| | | left join com_act_neighbor_circle_topic as canct on canct.id=nfpi.classify_id |
| | | left join com_act_neighbor_circle_topic_new as canct on canct.id=nfpi.classify_id |
| | | left join new_fight_need_problem_claim as nfnpc on nfnpc.task_id=nfpi.id and nfnpc.user_id=#{userIds} |
| | | <where> |
| | | 1=1 |