|
|
@@ -10,6 +10,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="postName" column="post_name" />
|
|
|
<result property="postSort" column="post_sort" />
|
|
|
<result property="status" column="status" />
|
|
|
+ <result property="isRank" column="is_rank" />
|
|
|
<result property="createBy" column="create_by" />
|
|
|
<result property="createTime" column="create_time" />
|
|
|
<result property="updateBy" column="update_by" />
|
|
|
@@ -18,7 +19,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectPostVo">
|
|
|
- select post_id, post_code, post_name, post_sort, status, create_by, create_time, remark
|
|
|
+ select post_id, post_code, post_name, post_sort, status, is_rank, create_by, create_time, remark
|
|
|
from sys_post
|
|
|
</sql>
|
|
|
|
|
|
@@ -34,6 +35,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="postName != null and postName != ''">
|
|
|
AND post_name like concat('%', #{postName}, '%')
|
|
|
</if>
|
|
|
+ <if test="isRank != null and isRank != ''">
|
|
|
+ AND is_rank = #{isRank}
|
|
|
+ </if>
|
|
|
</where>
|
|
|
</select>
|
|
|
|
|
|
@@ -92,6 +96,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="postName != null and postName != ''">post_name = #{postName},</if>
|
|
|
<if test="postSort != null">post_sort = #{postSort},</if>
|
|
|
<if test="status != null and status != ''">status = #{status},</if>
|
|
|
+ <if test="isRank != null and isRank != ''">is_rank = #{isRank},</if>
|
|
|
<if test="remark != null">remark = #{remark},</if>
|
|
|
<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
|
|
|
update_time = sysdate()
|
|
|
@@ -106,6 +111,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="postName != null and postName != ''">post_name,</if>
|
|
|
<if test="postSort != null">post_sort,</if>
|
|
|
<if test="status != null and status != ''">status,</if>
|
|
|
+ <if test="isRank != null and isRank != ''">is_rank,</if>
|
|
|
<if test="remark != null and remark != ''">remark,</if>
|
|
|
<if test="createBy != null and createBy != ''">create_by,</if>
|
|
|
create_time
|
|
|
@@ -115,6 +121,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="postName != null and postName != ''">#{postName},</if>
|
|
|
<if test="postSort != null">#{postSort},</if>
|
|
|
<if test="status != null and status != ''">#{status},</if>
|
|
|
+ <if test="isRank != null and isRank != ''">#{isRank},</if>
|
|
|
<if test="remark != null and remark != ''">#{remark},</if>
|
|
|
<if test="createBy != null and createBy != ''">#{createBy},</if>
|
|
|
sysdate()
|