BUG
jiangqs
2023-04-24 aa2eae024f8f251c8e2b9eace5351dea7e315ed7
hrt-modules/hrt-system/src/main/resources/mapper/system/user/SysPostMapper.xml
@@ -4,7 +4,7 @@
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.hrt.system.mapper.user.SysPostMapper">
   <resultMap type="SysPost" id="SysPostResult">
   <resultMap type="com.hrt.system.domain.poji.user.SysPost" id="SysPostResult">
      <id     property="postId"        column="post_id"       />
      <result property="postCode"      column="post_code"     />
      <result property="postName"      column="post_name"     />
@@ -22,7 +22,7 @@
      from sys_post
    </sql>
   
   <select id="selectPostList" parameterType="SysPost" resultMap="SysPostResult">
   <select id="selectPostList" parameterType="com.hrt.system.domain.poji.user.SysPost" resultMap="SysPostResult">
       <include refid="selectPostVo"/>
      <where>
         <if test="postCode != null and postCode != ''">
@@ -72,7 +72,7 @@
       where post_code=#{postCode} limit 1
   </select>
   
   <update id="updatePost" parameterType="SysPost">
   <update id="updatePost" parameterType="com.hrt.system.domain.poji.user.SysPost">
       update sys_post
       <set>
          <if test="postCode != null and postCode != ''">post_code = #{postCode},</if>
@@ -86,7 +86,7 @@
       where post_id = #{postId}
   </update>
    
    <insert id="insertPost" parameterType="SysPost" useGeneratedKeys="true" keyProperty="postId">
    <insert id="insertPost" parameterType="com.hrt.system.domain.poji.user.SysPost" useGeneratedKeys="true" keyProperty="postId">
       insert into sys_post(
          <if test="postId != null and postId != 0">post_id,</if>
          <if test="postCode != null and postCode != ''">post_code,</if>