Commit af8487ba authored by 蔡镇泽's avatar 蔡镇泽

把省市区存name改为存code

parent 891b78a5
......@@ -6,9 +6,9 @@
select a.APPLY_ID applyId,
o.ORGAN_NAME organName,
a.organ_id organId,
a.DISTRICT_PROVINCIAL provincial,
a.DISTRICT_CITY city,
a.DISTRICT_AREA area,
(select DISTRICT_NAME from CH_FND_DISTRICT dis where a.DISTRICT_PROVINCIAL = dis.DISTRICT_CODE) provincial,
(select DISTRICT_NAME from CH_FND_DISTRICT dis where a.DISTRICT_CITY = dis.DISTRICT_CODE) city,
(select DISTRICT_NAME from CH_FND_DISTRICT dis where a.DISTRICT_AREA = dis.DISTRICT_CODE) area,
a.REAL_NAME name,
a.birthday birthday,
a.CERTI_CODE certiCode,
......@@ -29,9 +29,9 @@
LEFT JOIN CH_SRV_ORGAN s ON a.SRV_ORGAN_ID = s.SRV_ORGAN_ID
<where>
<if test="organIds != null">
and a.organ_id in
and a.organ_id in
<foreach collection="organIds" item="organId" open="(" close=")" separator=",">
#{organId}
#{organId}
</foreach>
</if>
<if test="provincial != null and provincial != ''">
......
......@@ -8,19 +8,19 @@
task.apply_id applyId,
organ.organ_name organName,
task.apr_organ_id aprOrganId,
task.district_provincial districtProvincial,
task.district_city districPity,
task.district_area districtArea,
(select DISTRICT_NAME from CH_FND_DISTRICT dis where task.DISTRICT_PROVINCIAL = dis.DISTRICT_CODE) districtProvincial,
(select DISTRICT_NAME from CH_FND_DISTRICT dis where task.DISTRICT_CITY = dis.DISTRICT_CODE) districPity,
(select DISTRICT_NAME from CH_FND_DISTRICT dis where task.DISTRICT_AREA = dis.DISTRICT_CODE) districtArea,
disable.real_name realName,
task.fcd fcd,
disable.certi_code certiCode,
(select DISE_TYPE_CODE from CH_FND_DISEASE_TYPE where disable.DISE_TYPE_F = DISE_TYPE_ID) diseTypeF,
(select DISE_TYPE_CODE from CH_FND_DISEASE_TYPE where disable.DISE_TYPE_S = DISE_TYPE_ID) diseTypeS,
disable.tel tel,
disable.ACPT_PROVINCIAL acptProvincial,
disable.ACPT_CITY acptCity,
disable.ACPT_AREA acptArea,
disable.ACPT_STREET acptStreet,
(select DISTRICT_NAME from CH_FND_DISTRICT dis where disable.ACPT_PROVINCIAL = dis.DISTRICT_CODE) acptProvincial,
(select DISTRICT_NAME from CH_FND_DISTRICT dis where disable.ACPT_CITY = dis.DISTRICT_CODE) acptCity,
(select DISTRICT_NAME from CH_FND_DISTRICT dis where disable.ACPT_AREA = dis.DISTRICT_CODE) acptArea,
(select DISTRICT_NAME from CH_FND_STREET street where disable.ACPT_AREA = street.STREET_CODE) acptStreet,
disable.end_time endTime,
emp.real_name empRealName,
emp.tel emoTel,
......@@ -37,7 +37,7 @@
left join ch_apr_task_push push on task.task_id = push.task_id
<where>
<if test="organIds != null">
and task.apr_organ_id in
and task.apr_organ_id in
<foreach collection="organIds" item="organId" open="(" close=")" separator=",">
#{organId}
</foreach>
......
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