|
@@ -46,6 +46,7 @@ public class LocationCityPlugin {
|
|
}
|
|
}
|
|
|
|
|
|
public Object getLocationCity(Object userId){
|
|
public Object getLocationCity(Object userId){
|
|
|
|
+ logger.info("userId:" + userId);
|
|
// 申请人 -> HR人员 -> 常驻工作地 -> 工作地
|
|
// 申请人 -> HR人员 -> 常驻工作地 -> 工作地
|
|
DynamicObject userInfo = QueryServiceHelper.queryOne("bos_user", "id,number", new QFilter("id", QCP.equals, userId).toArray());
|
|
DynamicObject userInfo = QueryServiceHelper.queryOne("bos_user", "id,number", new QFilter("id", QCP.equals, userId).toArray());
|
|
DynamicObject hrPerson = QueryServiceHelper.queryOne("hrpi_person", "id", new QFilter[]{
|
|
DynamicObject hrPerson = QueryServiceHelper.queryOne("hrpi_person", "id", new QFilter[]{
|
|
@@ -54,6 +55,7 @@ public class LocationCityPlugin {
|
|
});
|
|
});
|
|
|
|
|
|
if(hrPerson != null){
|
|
if(hrPerson != null){
|
|
|
|
+ logger.info("hrPerson_id:" + hrPerson.getLong("id"));
|
|
DynamicObject baseLocation = QueryServiceHelper.queryOne("hrpi_baselocation", "location.city.id", new QFilter[]{
|
|
DynamicObject baseLocation = QueryServiceHelper.queryOne("hrpi_baselocation", "location.city.id", new QFilter[]{
|
|
new QFilter("person", QCP.equals, hrPerson.getLong("id")),
|
|
new QFilter("person", QCP.equals, hrPerson.getLong("id")),
|
|
new QFilter("iscurrentversion", QCP.equals, Boolean.TRUE)
|
|
new QFilter("iscurrentversion", QCP.equals, Boolean.TRUE)
|