|
|
|
@@ -15,11 +15,11 @@ |
|
|
|
<result column="update_date" jdbcType="TIMESTAMP" property="updateDate" /> |
|
|
|
<result column="expire_date" jdbcType="TIMESTAMP" property="expireDate" /> |
|
|
|
<result column="present_id" jdbcType="TIMESTAMP" property="presentId"/> |
|
|
|
|
|
|
|
<result column="is_stop" jdbcType="INTEGER" property="isStop"/> |
|
|
|
</resultMap> |
|
|
|
|
|
|
|
<sql id="allColumns"> |
|
|
|
`id`,`tenant_id`,`parent_tenant_id`,`coupon_id`,`coupon_short`,`password`,`status`,`sended_phone`,`card_id`,`create_date`,`update_date`,`expire_date`,`present_id` |
|
|
|
`id`,`tenant_id`,`parent_tenant_id`,`coupon_id`,`coupon_short`,`password`,`status`,`sended_phone`,`card_id`,`create_date`,`update_date`,`expire_date`,`present_id`,`is_stop` |
|
|
|
</sql> |
|
|
|
|
|
|
|
<sql id="dynamicWhereConditions"> |
|
|
|
@@ -27,6 +27,9 @@ |
|
|
|
<if test=" null != id "> |
|
|
|
and `id` = #{id} |
|
|
|
</if> |
|
|
|
<if test=" null != idLike and '' != idLike "> |
|
|
|
and `id` like concat('%',#{idLike},'%') |
|
|
|
</if> |
|
|
|
<if test=" null != tenantId and '' != tenantId"> |
|
|
|
and `tenant_id` = #{tenantId} |
|
|
|
</if> |
|
|
|
@@ -39,9 +42,12 @@ |
|
|
|
<if test=" null != couponShort "> |
|
|
|
and `coupon_short` = #{couponShort} |
|
|
|
</if> |
|
|
|
<if test=" null != password "> |
|
|
|
<if test=" null != password and '' != password"> |
|
|
|
and `password` = #{password} |
|
|
|
</if> |
|
|
|
</if> |
|
|
|
<if test=" null != passwordLike and '' != passwordLike "> |
|
|
|
and `password` like concat('%',#{passwordLike},'%') |
|
|
|
</if> |
|
|
|
<if test=" null != status "> |
|
|
|
and `status` = #{status} |
|
|
|
</if> |
|
|
|
@@ -65,6 +71,10 @@ |
|
|
|
and `present_id` = #{presentId} |
|
|
|
</if> |
|
|
|
|
|
|
|
<if test=" null != isStop "> |
|
|
|
and `is_stop` = #{isStop} |
|
|
|
</if> |
|
|
|
|
|
|
|
<if test=" null != ids "> |
|
|
|
and id in |
|
|
|
<foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> |
|
|
|
|