wlzboy
2025-11-09 fa5ea853099e88be253fca4fb2b0c2b7af5f396e
ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml
@@ -234,6 +234,9 @@
          <if test="status != null and status != ''">status = #{status},</if>
          <if test="oaUserId != null">oa_user_id = #{oaUserId},</if>
          <if test="oaOrderClass != null">oa_order_class = #{oaOrderClass},</if>
          <if test="openId != null and openId != ''">open_id = #{openId},</if>
          <if test="unionId != null and unionId != ''">union_id = #{unionId},</if>
          <if test="wechatNickname != null and wechatNickname != ''">wechat_nickname = #{wechatNickname},</if>
          <if test="loginIp != null and loginIp != ''">login_ip = #{loginIp},</if>
          <if test="loginDate != null">login_date = #{loginDate},</if>
          <if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
@@ -274,4 +277,10 @@
      limit 1
   </select>
   
   <!-- 通过微信OpenID查询用户 -->
   <select id="selectUserByOpenId" parameterType="String" resultMap="SysUserResult">
      <include refid="selectUserVo"/>
      where u.open_id = #{openId} and u.del_flag = '0'
   </select>
</mapper>