| | |
| | | <result column="status" property="status" /> |
| | | <result column="point" property="point" /> |
| | | <result column="member_id" property="memberId" /> |
| | | |
| | | </resultMap> |
| | | |
| | | |
| | | <update id="activeBatchCouponTemplate"> |
| | | update t_coupon_template set status='active',update_by=#{param.updateBy},update_time=now() where id in |
| | | <foreach collection="param.idList" item="item" open="(" separator="," close=")"> |
| | |
| | | SELECT * |
| | | FROM t_coupon_template t |
| | | WHERE t.deleted = FALSE |
| | | AND t.get_start_date <= NOW() |
| | | AND NOW() <= t.get_end_date |
| | | <if test="param.category != null and param.category != '' and param.category == 'activity' "> |
| | | AND t.get_start_date <= NOW() |
| | | AND NOW() <= t.get_end_date |
| | | </if> |
| | | |
| | | <if test="param.category != null and param.category != ''"> |
| | | AND category = #{param.category} |
| | | </if> |