fix
This commit is contained in:
@@ -126,11 +126,12 @@
|
||||
p.create_time as createTime,
|
||||
p.opportunity_point_code as opportunityPointCode,
|
||||
p.opportunity_point_name as opportunityPointName,
|
||||
p.picture_obj as pictureObj,
|
||||
c.picture_obj as pictureObj,
|
||||
pr.status as recommendStatus
|
||||
from
|
||||
xfsg_point_recommend pr
|
||||
inner join xfsg_point_info p on p.id = pr.point_id
|
||||
left join xfsg_point_detail_info c on p.id = c.point_id
|
||||
where
|
||||
p.deleted = 0 and pr.shop_id = #{request.shopId} and pr.deleted = 0
|
||||
<if test="request.status != null and request.status == 1">
|
||||
@@ -142,8 +143,8 @@
|
||||
<if test="request.status != null and request.status == 3">
|
||||
and pr.status in (5, 6)
|
||||
</if>
|
||||
<if test="request.areaCode!=null and request.areaCode 1=''">
|
||||
and (p.province_code = #{request.areaCode} or p.city_code = #{request.areaCode} or p.area_code = #{request.areaCode})
|
||||
<if test="request.areaCode!=null and request.areaCode !=''">
|
||||
and (p.province_code = #{request.areaCode} or p.city_code = #{request.areaCode} or p.district_code = #{request.areaCode})
|
||||
</if>
|
||||
|
||||
</select>
|
||||
|
||||
Reference in New Issue
Block a user