This commit is contained in:
shuo.wang
2025-04-01 17:08:40 +08:00
parent 4b59c1659e
commit 20f3f36347
8 changed files with 27 additions and 15 deletions

View File

@@ -112,7 +112,7 @@
</foreach>
</if>
<if test="request.areaCode!=null and request.areaCode!=''">
and (province_code = #{request.areaCode} || city_code = #{request.areaCode} || county_code = #{request.areaCode})
and (province_code = #{request.areaCode} or city_code = #{request.areaCode} or district_code = #{request.areaCode})
</if>
order by id desc
</select>
@@ -213,7 +213,7 @@
and storage_status = #{request.storageStatus}
</if>
<if test="request.areaCode!=null and request.areaCode!=''">
and (province_code = #{request.areaCode} || city_code = #{request.areaCode} || county_code = #{request.areaCode})
and (province_code = #{request.areaCode} or city_code = #{request.areaCode} or district_code = #{request.areaCode})
</if>
order by id desc
</select>
@@ -235,13 +235,17 @@
a.create_time as createTime,
a.opportunity_point_code as opportunityPointCode,
a.opportunity_point_name as opportunityPointName,
a.picture_obj as pictureObj,
c.picture_obj as pictureObj,
a.point_area as pointArea,
b.landlord_mobile as landlordMobile,
b.month_rent as monthRent,
c.landlord_mobile as landlordMobile,
c.month_rent as monthRent
from xfsg_point_info a
left join xfsg_point_recommend b on a.id = b.point_id
where a.line_id = #{lineId} and a.point_source = 2
LEFT JOIN xfsg_point_detail_info c on a.id = c.point_id
<if test="request.areaCode!=null and request!=''">
and (a.province_code = #{request.areaCode} or a.city_code = #{request.areaCode} or a.district_code =
#{request.areaCode})
</if>
</select>
<update id="recyclePoint">

View File

@@ -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>

View File

@@ -14,7 +14,7 @@
<insert id="batchInsert">
insert into xfsg_tally_book_detail (tally_book_id, field_name, field_value, create_time, update_time)
values
<foreach collection="tallyBookDetailDOList" item="item" separator=",">
<foreach collection="list" item="item" separator=",">
(#{item.tallyBookId,jdbcType=BIGINT},
#{item.fieldName,jdbcType=VARCHAR},
#{item.fieldValue,jdbcType=DECIMAL},