|
|
@@ -8,7 +8,7 @@
|
|
|
<result property="id" column="id"/>
|
|
|
<result property="evaluationName" column="evaluation_name"/>
|
|
|
<result property="grade" column="grade"/>
|
|
|
- <result property="position" column="position"/>
|
|
|
+ <result property="positionId" column="position_id"/>
|
|
|
<result property="positionType" column="position_type"/>
|
|
|
<result property="tags" column="tags"/>
|
|
|
<result property="mainImage" column="main_image"/>
|
|
|
@@ -30,6 +30,7 @@
|
|
|
|
|
|
<resultMap type="org.dromara.main.domain.vo.MainExamEvaluationVo" id="MainExamEvaluationVoResult" extends="MainExamEvaluationResult">
|
|
|
<result property="mainImageUrl" column="main_image_url"/>
|
|
|
+ <result property="positionName" column="position_name"/>
|
|
|
<collection property="abilityConfigs"
|
|
|
ofType="org.dromara.main.domain.MainAbilityConfig"
|
|
|
select="org.dromara.main.mapper.MainAbilityConfigMapper.selectByEvaluationId"
|
|
|
@@ -38,14 +39,16 @@
|
|
|
|
|
|
<sql id="selectMainExamEvaluationVo">
|
|
|
SELECT
|
|
|
- e.id, e.evaluation_name, e.grade, e.position, e.position_type,
|
|
|
+ e.id, e.evaluation_name, e.grade, e.position_id, e.position_type,
|
|
|
e.tags, e.main_image, e.image_album, e.detail, e.price,
|
|
|
e.on_time, e.down_time, e.status,
|
|
|
e.tenant_id, e.create_dept, e.create_by, e.create_time,
|
|
|
e.update_by, e.update_time, e.remark, e.del_flag,
|
|
|
- oss.url AS main_image_url
|
|
|
+ oss.url AS main_image_url,
|
|
|
+ p.post_name AS position_name
|
|
|
FROM main_exam_evaluation e
|
|
|
LEFT JOIN sys_oss oss ON e.main_image = oss.oss_id
|
|
|
+ LEFT JOIN main_position p ON e.position_id = p.id
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectVoByIdWithImages" resultMap="MainExamEvaluationVoResult">
|