浏览代码

流业务层

he2802 4 年之前
父节点
当前提交
84e96ce6c9

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

@@ -73,4 +73,10 @@ public class CourseStreamingQueryBo extends BaseEntity {
 	/** 状态 1正常 0关闭 */
 	@ApiModelProperty("状态 1正常 0关闭")
 	private List<Integer> status;
+	/** 教育类型id */
+	@ApiModelProperty("教育类型id")
+	private Long educationTypeId;
+	/** 业务层次id */
+	@ApiModelProperty("业务层次id")
+	private Long businessId;
 }

+ 15 - 1
zhongzheng-system/src/main/resources/mapper/modules/course/CourseStreamingMapper.xml

@@ -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=",">