无人机小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
wrj-applet-api/target/classes/mapper/TdSysUserMapper.xml

28 lines
955 B

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.wrj.driver.server.mapper.TdSysUserMapper">
<select id="selectTenantUser" resultType="TdSysUser">
select
a.USER_ID,
a.USER_NAME,
a.PHONE,
a.REMARK,
a.AVATAR,
a.SCHOOL_ID,
a.SCHOOL_NAME,
a.SCHOOL_PHONE,
a.CREATE_TIME,
a.DISTRIBUTION_ID,
a.BIND_TIME
from td_sys_user a
left join td_tenant_user b on (a.USER_ID = b.USER_ID and b.is_active = '0')
<where>
<if test="param.tenantId != null" >
and b.tenant_id = #{param.tenantId}
</if>
<if test="param.phone != null" >
and a.PHONE = #{param.phone}
</if>
</where>
</select>
</mapper>