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.
22 lines
805 B
22 lines
805 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.TdSysUserDiscountMapper">
|
|
<select id="selectUserDiscountByUserId" resultType="com.wrj.driver.server.vo.UserDiscountVO">
|
|
select
|
|
a.ID,
|
|
a.USER_ID,
|
|
a.DISCOUNT_ID,
|
|
a.DISCOUNT,
|
|
a.DURATION,
|
|
a.UNIT,
|
|
a.END_TIME,
|
|
a.IS_INVALID,
|
|
a.OPER_USER,
|
|
a.OPER_TIME,
|
|
b.PARAM2
|
|
from td_sys_user_discount a
|
|
inner join td_member_discount b on a.DISCOUNT_ID = b.id
|
|
where a.USER_ID = #{userId} and b.TENANT_ID = #{tenantId} and a.END_TIME > NOW()
|
|
</select>
|
|
|
|
</mapper>
|
|
|