@ -145,7 +145,7 @@ public class PunchOutButtonCmd extends AbstractCommonCommand<Map<String, Object>
KQWorkTime kqWorkTime = new KQWorkTime ( ) ;
WorkTimeEntity workTimeEntity = kqWorkTime . getWorkTime ( user . getUID ( ) + "" , signDate ) ;
String userinfo = "#userid#" + user . getUID ( ) + "#getUserSubCompany1#" + user . getUserSubCompany1 ( ) + "#getUserSubCompany1#" + user . getUserDepartment ( )
+ "#getJobtitle#" + user . getJobtitle ( ) ;
+ "#getJobtitle#" + user . getJobtitle ( ) ;
workTimeEntityLogMap . put ( "resourceid" , userinfo ) ;
workTimeEntityLogMap . put ( "splitDate" , signDate ) ;
workTimeEntityLogMap . put ( "workTimeEntity" , workTimeEntity ) ;
@ -174,7 +174,7 @@ public class PunchOutButtonCmd extends AbstractCommonCommand<Map<String, Object>
return ;
}
String mobile_sign_sql = "insert into mobile_sign(operater,operate_type,operate_date,operate_time,longitude,latitude,address,remark,attachment,crm,timezone) "
+ " values(?,?,?,?,?,?,?,?,?,?,?) " ;
+ " values(?,?,?,?,?,?,?,?,?,?,?) " ;
rs1 . executeUpdate ( mobile_sign_sql , userId , signfrom , signDate , signTime , longitude , latitude , address , remark , attachment , crm , timeZone ) ;
logMap . put ( "outsidesign" , outsidesign ) ;
@ -262,9 +262,9 @@ public class PunchOutButtonCmd extends AbstractCommonCommand<Map<String, Object>
}
deviceInfo = deviceInfo . replaceAll ( "\\?" , "" ) ;
String punchSql = "insert into HrmScheduleSign(userId,userType,signType,signDate,signTime,clientAddress,isInCom,timeZone,belongdate,signfrom,longitude,latitude,addr,deviceInfo) " +
" values(?,?,?,?,?,?,?,?,?,?,?,?,?,?)" ;
" values(?,?,?,?,?,?,?,?,?,?,?,?,?,?)" ;
boolean isok = rs . executeUpdate ( punchSql , userId , userType , signType , signDate , signTime , clientAddress , isInCom ,
timeZone , belongdate , signfrom , longitude , latitude , address , deviceInfo ) ;
timeZone , belongdate , signfrom , longitude , latitude , address , deviceInfo ) ;
logMap . put ( "punchSql" , punchSql ) ;
logMap . put ( "punchSql_isok" , isok ) ;
@ -408,17 +408,17 @@ public class PunchOutButtonCmd extends AbstractCommonCommand<Map<String, Object>
//考勤当天是节假日或者休息日
if ( holiday ) {
//节假日休息班
b = rt . executeUpdate ( sql , signDate , holidayDefaultSerialid , Util . null2String ( userId ) , signDate , groupid ) ;
kqLog . info ( "PunchOutButtonCmd.b1:" + b ) ;
b = rt . executeUpdate ( sql , signDate , holidayDefaultSerialid , Util . null2String ( userId ) , signDate , groupid ) ;
kqLog . info ( "PunchOutButtonCmd.b1:" + b ) ;
} else {
//周末休息班
// if(DateUtil.getWeek(signDate) == 6 || DateUtil.getWeek(signDate) == 7){
// b = rt.executeUpdate(sql,weekendDefaultSerialid, Util.null2String(userId), signDate,groupid);
// kqLog.info("PunchOutButtonCmd.b2:"+b);
// }else{
//设置考勤班次为对应班次
b = rt . executeUpdate ( sql , defaultSerialid , Util . null2String ( userId ) , signDate , groupid ) ;
kqLog . info ( "PunchOutButtonCmd.b3:" + b ) ;
//设置考勤班次为对应班次
b = rt . executeUpdate ( sql , defaultSerialid , Util . null2String ( userId ) , signDate , groupid ) ;
kqLog . info ( "PunchOutButtonCmd.b3:" + b ) ;
//}
}
}
@ -429,10 +429,10 @@ public class PunchOutButtonCmd extends AbstractCommonCommand<Map<String, Object>
new KQFormatBiz ( ) . formatDate ( "" + userId , DateUtil . getYesterday ( ) ) ;
}
bb . writeLog ( "PunchOutButtonCmd:userId:" + userId + ":belongdate:" + ( belongdate . length ( ) = = 0 ? DateUtil . getCurrentDate ( ) : belongdate ) ) ;
if ( belongdate . length ( ) = = 0 ) {
//外勤签到没有归属日期,遇到跨天班次打卡可能归属前一天,需要格式化前一天考勤
new KQFormatBiz ( ) . formatDate ( "" + userId , DateUtil . getYesterday ( ) ) ;
}
// if(belongdate.length()==0){
//外勤签到没有归属日期,遇到跨天班次打卡可能归属前一天,需要格式化前一天考勤
new KQFormatBiz ( ) . formatDate ( "" + userId , DateUtil . getYesterday ( ) ) ;
// }
new KQFormatBiz ( ) . formatDate ( "" + userId , ( belongdate . length ( ) = = 0 ? DateUtil . getCurrentDate ( ) : belongdate ) ) ;
//外勤签到转的考勤 处理加班规则
SplitActionUtil . pushOverTimeTasksAll ( belongdate , belongdate , "" + userId ) ;