|
@@ -12,5 +12,31 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="applyId" column="apply_id"/>
|
|
|
</resultMap>
|
|
|
|
|
|
+ <resultMap type="com.zhongzheng.modules.exam.vo.ExamBeforeApplyVo" id="ExamBeforeApplyVoResult">
|
|
|
+ <result property="id" column="id"/>
|
|
|
+ <result property="beforeId" column="before_id"/>
|
|
|
+ <result property="applyId" column="apply_id"/>
|
|
|
+ <result property="applyName" column="apply_name"/>
|
|
|
+ <result property="code" column="code"/>
|
|
|
+ <result property="applyStatus" column="apply_status"/>
|
|
|
+ <result property="applyStartTime" column="apply_start_time"/>
|
|
|
+ <result property="applyEndTime" column="apply_end_time"/>
|
|
|
+ <result property="educationName" column="education_name"/>
|
|
|
+ <result property="projectName" column="project_name"/>
|
|
|
+ <result property="businessName" column="business_name"/>
|
|
|
+ <result property="applyName" column="apply_name"/>
|
|
|
+ </resultMap>
|
|
|
|
|
|
+ <select id="getList" parameterType="com.zhongzheng.modules.exam.bo.ExamBeforeApplyQueryBo" resultMap="ExamBeforeApplyVoResult">
|
|
|
+ SELECT
|
|
|
+ ea.*,
|
|
|
+ (select cet.education_name FROM course_education_type cet where ea.education_type_id= cet.id) as education_name,
|
|
|
+ (select cpt.project_name FROM course_project_type cpt where ea.project_id= cpt.id) as project_name,
|
|
|
+ (select cb.business_name FROM course_business cb where ea.business_id= cb.id) as business_name
|
|
|
+ FROM
|
|
|
+ exam_before_apply eba
|
|
|
+ LEFT JOIN exam_apply ea ON eba.apply_id = ea.apply_id
|
|
|
+ WHERE
|
|
|
+ eba.before_id = #{beforeId}
|
|
|
+ </select>
|
|
|
</mapper>
|