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

18 lines
766 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.WrjChapterMapper">
<select id="queryChapter" resultType="com.wrj.driver.server.vo.ChapterVo">
select
a.chapter_id,
a.chapter_name,
a.sort,
a.summary
from wrj_chapter a
join wrj_type_chapter b on a.chapter_id = b.chapter_id
<where>
a.is_active = 0
<if test="param.driverTypeId != null"> and b.type_id = #{param.driverTypeId} </if>
<if test="param.chapterId != null"> and a.chapter_id = #{param.chapterId} </if>
</where>
</select>
</mapper>