Browse Source

fix: python gateway tenant code query

part of related: #13042
3.1.5-release
Jay Chung 2 years ago
parent
commit
b547024baf
  1. 10
      dolphinscheduler-dao/src/main/resources/org/apache/dolphinscheduler/dao/mapper/UserMapper.xml

10
dolphinscheduler-dao/src/main/resources/org/apache/dolphinscheduler/dao/mapper/UserMapper.xml

@ -33,9 +33,13 @@
</select>
<select id="queryByUserNameAccurately" resultType="org.apache.dolphinscheduler.dao.entity.User">
select
<include refid="baseSql"/>
from t_ds_user
where user_name=#{userName}
<include refid="baseSqlV2">
<property name="alias" value="u"/>
</include>
, t.tenant_code
from t_ds_user u
left join t_ds_tenant t on u.tenant_id = t.id
where u.user_name = #{userName}
</select>
<select id="queryUserByNamePassword" resultType="org.apache.dolphinscheduler.dao.entity.User">
select

Loading…
Cancel
Save