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

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

@ -42,66 +42,41 @@
</trim>
</where>
<if test="page != null">
<if test="page.sortname != null"> order by ${page.sortname} ${page.sortorder}</if>
<if test="page.sortname != null"> order by ${page.sortname} ${page.sortorder}</if>
limit ${page.start}, ${page.Pagesize}
</if>
</sql>
<select id="listCount" resultType="java.lang.Long" parameterType="java.util.Map">
select
count(ten.ID)
from
S_TENANT_T ten
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 count(u.ID) from s_user_t u
left join s_userobject_t uo on u.id = uo.USERID
left join s_department_t dm on dm.id = uo.DEPARTID
where u.LOGINNAME =#{loginname} and dm.DESCRIPTION = #{otherno}
</select>
<select id="listOthernoCount" resultType="java.lang.Long" parameterType="java.util.Map">
select
count(ten.ID)
count(dm.ID)
from
S_TENANT_T ten
s_department_t dm
where
ten.OTHERNO = #{otherno}
dm.DESCRIPTION = #{otherno}
</select>
<select id="listLoginNameCount" resultType="java.lang.Long" parameterType="java.util.Map">
select
count(ten.ID)
from
S_TENANT_T ten
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 count(u.ID) from s_user_t u
left join s_userobject_t uo on u.id = uo.USERID
left join s_department_t dm on dm.id = uo.DEPARTID
where u.LOGINNAME =#{loginname} and dm.DESCRIPTION = #{otherno}
</select>
<select id="listMobileCount" resultType="java.lang.Long" parameterType="java.util.Map">
select
count(ten.ID)
from
S_TENANT_T ten
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 count(u.ID) from s_user_t u
left join s_userobject_t uo on u.id = uo.USERID
left join s_department_t dm on dm.id = uo.DEPARTID
where u.MOBILE =#{mobile} and dm.DESCRIPTION = #{otherno}
</select>
</mapper>

Loading…
Cancel
Save