|
|
|
@@ -13,11 +13,12 @@ |
|
|
|
<result column="type" jdbcType="INTEGER" property="type" /> |
|
|
|
<result column="tenant_id" jdbcType="VARCHAR" property="tenantId" /> |
|
|
|
<result column="email_bg_img" property="emailBgImg" /> |
|
|
|
<result column="open" property="open" /> |
|
|
|
|
|
|
|
</resultMap> |
|
|
|
|
|
|
|
<sql id="allColumns"> |
|
|
|
`id`,`name`,`signature`,`content`,`createtime`,`status`,`minutes`,`model_id`,`type`,`tenant_id`,email_bg_img |
|
|
|
`id`,`name`,`signature`,`content`,`createtime`,`status`,`minutes`,`model_id`,`type`,`tenant_id`,email_bg_img,`open` |
|
|
|
</sql> |
|
|
|
|
|
|
|
<sql id="dynamicWhereConditions"> |
|
|
|
@@ -32,6 +33,7 @@ |
|
|
|
<if test=" null != modelId "> and `model_id` = #{modelId} </if> |
|
|
|
<if test=" null != type "> and `type` = #{type} </if> |
|
|
|
<if test=" null != tenantId "> and `tenant_id` = #{tenantId} </if> |
|
|
|
<if test=" null != open "> and `open` = #{open} </if> |
|
|
|
|
|
|
|
<if test=" null != ids "> |
|
|
|
and id in |
|
|
|
|