fix: 修改登录,三方标识查询由公司表,切换至部门表

pull/105/head
shuliYao 1 year ago
parent 0e1438645b
commit 342d5fb8af

@ -48,60 +48,35 @@
</sql> </sql>
<select id="listCount" resultType="java.lang.Long" parameterType="java.util.Map"> <select id="listCount" resultType="java.lang.Long" parameterType="java.util.Map">
select select count(u.ID) from s_user_t u
count(ten.ID) left join s_userobject_t uo on u.id = uo.USERID
from left join s_department_t dm on dm.id = uo.DEPARTID
S_TENANT_T ten where u.LOGINNAME =#{loginname} and dm.DESCRIPTION = #{otherno}
where
ten.OTHERNO = #{otherno}
and
ten.ID in (
select ue.TENANTID from
S_USER_T us,
S_USER_TENANT_T ue where us.LOGINNAME = #{loginname}
)
</select> </select>
<select id="listOthernoCount" resultType="java.lang.Long" parameterType="java.util.Map"> <select id="listOthernoCount" resultType="java.lang.Long" parameterType="java.util.Map">
select select
count(ten.ID) count(dm.ID)
from from
S_TENANT_T ten s_department_t dm
where where
ten.OTHERNO = #{otherno} dm.DESCRIPTION = #{otherno}
</select> </select>
<select id="listLoginNameCount" resultType="java.lang.Long" parameterType="java.util.Map"> <select id="listLoginNameCount" resultType="java.lang.Long" parameterType="java.util.Map">
select select count(u.ID) from s_user_t u
count(ten.ID) left join s_userobject_t uo on u.id = uo.USERID
from left join s_department_t dm on dm.id = uo.DEPARTID
S_TENANT_T ten where u.LOGINNAME =#{loginname} and dm.DESCRIPTION = #{otherno}
where
ten.OTHERNO = #{otherno}
and
ten.ID in (
select ue.TENANTID from
S_USER_T us,
S_USER_TENANT_T ue where us.LOGINNAME = #{loginname}
)
</select> </select>
<select id="listMobileCount" resultType="java.lang.Long" parameterType="java.util.Map"> <select id="listMobileCount" resultType="java.lang.Long" parameterType="java.util.Map">
select select count(u.ID) from s_user_t u
count(ten.ID) left join s_userobject_t uo on u.id = uo.USERID
from left join s_department_t dm on dm.id = uo.DEPARTID
S_TENANT_T ten where u.MOBILE =#{mobile} and dm.DESCRIPTION = #{otherno}
where
ten.OTHERNO = #{otherno}
and
ten.ID in (
select ue.TENANTID from
S_USER_T us,
S_USER_TENANT_T ue where us.MOBILE = #{mobile}
)
</select> </select>
</mapper> </mapper>

Loading…
Cancel
Save