zouyu
2026-01-19 8f9bfe922937c49ec177f3750e7f814006c33eae
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>