解决首页bug

This commit is contained in:
Vinjor 2025-05-26 16:31:15 +08:00
parent ccc7cffdf1
commit 37da64ff15
2 changed files with 7 additions and 7 deletions

View File

@ -102,11 +102,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</select>
<select id="selectTrainCar" resultType="cn.iocoder.yudao.module.jx.domain.DriveSchoolCar">
SELECT
dsc.*
dscc.*
FROM
drive_school_car dsc
LEFT JOIN drive_school_train dst ON dsc.user_id = dst.coach_id
AND dst.deleted = 0
drive_school_train dst
LEFT JOIN drive_school_coach dsc ON dst.coach_id = dsc.user_id AND dst.deleted = 0
LEFT JOIN drive_school_car dscc ON dsc.car_id = dscc.car_no
WHERE
dst.id IS NOT NULL
AND dsc.deleted = 0
@ -117,7 +117,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
AND dsc.car_no LIKE CONCAT('%',#{searchValue},'%')
</if>
<if test="courseType != null and courseType != ''">
AND dsc.course_type =#{courseType}
AND dscc.course_type =#{courseType}
</if>
<if test="startTime!=null and startTime!=''">
AND dst.create_time &gt;= #{startTime}
@ -126,7 +126,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
AND dst.create_time &lt;= #{endTime}
</if>
GROUP BY
dsc.id
dscc.id
</select>

View File

@ -34,7 +34,7 @@
<select id="selectTrainByCondition" resultType="cn.iocoder.yudao.module.train.vo.TrainVO">
SELECT
dst.*,
dsc.car_id
dsc.car_id AS carNo
FROM
drive_school_train dst
LEFT JOIN drive_school_coach dsc ON dst.coach_id = dsc.user_id