Commit 94e45405 authored by wangxl's avatar wangxl

1

parent 378e256e
...@@ -10,12 +10,12 @@ ...@@ -10,12 +10,12 @@
</sql> </sql>
<select id="getListByPage" resultType="com.yiboshi.science.param.dto.ComTalentApplyDTO"> <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.spec, i.name as title_name, j.name as spec_name 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
from com_talent_apply a from com_talent_apply a
left join com_person b on a.person_id = b.id 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 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 i on b.title = i.id and i.type_id = 7
left join system_parameter j on b.spec = j.id and j.type_id = 68 left join system_parameter j on b.profession = j.id and j.type_id = 69
<where> <where>
${ew.sqlSegment} ${ew.sqlSegment}
</where> </where>
...@@ -35,12 +35,12 @@ ...@@ -35,12 +35,12 @@
</select> </select>
<select id="getById" parameterType="java.lang.String" resultType="com.yiboshi.science.param.dto.ComTalentApplyDTO"> <select id="getById" parameterType="java.lang.String" resultType="com.yiboshi.science.param.dto.ComTalentApplyDTO">
SELECT a.*,b.cert_id,b.person_name,b.sex,b.birthday,b.title,b.spec,b.mobile,i.name as title_name, j.name as spec_name, SELECT a.*,b.cert_id,b.person_name,b.sex,b.birthday,b.title,b.spec,b.mobile,i.name as title_name, j.name as profession_name,
k.name as parent_name,l.name as talent_category_name, n.name as nation_name, m.name as degree_name k.name as parent_name,l.name as talent_category_name, n.name as nation_name, m.name as degree_name
from com_talent_apply a from com_talent_apply a
left join com_person b on a.person_id = b.id left join com_person b on a.person_id = b.id
left join system_parameter i on b.title = i.id and i.type_id = 7 left join system_parameter i on b.title = i.id and i.type_id = 7
left join system_parameter j on b.spec = j.id and j.type_id = 68 left join system_parameter j on b.profession = j.id and j.type_id = 69
left join system_parameter k on j.parent_id = k.id left join system_parameter k on j.parent_id = k.id
left join system_parameter l on a.talent_category = l.id and l.type_id = 21 left join system_parameter l on a.talent_category = l.id and l.type_id = 21
left join system_parameter n on b.nation = n.id and n.type_id = 11 left join system_parameter n on b.nation = n.id and n.type_id = 11
......
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