@ -663,7 +674,7 @@ public class KQReportBiz extends BaseBean {
}
}
sql=" select resourceid, newleavetype, durationrule, sum(duration) as val from hrmresource a, "+KqSplitFlowTypeEnum.LEAVE.getTablename()+" b "+
sql=" select resourceid, newleavetype, durationrule, sum(duration) as val from hrmresource a, "+KqSplitFlowTypeEnum.LEAVE.getTablename()+" b "+
" where a.id = b.resourceid and belongdate >='"+fromDate+"' and belongdate <='"+toDate+"' "+sqlWhere+
" where a.id = b.resourceid and belongdate >='"+fromDate+"' and belongdate <='"+toDate+"' "+sqlWhere+
" group by resourceid, newleavetype, durationrule ";
" group by resourceid, newleavetype, durationrule ";
rs.execute(sql);
rs.execute(sql);
while(rs.next()){
while(rs.next()){
@ -760,7 +771,7 @@ public class KQReportBiz extends BaseBean {
// sqlWhere += " and (signfrom like 'card%' or signfrom='e9_mobile_out' or signfrom='EMSyn_out' or signfrom='DingTalk_out' or signfrom='Wechat_out') ";
// sqlWhere += " and (signfrom like 'card%' or signfrom='e9_mobile_out' or signfrom='EMSyn_out' or signfrom='DingTalk_out' or signfrom='Wechat_out') ";
sql=" select a.id,b.signdate,b.id as signid,b.signfrom from hrmresource a, hrmschedulesign b "+
sql=" select a.id,b.signdate,b.id as signid,b.signfrom from hrmresource a, hrmschedulesign b "+
" where a.id = b.userid and b.signdate >='"+fromDate+"' and b.signdate <='"+toDate+"' "+sqlWhere+
" where a.id = b.userid and b.signdate >='"+fromDate+"' and b.signdate <='"+toDate+"' "+sqlWhere+
" order by a.id,b.signdate ";
" order by a.id,b.signdate ";
rs.execute(sql);
rs.execute(sql);
// kqLog.info("card.sql="+sql);
// kqLog.info("card.sql="+sql);
@ -839,7 +850,7 @@ public class KQReportBiz extends BaseBean {
}
}
sql=" select resourceid, newleavetype, durationrule, sum(duration) as val from hrmresource a, "+KqSplitFlowTypeEnum.LEAVEBACK.getTablename()+" b "+
sql=" select resourceid, newleavetype, durationrule, sum(duration) as val from hrmresource a, "+KqSplitFlowTypeEnum.LEAVEBACK.getTablename()+" b "+
" where a.id = b.resourceid and belongdate >='"+fromDate+"' and belongdate <='"+toDate+"' "+sqlWhere+
" where a.id = b.resourceid and belongdate >='"+fromDate+"' and belongdate <='"+toDate+"' "+sqlWhere+
" group by resourceid, newleavetype, durationrule ";
" group by resourceid, newleavetype, durationrule ";
rs.execute(sql);
rs.execute(sql);
while(rs.next()){
while(rs.next()){
@ -1033,7 +1044,7 @@ public class KQReportBiz extends BaseBean {
}
}
sql=" select resourceid, newleavetype, durationrule, sum(duration) as val,belongdate from hrmresource a, "+KqSplitFlowTypeEnum.LEAVE.getTablename()+" b "+
sql=" select resourceid, newleavetype, durationrule, sum(duration) as val,belongdate from hrmresource a, "+KqSplitFlowTypeEnum.LEAVE.getTablename()+" b "+
" where a.id = b.resourceid and belongdate >='"+fromDate+"' and belongdate <='"+toDate+"' "+sqlWhere+
" where a.id = b.resourceid and belongdate >='"+fromDate+"' and belongdate <='"+toDate+"' "+sqlWhere+
" group by resourceid, newleavetype, durationrule,belongdate ";
" group by resourceid, newleavetype, durationrule,belongdate ";
rs.execute(sql);
rs.execute(sql);
while(rs.next()){
while(rs.next()){
@ -1125,7 +1136,7 @@ public class KQReportBiz extends BaseBean {
}
}
sql=" select resourceid, newleavetype, durationrule, sum(duration) as val,belongdate from hrmresource a, "+KqSplitFlowTypeEnum.LEAVEBACK.getTablename()+" b "+
sql=" select resourceid, newleavetype, durationrule, sum(duration) as val,belongdate from hrmresource a, "+KqSplitFlowTypeEnum.LEAVEBACK.getTablename()+" b "+
" where a.id = b.resourceid and belongdate >='"+fromDate+"' and belongdate <='"+toDate+"' "+sqlWhere+
" where a.id = b.resourceid and belongdate >='"+fromDate+"' and belongdate <='"+toDate+"' "+sqlWhere+
" group by resourceid, newleavetype, durationrule,belongdate ";
" group by resourceid, newleavetype, durationrule,belongdate ";
rs.execute(sql);
rs.execute(sql);
while(rs.next()){
while(rs.next()){
@ -1160,6 +1171,278 @@ public class KQReportBiz extends BaseBean {
sql=" select c.resourceid, c.belongdate, c.longitude, c.latitude from ( "+
" select a.belongdate, b.id as resourceid, b.subcompanyid1, b.departmentid, b.managerstr, b.managerid, b.loginid, c.jd as longitude, c.wd as latitude from kq_flow_split_evection a "+
" left join hrmresource b "+
" on b.id = a.resourceid "+
" left join "+evectionTableName+" c "+
" on c.requestid = a.requestid "+
" where a.belongdate >='"+fromDate+"' and belongdate <='"+toDate+"' "+
StringacqLegWorkSignSql="select operate_time, longitude, latitude from mobile_sign where operater = ? and operate_date = '"+kqDate+"' and operate_time >='"+signBeginTime+"' order by operate_time asc ";