|
@@ -10,16 +10,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="teacherId" column="teacher_id"/>
|
|
<result property="teacherId" column="teacher_id"/>
|
|
|
<result property="createTime" column="create_time"/>
|
|
<result property="createTime" column="create_time"/>
|
|
|
<result property="updateTime" column="update_time"/>
|
|
<result property="updateTime" column="update_time"/>
|
|
|
- <result property="educationId" column="education_id"/>
|
|
|
|
|
|
|
+
|
|
|
</resultMap>
|
|
</resultMap>
|
|
|
<resultMap type="com.zhongzheng.modules.course.vo.TeacherProjectVo" id="TeacherProjectVo">
|
|
<resultMap type="com.zhongzheng.modules.course.vo.TeacherProjectVo" id="TeacherProjectVo">
|
|
|
<result property="id" column="id"/>
|
|
<result property="id" column="id"/>
|
|
|
<result property="projectId" column="project_id"/>
|
|
<result property="projectId" column="project_id"/>
|
|
|
<result property="teacherId" column="teacher_id"/>
|
|
<result property="teacherId" column="teacher_id"/>
|
|
|
- <result property="educationId" column="education_id"/>
|
|
|
|
|
- <result property="projectName" column="project_name"/>
|
|
|
|
|
- <result property="educationName" column="education_name"/>
|
|
|
|
|
- <result property="educationId" column="education_id"/>
|
|
|
|
|
|
|
+
|
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
|
|
@@ -27,13 +24,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
SELECT
|
|
SELECT
|
|
|
p.*,
|
|
p.*,
|
|
|
t.project_name,
|
|
t.project_name,
|
|
|
- t.id as project_id,
|
|
|
|
|
- e.id as education_id,
|
|
|
|
|
- e.education_name
|
|
|
|
|
|
|
+ t.id as project_id
|
|
|
FROM
|
|
FROM
|
|
|
teacher_project p
|
|
teacher_project p
|
|
|
LEFT JOIN course_project_type t on p.project_id=t.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
|
|
WHERE
|
|
|
1 =1
|
|
1 =1
|
|
|
<if test="id != null and id!=0 ">
|
|
<if test="id != null and id!=0 ">
|