@ -243,7 +249,11 @@ public class ChartServiceImpl extends Service implements ChartService {
}
}
// 查询部门本身
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+"'";
if(hasVirtualFields){
sql="select a.id,a.departmentname as 'name',b.bmfzr,b.bmlx as 'isvitual' from "+DEPARTMENT_TABLE+" a left join hrmdepartmentdefined b on a.id = b.deptid where a.id = '"+departmentId+"'";
}else{
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+"'";