|
|
@@ -68,5 +68,18 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
LEFT JOIN course_education_type cet ON uc.education_type_id = cet.id
|
|
|
LEFT JOIN course_project_type cpt ON uc.project_id = cpt.id
|
|
|
LEFT JOIN course_business cb ON uc.business_id = cb.id
|
|
|
+ where 1=1
|
|
|
+ <if test="typeId != null and typeId != ''">
|
|
|
+ AND c.id = #{typeId}
|
|
|
+ </if>
|
|
|
+ <if test="searchKey != null and searchKey != ''">
|
|
|
+ and (u.realname like concat('%', #{searchKey}, '%') or u.id_card like concat('%', #{searchKey}, '%'))
|
|
|
+ </if>
|
|
|
+ <if test="trainStartTime != null and trainStartTime != ''">
|
|
|
+ AND uc.train_start_time > #{trainStartTime}
|
|
|
+ </if>
|
|
|
+ <if test="trainEndTime != null and trainEndTime != ''">
|
|
|
+ AND #{trainEndTime} > uc.train_end_time
|
|
|
+ </if>
|
|
|
</select>
|
|
|
</mapper>
|