|
|
@@ -37,11 +37,11 @@ public class UasSyncService {
|
|
|
|
|
|
public List<Employee> getYongHDelUserList() {
|
|
|
return baseDao.query("select em_code,em_name,em_class,em_yonghongid,em_mobile,em_email from employee"+
|
|
|
- " where EM_YONGHONGID is not null and (EM_ISYONGHONG=0 or em_class='离职') order by em_id asc" ,Employee.class);
|
|
|
+ " where em_yonghongsynced=-1 and (EM_ISYONGHONG=0 or em_class='离职') order by em_id asc" ,Employee.class);
|
|
|
}
|
|
|
public List<Employee> getYongHAddUserList() {
|
|
|
return baseDao.query("select em_code,em_name,em_class,em_yonghongid,em_mobile,em_email from employee "+
|
|
|
- " where nvl(EM_YONGHONGID,' ')=' ' and em_class<>'离职' and EM_ISYONGHONG=-1 order by em_id asc" , Employee.class);
|
|
|
+ " where (nvl(EM_YONGHONGID,' ')=' ' or em_yonghongsynced=0 ) and em_class<>'离职' and EM_ISYONGHONG=-1 order by em_id asc" , Employee.class);
|
|
|
}
|
|
|
|
|
|
}
|