Commit 220e023f authored by wangxl's avatar wangxl

1

parent 42ebc124
......@@ -97,7 +97,7 @@
<select id="getTalentAuditListByPage" resultType="com.yiboshi.science.param.dto.ComProjectAuditDTO">
SELECT
a.*,c.id talent_id,c.total_score,c.average_score,
a.*,c.id talent_id,c.total_score,c.average_score,c.total_fund totalFunding,c.talent_category,l.name as talent_category_name,
e.cert_id, e.person_name, e.sex, e.mobile, e.duty, e.title, e.spec, i.name as title_name, j.name as profession_name,
d.unit_name app_unit_name, (case when g.unit_name = d.unit_name then '直属' else REPLACE(g.unit_name,'卫生健康局','') end) as upUnitName
FROM com_project_audit a
......@@ -107,6 +107,7 @@
left join com_unit g on substring(d.tree_code, 1, 10) = g.tree_code
left join system_parameter i on e.title = i.id and i.type_id = 7
left join system_parameter j on e.profession = j.id and j.type_id = 69
left join system_parameter l on c.talent_category = l.id and l.type_id = 21
<where>
${ew.sqlSegment}
</where>
......
......@@ -10,12 +10,13 @@
</sql>
<select id="getListByPage" resultType="com.yiboshi.science.param.dto.ComTalentApplyDTO">
select a.*, b.cert_id, b.person_name, b.sex, b.mobile, b.duty, b.title, b.profession, i.name as title_name, j.name as professionName
select a.*, b.cert_id, b.person_name, b.sex, b.mobile, b.duty, b.title, b.profession, i.name as title_name, j.name as professionName,l.name as talent_category_name
from com_talent_apply a
left join com_person b on a.person_id = b.id
left join com_unit d on a.app_unit_id = d.id
left join system_parameter i on b.title = i.id and i.type_id = 7
left join system_parameter j on b.profession = j.id and j.type_id = 69
left join system_parameter l on a.talent_category = l.id and l.type_id = 21
<where>
${ew.sqlSegment}
</where>
......@@ -47,4 +48,4 @@
left join system_parameter m on b.degree = m.id and m.type_id = 9
where a.id = #{id}
</select>
</mapper>
\ No newline at end of file
</mapper>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment