|
@@ -619,7 +619,9 @@ public class SyncUtil {
|
|
|
sb.append(" /*dialect*/ SELECT distinct t1.fname personName, \n");
|
|
|
sb.append(" t1.fnumber personNumber, \n");
|
|
|
sb.append(" t5.fnumber orgMokaNumber, \n");
|
|
|
- sb.append(" case when t7.fname = '已离职' then 1 else 0 end deactivated \n");
|
|
|
+ sb.append(" case when t7.fname = '已离职' then 1 else 0 end deactivated, \n");
|
|
|
+ sb.append(" t8.fbusemail, \n");
|
|
|
+ sb.append(" substring(t8.fphone,5,15) fphone \n");
|
|
|
sb.append(" from t_hrpi_ermanfile t1\n");
|
|
|
sb.append(" left join t_hrpi_person t2 on t1.fpersonid = t2.fid \n");
|
|
|
sb.append(" left join t_hrpi_empposorgrel t3 on t1.fempposrelid = t3.fid \n");
|
|
@@ -628,6 +630,7 @@ public class SyncUtil {
|
|
|
sb.append(" inner join t_tsrbs_foreignadminorg t5 on t5.fid = t4.fid \n");
|
|
|
sb.append(" left join t_hrpi_empentrel t6 on t6.fid = t1.fempentrelid \n");
|
|
|
sb.append(" left join t_hbss_laborrelstatus t7 ON t7.fid = t6.flaborrelstatusid \n");
|
|
|
+ sb.append(" left join t_hrpi_percontact t8 ON t8.fpersonid = t1.fpersonid and t8.fiscurrentversion = '1' and t8.fdatastatus = '1' \n");
|
|
|
sb.append(" where 1 = 1 \n");
|
|
|
sb.append(" AND t1.fiscurrentversion = '1' \n");
|
|
|
sb.append(" AND t1.fbusinessstatus = '1' \n");
|