|
@@ -17,6 +17,20 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="status" column="status"/>
|
|
|
</resultMap>
|
|
|
|
|
|
+ <resultMap type="com.zhongzheng.modules.exam.vo.ExamApplyVo" id="ExamApplyVo">
|
|
|
+ <result property="applyId" column="exam_apply_id"/>
|
|
|
+ <result property="applyUrl" column="apply_url"/>
|
|
|
+ <result property="applyName" column="apply_name"/>
|
|
|
+ <result property="applyIntroduce" column="apply_introduce"/>
|
|
|
+ <result property="applyStatus" column="apply_status"/>
|
|
|
+ <result property="applyStartTime" column="apply_start_time"/>
|
|
|
+ <result property="applyEndTime" column="apply_end_time"/>
|
|
|
+ <result property="status" column="status"/>
|
|
|
+ <result property="educationName" column="education_name"/>
|
|
|
+ <result property="projectName" column="project_name"/>
|
|
|
+ <result property="businessName" column="business_name"/>
|
|
|
+ </resultMap>
|
|
|
+
|
|
|
<resultMap type="com.zhongzheng.modules.exam.vo.ExamNumberGoodsVo" id="ExamNumberGoodsVoResult">
|
|
|
<result property="id" column="id"/>
|
|
|
<result property="examNumberId" column="exam_number_id"/>
|
|
@@ -117,4 +131,16 @@ and (SELECT COUNT(eay.apply_id) FROM exam_apply eay LEFT JOIN exam_apply_goods e
|
|
|
where 1=1
|
|
|
and east.apply_site_id =#{id}
|
|
|
</select>
|
|
|
+
|
|
|
+ <select id="selectByApply" parameterType="long" resultMap="ExamApplyVo">
|
|
|
+ SELECT
|
|
|
+ * ,
|
|
|
+ (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_apply ea
|
|
|
+ where 1=1
|
|
|
+ and ea.apply_id = #{applyId}
|
|
|
+ </select>
|
|
|
</mapper>
|