|
|
@@ -17,11 +17,12 @@ |
|
|
|
<result column="status" jdbcType="INTEGER" property="status"/> |
|
|
|
<result column="create_date" jdbcType="TIMESTAMP" property="createDate"/> |
|
|
|
<result column="update_date" jdbcType="TIMESTAMP" property="updateDate"/> |
|
|
|
<result column="first" jdbcType="INTEGER" property="first"/> |
|
|
|
</resultMap> |
|
|
|
|
|
|
|
|
|
|
|
<sql id="allColumns"> |
|
|
|
`id`,`tenant_id`,`parent_tenant_id`,`type`,`sub_type`,`tag`,`title`,`sub_title`,`detail`,`image`,`video`,`send_date`,`status`,`create_date`,`update_date` |
|
|
|
`id`,`tenant_id`,`parent_tenant_id`,`type`,`sub_type`,`tag`,`title`,`sub_title`,`detail`,`image`,`video`,`send_date`,`status`,`create_date`,`update_date`,`first` |
|
|
|
</sql> |
|
|
|
|
|
|
|
<sql id="dynamicWhereConditions"> |
|
|
@@ -65,6 +66,10 @@ |
|
|
|
<if test=" videHas == 1"> |
|
|
|
and `video` is not null and `video` != '' |
|
|
|
</if> |
|
|
|
|
|
|
|
<if test=" null != first"> |
|
|
|
and `first` = #{first} |
|
|
|
</if> |
|
|
|
|
|
|
|
<if test=" null != ids "> |
|
|
|
and id in |
|
|
|