Compare commits

...

2 Commits

Author SHA1 Message Date
Lx
095d6a7433 Merge remote-tracking branch 'origin/master' 2025-09-09 14:55:34 +08:00
Lx
f3eb6fc93e 0908 2025-09-09 14:51:47 +08:00

View File

@ -129,7 +129,28 @@
</select>
<select id="noClockInRemindByUserId" resultType="cn.iocoder.yudao.module.train.vo.NoClockInRemindVO">
SELECT coach_id,
SELECT
dst.coach_id,
dst.coach_name,
COUNT(dst.user_id) AS student_count,
GROUP_CONCAT(DISTINCT CONCAT(dst.user_name, '(', '科目', dst.subject, ')') SEPARATOR '') AS student_names
FROM drive_school_train dst
WHERE dst.coach_id = #{userId}
AND dst.car_no = #{carNo}
AND dst.end_time IS NULL
AND dst.deleted = 0
AND NOT EXISTS (
SELECT 1
FROM drive_school_process dsp
WHERE dsp.user_id = dst.user_id
AND dsp.subject = dst.subject
AND dsp.deleted = 0
AND (dsp.status = '2' OR dsp.exam_status = '1')
)
GROUP BY dst.coach_id, dst.coach_name
</select>
<!-- SELECT coach_id,
coach_name,
COUNT(user_id) AS student_count,
GROUP_CONCAT(DISTINCT CONCAT(user_name, '(', '科目', subject, ')') SEPARATOR '' ) AS student_names,
@ -141,9 +162,7 @@
AND deleted = 0
AND tenant_id = 180
GROUP BY coach_id,
coach_name
</select>
coach_name -->
<select id="selectStudentByCoachClockId" resultType="cn.iocoder.yudao.module.train.entity.Train">
SELECT
subject,