diff --git a/src/com/engine/organization/service/impl/ChartServiceImpl.java b/src/com/engine/organization/service/impl/ChartServiceImpl.java index cc8f452f..85842c99 100644 --- a/src/com/engine/organization/service/impl/ChartServiceImpl.java +++ b/src/com/engine/organization/service/impl/ChartServiceImpl.java @@ -745,15 +745,15 @@ public class ChartServiceImpl extends Service implements ChartService { //虚拟人员版本存储 rs.executeQuery("select resourceid,workyear,usekind,a.managerstr,status,sex,accounttype,belongto,loginid," + "maritalstatus,b.telephone,mobile,mobilecall,email,c.locationname,resourcetype,startdate,enddate," + - "d.id as jobtitleid,d.JOBTITLENAME as jobtitle,joblevel,seclevel,b.departmentid,e.departmentname as department," + - "b.subcompanyid1 as subcompanyid,f.subcompanyname as subcompany,b.costcenterid as costcenter," + + "d.id as jobtitleid,d.JOBTITLENAME as jobtitle,joblevel,seclevel,e.id as departmentid,e.departmentname as department," + + "f.id as subcompanyid,f.subcompanyname as subcompany,b.costcenterid as costcenter," + "b.managerid as manager,b.assistantid as assistant,workcode,classification,policy," + "a.virtualtype from hrmresourcevirtual a \n" + "left join hrmresource b on a.RESOURCEID=b.ID\n" + "left join hrmlocations c on b.locationid=c.id\n" + "left join hrmjobtitles d on b.jobtitle=d.id\n" + - "left join hrmdepartmentvirtual e on b.DEPARTMENTID=e.id\n" + - "left join hrmsubcompanyvirtual f on b.SUBCOMPANYID1=f.id where a.virtualtype=?",fclass); + "left join hrmdepartmentvirtual e on a.DEPARTMENTID=e.id\n" + + "left join hrmsubcompanyvirtual f on a.SUBCOMPANYID=f.id where a.virtualtype=?",fclass); insertParamList = new ArrayList<>(); while (rs.next()) { insertList = new ArrayList<>();