From a2979b5df06744de80c6be6218260e2fa701cce2 Mon Sep 17 00:00:00 2001
From: zhongrj <646384940@qq.com>
Date: Wed, 10 Jan 2024 20:27:42 +0800
Subject: [PATCH] 新增标签任务处理
---
src/main/java/org/springblade/modules/place/mapper/PlaceMapper.xml | 34 +++++++++++++++++++++-------------
1 files changed, 21 insertions(+), 13 deletions(-)
diff --git a/src/main/java/org/springblade/modules/place/mapper/PlaceMapper.xml b/src/main/java/org/springblade/modules/place/mapper/PlaceMapper.xml
index 209c32d..37d6417 100644
--- a/src/main/java/org/springblade/modules/place/mapper/PlaceMapper.xml
+++ b/src/main/java/org/springblade/modules/place/mapper/PlaceMapper.xml
@@ -65,21 +65,10 @@
and jp.source = #{place.source}
</if>
<if test="place.isPerfect==1">
- and
- (
- jp.place_name is null
- or jp.image_urls is null
- or jppl.poi_code is null
- or bu.real_name is null
- or bu.phone is null
- )
+ and jpe.confirm_flag = 4
</if>
<if test="place.isPerfect==2">
- and jp.place_name != ""
- and jp.image_urls != ""
- and jppl.poi_code is not null
- and bu.real_name != ""
- and bu.phone != ""
+ and jpe.confirm_flag >= 1 and jpe.confirm_flag < 4
</if>
<if test="place.regionCode != null and place.regionCode !='' ">
and jg.community_code like concat('%',#{place.regionCode},'%')
@@ -195,4 +184,23 @@
and jp.is_deleted = 0
and jp.source !=3
</select>
+
+ <!--根据标签编号集合查询对应的场所-->
+ <select id="getPlaceListByParam" resultType="org.springblade.modules.place.vo.PlaceVO">
+ select jp.* from jczz_place jp
+ left join jczz_place_poi_label jppl on jppl.place_id = jp.id
+ where jp.is_deleted = 0 and jppl.type = 3
+ and jppl.color = #{color}
+ <choose>
+ <when test="list!=null and list.size()>0">
+ and jppl.poi_code in
+ <foreach collection="list" item="id" separator="," open="(" close=")">
+ #{id}
+ </foreach>
+ </when>
+ <otherwise>
+ and jppl.poi_code in ('')
+ </otherwise>
+ </choose>
+ </select>
</mapper>
--
Gitblit v1.9.3