|
@@ -70,7 +70,21 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
LEFT JOIN course_business cb ON csb.business_id = cb.id
|
|
|
WHERE
|
|
|
1 = 1
|
|
|
-
|
|
|
+ <if test="businessId != null and businessId != ''">
|
|
|
+ AND csb.business_id = #{businessId}
|
|
|
+ </if>
|
|
|
+ <if test="educationTypeId != null and educationTypeId != ''">
|
|
|
+ AND csb.education_type_id = #{educationTypeId}
|
|
|
+ </if>
|
|
|
+ <if test="streamingAddressType != null and streamingAddressType != ''">
|
|
|
+ AND cs.streaming_address_type = #{streamingAddressType}
|
|
|
+ </if>
|
|
|
+ <if test="streamingType != null and streamingType != ''">
|
|
|
+ AND cs.streaming_type = #{streamingType}
|
|
|
+ </if>
|
|
|
+ <if test="streamingName != null and streamingName != ''">
|
|
|
+ AND cs.streaming_name like concat('%', #{streamingName}, '%')
|
|
|
+ </if>
|
|
|
<if test="status != null and status.size()!=0 ">
|
|
|
AND cs.status in
|
|
|
<foreach collection="status" item="item" index="index" open="(" close=")" separator=",">
|