1
This commit is contained in:
parent
6a85ce60bd
commit
707d98d8b8
@ -17,8 +17,7 @@
|
||||
<where>
|
||||
main.deleted = 0
|
||||
<if test="entity.type != null and entity.type != '' ">and main.type = #{entity.type}</if>
|
||||
<if test="entity.name != null and entity.name != ''">and main.name like concat('%', #{entity.name}, '%')
|
||||
</if>
|
||||
<if test="entity.name != null and entity.name != ''">and main.name like concat('%', #{entity.name}, '%')</if>
|
||||
<if test="entity.phone != null and entity.phone != ''">and main.phone like concat('%', #{entity.phone},'%')
|
||||
</if>
|
||||
</where>
|
||||
@ -32,10 +31,10 @@
|
||||
main.seniority AS seniority,
|
||||
main.car_id AS carId,
|
||||
main.phone AS phone,
|
||||
GROUP_CONCAT(dscc.course_type SEPARATOR ',') AS courseTypes
|
||||
GROUP_CONCAT(DISTINCT dscc.course_type SEPARATOR ',') AS courseTypes
|
||||
FROM
|
||||
drive_school_coach main
|
||||
LEFT JOIN drive_school_coach_course dscc ON main.id = dscc.coach_id
|
||||
LEFT JOIN drive_school_coach_course dscc ON main.id = dscc.coach_id AND dscc.deleted = 0
|
||||
<where>
|
||||
main.deleted = 0
|
||||
<if test="entity.type != null and entity.type != ''">
|
||||
@ -43,7 +42,7 @@
|
||||
</if>
|
||||
</where>
|
||||
GROUP BY
|
||||
main.id,dscc.course_type
|
||||
main.id
|
||||
order by main.create_time desc
|
||||
</select>
|
||||
</mapper>
|
Loading…
Reference in New Issue
Block a user