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

31 lines
1.1 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.TdQuestionJxMapper">
<select id="queryQuestionJx" resultType="com.wrj.driver.server.vo.QuestionJxVo">
select
ID,
CATEGORY_TITLE,
CATEGORY_ID,
QUESTION_ID,
CHAPTER_ID,
CAR_TYPE_ID,
SUBJECT
from td_question_jx
<where>
<if test="param.carTypeId != null"> and CAR_TYPE_ID = #{param.carTypeId} </if>
<if test="param.subject != null"> and SUBJECT = #{param.subject} </if>
</where>
</select>
<select id="queryQuestionJxIds" resultType="Long">
select
QUESTION_ID
from td_question_jx
<where>
<if test="param.carTypeId != null"> and CAR_TYPE_ID = #{param.carTypeId} </if>
<if test="param.subject != null"> and SUBJECT = #{param.subject} </if>
</where>
order by id asc
</select>
</mapper>