Explorar el Código

教育类型参数业务

change hace 4 años
padre
commit
942300cc6a

+ 12 - 0
zhongzheng-system/src/main/java/com/zhongzheng/modules/user/bo/SchoolQueryBo.java

@@ -56,4 +56,16 @@ public class SchoolQueryBo extends BaseEntity {
 	/** 学校城市 */
 	@ApiModelProperty("学校城市")
 	private Long schoolCityId;
+
+	/** 教育类型id */
+	@ApiModelProperty("教育类型id")
+	private Integer educationId;
+
+	/** 项目id */
+	@ApiModelProperty("项目id")
+	private Integer projectId;
+
+	/** 业务层次id */
+	@ApiModelProperty("业务层次id")
+	private Long businessId;
 }

+ 13 - 1
zhongzheng-system/src/main/resources/mapper/modules/user/SchoolMapper.xml

@@ -73,6 +73,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         school s
         LEFT JOIN apply_areas a ON s.school_city_id=a.area_id
         LEFT JOIN apply_areas v ON s.school_province_id=v.area_id
+        LEFT JOIN school_project p ON p.school_id = s.id
+        LEFT JOIN course_business b on b.project_id =p.project_id
+        LEFT JOIN course_project_type t on p.project_id=t.id
+        LEFT JOIN course_education_type e on t.education_id = e.id
         where 1=1
         <if test="status != null and status.size()!=0 ">
             AND s.status in
@@ -97,6 +101,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <if test="schoolName != null and schoolName != ''">
             and s.school_name like concat('%', #{schoolName}, '%')
         </if>
-
+        <if test="educationId != null and educationId!=0 ">
+            AND e.id = #{educationId}
+        </if>
+        <if test="projectId != null and projectId!=0 ">
+            AND t.id = #{projectId}
+        </if>
+        <if test="businessId != null and businessId!=0 ">
+            AND b.id = #{businessId}
+        </if>
     </select>
 </mapper>