2025-01-21 00:12:53 +08:00
|
|
|
<?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.iocoder.yudao.module.exam.mapper.ExamBatchItemMapper">
|
|
|
|
|
|
2025-01-21 14:46:26 +08:00
|
|
|
<select id="queryListPage" resultType="cn.iocoder.yudao.module.exam.vo.ExamBatchItemVO">
|
|
|
|
|
SELECT
|
|
|
|
|
dsebi.*,dseb.course_id,dseb.course_name,dss.phone AS userMobile
|
|
|
|
|
FROM
|
|
|
|
|
drive_school_exam_batch_item dsebi
|
|
|
|
|
LEFT JOIN drive_school_exam_batch dseb ON dsebi.batch_id = dseb.id
|
|
|
|
|
LEFT JOIN drive_school_student dss ON dsebi.user_id = dss.user_id
|
|
|
|
|
AND dss.deleted = 0
|
|
|
|
|
WHERE
|
|
|
|
|
dseb.deleted = 0
|
|
|
|
|
AND dseb.course_id = #{entity.courseId}
|
|
|
|
|
AND dseb.coach_id = #{entity.coachId}
|
|
|
|
|
AND dseb.`subject` = #{entity.subject}
|
|
|
|
|
AND dsebi.fraction IS NULL
|
|
|
|
|
</select>
|
|
|
|
|
<select id="selectByBatchId" resultType="cn.iocoder.yudao.module.exam.vo.ExamBatchItemVO">
|
|
|
|
|
SELECT
|
|
|
|
|
*
|
|
|
|
|
FROM
|
|
|
|
|
drive_school_exam_batch_item
|
|
|
|
|
WHERE
|
|
|
|
|
deleted = 0
|
|
|
|
|
AND batch_id = #{batchId}
|
|
|
|
|
</select>
|
2025-01-21 00:12:53 +08:00
|
|
|
</mapper>
|