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

30 lines
964 B

1 day ago
<?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.WrjQuestionTestMapper">
<select id="getTestScore" resultType="com.wrj.driver.server.vo.TestScoreVO">
select
a.test_id,
a.model_id,
a.type_id as driverTypeId,
a.user_id,
a.score,
a.test_time,
a.create_time,
b.type_name as driverTypeName
from wrj_question_test a
inner join wrj_driver_type b on b.type_id = a.type_id
<where>
<if test="param.driverTypeId != null">
and a.type_id = #{param.driverTypeId}
</if>
<if test="param.userId != null">
and a.user_id = #{param.userId}
</if>
</where>
order by a.create_time desc
</select>
</mapper>