|
|
|
@@ -9,10 +9,12 @@ |
|
|
|
<result column="update_date" jdbcType="TIMESTAMP" property="updateDate" /> |
|
|
|
<result column="is_hide" jdbcType="INTEGER" property="isHide" /> |
|
|
|
<result column="status" jdbcType="INTEGER" property="status" /> |
|
|
|
<result column="type" jdbcType="INTEGER" property="type" /> |
|
|
|
<result column="parent_id" jdbcType="BIGINT" property="parentId" /> |
|
|
|
</resultMap> |
|
|
|
|
|
|
|
<sql id="allColumns"> |
|
|
|
`id`,`name`,`label`,`create_date`,`update_date`,`is_hide`,`status` |
|
|
|
`id`,`name`,`label`,`create_date`,`update_date`,`is_hide`,`status`,`type`,`parent_id` |
|
|
|
</sql> |
|
|
|
|
|
|
|
<sql id="dynamicWhereConditions"> |
|
|
|
@@ -29,6 +31,12 @@ |
|
|
|
<if test=" null != status "> |
|
|
|
and `status` = #{status} |
|
|
|
</if> |
|
|
|
<if test=" null != type "> |
|
|
|
and `type` = #{type} |
|
|
|
</if> |
|
|
|
<if test=" null != parentId "> |
|
|
|
and `parent_id` = #{parentId} |
|
|
|
</if> |
|
|
|
<if test=" null != ids "> |
|
|
|
and id in |
|
|
|
<foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> |
|
|
|
|