zouyu
昨天 848d609a35569b029bbdd5ab91c1df2a0f568819
src/main/resources/mapper/system/SysPostMapper.xml
@@ -73,8 +73,14 @@
      <include refid="selectPostVo"/>
       where post_code=#{postCode} limit 1
   </select>
   <update id="updatePost" parameterType="com.ruoyi.project.system.domain.SysPost">
    <select id="selectPostByTenantId" resultType="com.ruoyi.project.system.domain.SysPost">
        <include refid="selectPostVo"/>
        <where>
            AND p.tenant_id = #{tenantId}
        </where>
    </select>
    <update id="updatePost" parameterType="com.ruoyi.project.system.domain.SysPost">
       update sys_post
       <set>
          <if test="postCode != null and postCode != ''">post_code = #{postCode},</if>