无人机小程序
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/TdUserDistributionMapper.xml

15 lines
655 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.TdUserDistributionMapper">
<select id="selectUserDistribution" resultType="com.wrj.driver.server.entity.TdUserDistribution">
select
a.record_id, a.user_id, a.distribution_id, a.bind_time, b.tenant_id
from td_user_distribution a
left join sys_distribution b where a.distribution_id = b.distribution_id
<where>
a.user_id = #{userId} and a.tenant_id = #{tenantId}
</where>
</select>
</mapper>