// sqlstr = "select "+nullmothod+" jobcall,COUNT(distinct t1.id) resultcount from HrmResource t1 where (t1.accounttype is null or t1.accounttype=0) group by t1.jobcall";
// }
// else
// sqlstr = "select "+nullmothod+" jobcall,COUNT(distinct t1.id) resultcount from HrmResource t1 where (t1.accounttype is null or t1.accounttype=0) "+sqlwhere+" group by t1.jobcall";
// sqlstr = "select a.jobcall, sum(a.resultcount) resultcount from ("+sqlstr+") a group by a.jobcall";
sqlstr="select "+nullmothod+" nativeplace,COUNT(distinct t1.id) resultcount from HrmResource t1 left join cus_fielddata t2 \n"+
sqlstr="select "+nullmothod+" jobcall,COUNT(distinct t1.id) resultcount from HrmResource t1 where (t1.accounttype is null or t1.accounttype=0) group by t1.jobcall";
" on t1.id = t2.id and t2.scopeid = 1 and t2.scope = 'HrmCustomFieldByInfoType'\n"+
" WHERE( t1.accounttype IS NULL OR t1.accounttype = 0 ) GROUP BY\n"+
" t2."+nativeplace;
}else{
sqlstr="select "+nullmothod+" nativeplace,COUNT(distinct t1.id) resultcount from HrmResource t1 left join cus_fielddata t2 \n"+
" on t1.id = t2.id and t2.scopeid = 1 and t2.scope = 'HrmCustomFieldByInfoType'\n"+
" WHERE( t1.accounttype IS NULL OR t1.accounttype = 0 )"+sqlwhere+" GROUP BY\n"+
" t2."+nativeplace;
sqlstr="select a.nativeplace, sum(a.resultcount) resultcount from ("+sqlstr+") a group by a.nativeplace";
}
}
else
sqlstr="select "+nullmothod+" jobcall,COUNT(distinct t1.id) resultcount from HrmResource t1 where (t1.accounttype is null or t1.accounttype=0) "+sqlwhere+" group by t1.jobcall";
rs.executeQuery(sqlstr);
sqlstr="select a.jobcall, sum(a.resultcount) resultcount from ("+sqlstr+") a group by a.jobcall";
rs.executeSql(sqlstr);
while(rs.next()){
while(rs.next()){
intresultcount=rs.getInt(2);
intresultcount=rs.getInt(2);
@ -985,6 +1016,7 @@ public List<Map<String,String>> getJobCallRpResult(HttpServletRequest request, H