@ -186,14 +188,15 @@ public class ChartServiceImpl extends Service implements ChartService {
List<ChartPO>dataList=newArrayList<>();
List<ChartPO>resourceList=newArrayList<>();
Set<String>jobTitleSet=newHashSet<>();
intdepartmentOnJob=0;
RecordSetrs=newRecordSet();
// TODO 查询当前实际的数据
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()){
@ -201,11 +204,13 @@ 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+"'";