<?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="cn.gistack.sm.exam.mapper.ExamTargetMapper">
|
|
<!--分页列表查询-->
|
<select id="selectExamTargetPage" resultType="cn.gistack.sm.exam.vo.ExamTargetVO">
|
select
|
sm_exam_plan_target.*
|
from sm_exam_plan_target
|
where 1=1
|
order by sm_exam_plan_target.id desc
|
</select>
|
|
<select id="getExamTargetByPlandId" resultType="cn.gistack.sm.exam.vo.ExamTargetVO">
|
select
|
ept.*
|
from sm_exam_plan_target ept
|
where 1=1 AND ept.plan_id = #{planId} AND ept.target_id = #{type}
|
limit 1
|
</select>
|
|
</mapper>
|