|
|
@@ -593,7 +593,7 @@ public interface UpIdCollectionDao extends BaseMapper<SetlinfoUpld> {
|
|
|
" isnull(nullif(rtrim(b.occupation_code), " +
|
|
|
" ''), " +
|
|
|
" 90) as prfs, " +
|
|
|
- " (select si_code from zd_country_code where code = b.country) as ntly, " +
|
|
|
+ " case when (select si_code from zd_country_code where code = b.country) is null then 'CHN' else (select si_code from zd_country_code where code = b.country) end as ntly, " +
|
|
|
" a.sex as gend, " +
|
|
|
" a.birth_day as brdy, " +
|
|
|
" a.age as age, " +
|
|
|
@@ -612,13 +612,13 @@ public interface UpIdCollectionDao extends BaseMapper<SetlinfoUpld> {
|
|
|
" isnull(work_unit,b.employer_name) as emp_name, " +
|
|
|
" isnull(work_address,employer_district) as emp_addr, " +
|
|
|
" isnull(work_tel,employer_tel) as emp_tel, " +
|
|
|
- " employer_zipcode as poscode, " +
|
|
|
- " relation_name as coner_name, " +
|
|
|
- " relation_district as coner_addr, " +
|
|
|
- " relation_tel as coner_tel, " +
|
|
|
+ " case when employer_zipcode is null then '430000' else employer_zipcode end as poscode, " +
|
|
|
+ " case when relation_name is null then a.name else relation_name end as coner_name, " +
|
|
|
+ " isnull(relation_district,a.adress) as coner_addr, " +
|
|
|
+ " isnull(relation_tel,a.phone_no) as coner_tel, " +
|
|
|
" c.insuplc_admdvs as insuplc," +
|
|
|
" (select wjw_code from zd_nation_code where code = b.nation_code) as naty/*民族*/,\n" +
|
|
|
- " '1' as patnRlts," +
|
|
|
+ " '01' as patnRlts," +
|
|
|
" a.adress as conerAddr," +
|
|
|
" '1' as hiPaymtd, " +
|
|
|
" cast(fund_pay_sumamt as decimal(16,2)) as fund_pay_sumamt," +
|