@ -192,9 +194,9 @@ public class ChartServiceImpl extends Service implements ChartService {
Stringsql;
// 查询当当前部门下的人员
if("0".equals(dimension)){
sql="select a.id,a.lastname as 'name' ,a.jobtitle from hrmresource a where a.departmentid = '" +departmentId+"'";
sql="select a.id,a.lastname as 'name' ,a.jobtitle ,a.belongto from hrmresource a where a.departmentid = '" +departmentId+"'";
}else{
sql="select a.id,a.lastname as 'name' ,a.jobtitle from hrmresource a inner join hrmresourcevirtual b on a.id = b.resourceid where b.departmentid = '" +departmentId+"'";
sql="select a.id,a.lastname as 'name' ,a.jobtitle ,a.belongto from hrmresource a inner join hrmresourcevirtual b on a.id = b.resourceid where b.departmentid = '" +departmentId+"'";
}
rs.executeQuery(sql);
while(rs.next()){
@ -206,8 +208,9 @@ public class ChartServiceImpl extends Service implements ChartService {
@ -239,9 +242,10 @@ public class ChartServiceImpl extends Service implements ChartService {
}
}
// 查询部门本身
sql="select a.id,a.departmentname as 'name' from " +DEPARTMENT_TABLE+" a where id = '" +departmentId+"'";
sql="select a.id,a.departmentname as 'name',b.bmfzr from " +DEPARTMENT_TABLE+" a left join hrmdepartmentdefined b on a.id = b.deptid where a.id = '" +departmentId+"'";