修改3-15问题
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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 <= #{endTime} and use_status = 0
|
||||
</update>
|
||||
</mapper>
|
||||
|
||||
@@ -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) < per_limit limit #{limit}
|
||||
|
||||
</select>
|
||||
<select id="selectRecive" resultMap="BaseResultMap">
|
||||
|
||||
Reference in New Issue
Block a user