|
|
|
@ -185,18 +185,18 @@ public class ExportDailyExcelCmd extends AbstractCommonCommand<Map<String, Objec
|
|
|
|
|
}else {
|
|
|
|
|
forgotBeginWorkCheck_field = " isnull(b.forgotBeginWorkCheck,0) ";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
String backFields = " (select zm.cccb from uf_cbxxjlb zm where zm.xm = a.id and zm.rq = b.kqdate) as mealAllowance," +
|
|
|
|
|
" (select zm.zdcb from uf_cbxxjlb zm where zm.xm = a.id and zm.rq = b.kqdate) as statAllowance," +
|
|
|
|
|
" (select zm.jmybcb from uf_cbxxjlb zm where zm.xm = a.id and zm.rq = b.kqdate) as nightAllowance," +
|
|
|
|
|
" (select zm.hrzdcb from uf_cbxxjlb zm where zm.xm = a.id and zm.rq = b.kqdate) as otherStatAllowance," +
|
|
|
|
|
" (select zm.ybbz from uf_cbxxjlb zm where zm.xm = a.id and zm.rq = b.kqdate) as nightShiftSubsidy," +
|
|
|
|
|
String backFields = " zm.cccb as mealAllowance," +
|
|
|
|
|
" zm.zdcb as statAllowance," +
|
|
|
|
|
" zm.jmybcb as nightAllowance," +
|
|
|
|
|
" zm.hrzdcb as otherStatAllowance," +
|
|
|
|
|
" zm.ybbz as nightShiftSubsidy, "+
|
|
|
|
|
" a.id,a.lastname,a.subcompanyid1 as subcompanyid,a.departmentid, a.workcode,b.jobtitle,a.dsporder," +
|
|
|
|
|
" b.kqdate, b.workdays,b.workMins,b.serialid, b.attendancedays,FLOOR( b.attendanceMins / 30 ) * 30 AS attendanceMins ,b.beLate," +
|
|
|
|
|
" b.beLateMins,b.graveBeLate,b.graveBeLateMins,b.leaveEearly,b.leaveEarlyMins,b.graveLeaveEarly," +
|
|
|
|
|
" b.graveLeaveEarlyMins,b.absenteeism,b.signdays,b.signmins, "+
|
|
|
|
|
" b.absenteeismMins ,(b.forgotCheck+"+forgotBeginWorkCheck_field+") forgotCheck,zeropoint ";
|
|
|
|
|
String sqlFrom = " from hrmresource a, kq_format_total b where a.id= b.resourceid and b.kqdate >='"+fromDate+"' and b.kqdate <='"+toDate+"'";
|
|
|
|
|
String sqlFrom = " from hrmresource a, kq_format_total b,uf_cbxxjlb zm " +
|
|
|
|
|
"where a.id= b.resourceid and b.kqdate >='"+fromDate+"' and b.kqdate <='"+toDate+"' and zm.xm=a.id and zm.rq = b.kqdate ";
|
|
|
|
|
String sqlWhere = rightSql;
|
|
|
|
|
if(subCompanyId.length()>0){
|
|
|
|
|
sqlWhere +=" and a.subcompanyid1 in("+subCompanyId+") ";
|
|
|
|
|