he2802 3 жил өмнө
parent
commit
58b199257a

+ 1 - 1
zhongzheng-system/src/main/java/com/zhongzheng/modules/course/bo/CourseStreamingQueryBo.java

@@ -78,5 +78,5 @@ public class CourseStreamingQueryBo extends BaseEntity {
 	private Long educationTypeId;
 	/** 业务层次id */
 	@ApiModelProperty("业务层次id")
-	private Long businessId;
+	private List<Long> businessId;
 }

+ 5 - 2
zhongzheng-system/src/main/resources/mapper/modules/course/CourseStreamingMapper.xml

@@ -81,8 +81,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         LEFT JOIN polyv_video pv ON cs.polyv_id = pv.polyv_id
         WHERE
         1 = 1
-        <if test="businessId != null and businessId != ''">
-            AND csb.business_id = #{businessId}
+        <if test="businessId != null and businessId.size()!=0 ">
+            AND csb.business_id in
+            <foreach collection="businessId" item="item" index="index" open="(" close=")" separator=",">
+                #{item}
+            </foreach>
         </if>
         <if test="educationTypeId != null and educationTypeId != ''">
             AND csb.education_type_id = #{educationTypeId}