sql="select a.id,a.jobtitlename as name from hrmjobtitles a inner join jcl_org_job b on a.id = b.ec_jobtitle and (b.delete_type is null or b.delete_type = 0) where b.ec_department = '" +departmentId+"' and b.ec_company='"+subcompanyid1+"'";
sql="select a.id,a.jobtitlename as name,b.bkhrm,b.is_key from hrmjobtitles a inner join jcl_org_job b on a.id = b.ec_jobtitle and (b.delete_type is null or b.delete_type = 0) where b.ec_department = '" +departmentId+"' and b.ec_company='"+subcompanyid1+"'";
}else{
rs.executeQuery("select subcompanyid from jcl_chart_department where departmentid = '"+departmentId+"' and versionid = "+versionId);
rs.next();
@ -311,6 +312,9 @@ public class ChartServiceImpl extends Service implements ChartService {
sql="select jobid as id ,jobname as name from jcl_chart_job where departmentid = '"+departmentId+"' and subcompanyid = '"+subcompanyid+"' and versionid = "+versionId;
}
rs.executeQuery(sql);
ResourceComInforc=newResourceComInfo();
while(rs.next()){
ChartPOchartPO=newChartPO();
chartPO.setFtype("3");
@ -321,6 +325,11 @@ public class ChartServiceImpl extends Service implements ChartService {