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

36 lines
1.2 KiB

<?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.TdQuestionTestMapper">
<select id="getTestScore" resultType="com.wrj.driver.server.vo.TestScoreVO">
select
a.TEST_ID,
a.CAR_TYPE_ID,
a.SUBJECT,
a.USER_ID,
a.SCORE,
a.TEST_TIME,
a.CREATE_TIME,
a.TENANT_ID,
b.CAR_NAME CAR_TYPE_NAME
from td_question_test a
inner join td_car b on b.CAR_TYPE_ID = a.CAR_TYPE_ID
<where>
<if test="param.tenantId != null">
and a.tenant_id = #{param.tenantId}
</if>
<if test="param.carTypeId != null">
and a.CAR_TYPE_ID = #{param.carTypeId}
</if>
<if test="param.subject != null">
and a.SUBJECT = #{param.subject}
</if>
<if test="param.userId != null">
and a.USER_ID = #{param.userId}
</if>
</where>
order by a.CREATE_TIME desc
</select>
</mapper>