src/main/resources/mapper/modules/MallMemberCouponMapper.xml
@@ -11,6 +11,7 @@ left join mall_goods_coupon b on b.id = a.coupon_id <where> a.member_id=#{record.memberId} and a.expire_time >= #{record.expireTime} <if test="record.state != null and record.state != ''"> and a.state=#{record.state} </if> @@ -21,4 +22,11 @@ order by a.CREATED_TIME desc </select> <select id="selectListByExpireTime" resultType="cc.mrbird.febs.mall.entity.MallMemberCoupon"> select a.* from mall_member_coupon a where a.expire_time <= #{date} </select> </mapper>