|
|
@@ -22,12 +22,21 @@ |
|
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime"/> |
|
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime"/> |
|
|
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime"/> |
|
|
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime"/> |
|
|
<result column="html" jdbcType="VARCHAR" property="html"/> |
|
|
<result column="html" jdbcType="VARCHAR" property="html"/> |
|
|
|
|
|
|
|
|
|
|
|
<result column="person_limit" jdbcType="INTEGER" property="personLimit"/> |
|
|
|
|
|
<result column="activity_time" jdbcType="TIMESTAMP" property="activityTime"/> |
|
|
|
|
|
<result column="use_credit" jdbcType="INTEGER" property="useCredit"/> |
|
|
|
|
|
<result column="credit" jdbcType="INTEGER" property="credit"/> |
|
|
|
|
|
<result column="question" jdbcType="VARCHAR" property="question"/> |
|
|
|
|
|
<result column="is_expired" jdbcType="INTEGER" property="isExpired"/> |
|
|
|
|
|
<result column="activity_type" jdbcType="INTEGER" property="activityType"/> |
|
|
|
|
|
|
|
|
</resultMap> |
|
|
</resultMap> |
|
|
|
|
|
|
|
|
<sql id="allColumns"> |
|
|
<sql id="allColumns"> |
|
|
`id`,`tenant_id`,`cover_img`,`cover_picture`,`detail_picture`,`title`,`sub_title`,`use_price`,`discount_price`,`detail`,`valid_start_date`,`valid_end_date`,`img_detail`,`type`,`coupon_ids`, |
|
|
`id`,`tenant_id`,`cover_img`,`cover_picture`,`detail_picture`,`title`,`sub_title`,`use_price`,`discount_price`,`detail`,`valid_start_date`,`valid_end_date`,`img_detail`,`type`,`coupon_ids`, |
|
|
`mechant_id`,`sort_num`,`status`,`create_time`,`update_time`,`html` |
|
|
|
|
|
|
|
|
`mechant_id`,`sort_num`,`status`,`create_time`,`update_time`,`html`, |
|
|
|
|
|
`person_limit`,`activity_time`,`use_credit`,`credit`,`question`,`is_expired`,`activity_type` |
|
|
</sql> |
|
|
</sql> |
|
|
|
|
|
|
|
|
<sql id="allCHeadColumns"> |
|
|
<sql id="allCHeadColumns"> |
|
|
@@ -114,6 +123,21 @@ |
|
|
<if test=" null != updateTime "> |
|
|
<if test=" null != updateTime "> |
|
|
and `update_time` = #{updateTime} |
|
|
and `update_time` = #{updateTime} |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
|
|
|
|
|
|
<if test=" null != useCredit "> |
|
|
|
|
|
and `use_credit` = #{useCredit} |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test=" null != isExpired "> |
|
|
|
|
|
and `is_expired` = #{isExpired} |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test=" null != activityType "> |
|
|
|
|
|
and `activity_type` = #{activityType} |
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
|
|
|
|
<if test=" null != starttime and null!=endtime "> |
|
|
|
|
|
and `create_time` between #{starttime} and #{endtime} |
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
|
<if test=" null != ids "> |
|
|
<if test=" null != ids "> |
|
|
and id in |
|
|
and id in |
|
|
<foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> |
|
|
<foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> |
|
|
|