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.
18 lines
754 B
18 lines
754 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.TdChapterMapper">
|
|
<select id="queryChapter" resultType="com.wrj.driver.server.vo.ChapterVo">
|
|
select
|
|
a.CHAPTER_ID,
|
|
a.CHAPTER_NAME,
|
|
a.COUNT,
|
|
a.SUBJECT
|
|
from td_chapter a
|
|
join td_car_chapter b on a.CHAPTER_ID = b.CHAPTER_ID
|
|
<where>
|
|
a.IS_ACTIVE = 0
|
|
<if test="param.carTypeId != null"> and b.CAR_TYPE_ID = #{param.carTypeId} </if>
|
|
<if test="param.subject != null"> and b.SUBJECT = #{param.subject} </if>
|
|
</where>
|
|
</select>
|
|
</mapper>
|
|
|