|
|
|
@@ -13,10 +13,12 @@ |
|
|
|
<result column="create_date" jdbcType="TIMESTAMP" property="createDate" /> |
|
|
|
<result column="update_date" jdbcType="TIMESTAMP" property="updateDate" /> |
|
|
|
<result column="expire_date" jdbcType="TIMESTAMP" property="expireDate" /> |
|
|
|
<result column="present_id" jdbcType="TIMESTAMP" property="presentId"/> |
|
|
|
|
|
|
|
</resultMap> |
|
|
|
|
|
|
|
<sql id="allColumns"> |
|
|
|
`id`,`tenant_id`,`coupon_id`,`coupon_short`,`password`,`status`,`sended_phone`,`card_id`,`create_date`,`update_date`,`expire_date` |
|
|
|
`id`,`tenant_id`,`coupon_id`,`coupon_short`,`password`,`status`,`sended_phone`,`card_id`,`create_date`,`update_date`,`expire_date`,`present_id` |
|
|
|
</sql> |
|
|
|
|
|
|
|
<sql id="dynamicWhereConditions"> |
|
|
|
@@ -54,6 +56,11 @@ |
|
|
|
<if test=" null != expireDate "> |
|
|
|
and `expire_date` > #{expireDate} |
|
|
|
</if> |
|
|
|
|
|
|
|
<if test=" null != presentId "> |
|
|
|
and `present_id` > #{presentId} |
|
|
|
</if> |
|
|
|
|
|
|
|
<if test=" null != ids "> |
|
|
|
and id in |
|
|
|
<foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> |
|
|
|
|