修改3-15问题

This commit is contained in:
2023-03-15 14:07:40 +08:00
parent 5c9813c1a6
commit f473451293
13 changed files with 95 additions and 4 deletions

View File

@@ -38,4 +38,11 @@
distance
LIMIT 0 , {pageSize}
</select>
<select id="pagerList" resultType="com.zscat.mallplus.build.entity.BuildingCommunity">
select bc.*,bwc.name companyName from building_community bc left join build_wuye_company bwc on bwc.id = bc.company_id
<where>
${ew.sqlSegment}
</where>
</select>
</mapper>

View File

@@ -61,4 +61,7 @@
order_sn, start_time, end_time, note
</sql>
<update id="updateUseStatus">
update sms_coupon_history set use_status = #{useStatus} where end_time &lt;= #{endTime} and use_status = 0
</update>
</mapper>

View File

@@ -58,9 +58,8 @@
</sql>
<select id="selectNotRecive" resultMap="BaseResultMap">
SELECT sms_coupon.* from sms_coupon where count>0 and now()>=start_time and end_time>=now() and id not in
(SELECT coupon_id from sms_coupon_history where member_id =
#{memberId}) limit #{limit}
SELECT sms_coupon.* from sms_coupon where count>0 and now()>=start_time and end_time>=now() and (SELECT count(*) from sms_coupon_history where member_id =
#{memberId} and sms_coupon.id = coupon_id) &lt; per_limit limit #{limit}
</select>
<select id="selectRecive" resultMap="BaseResultMap">