Commit adb176cb by lal

提交

parent b17eb6a6
...@@ -799,10 +799,12 @@ public class ClockInController { ...@@ -799,10 +799,12 @@ public class ClockInController {
}else { }else {
msg = "当前打卡时间不在范围内"; msg = "当前打卡时间不在范围内";
sbyf = 0; sbyf = 0;
status_ = 2;
} }
}else { }else {
msg = "当前是休息时间"; msg = "当前是休息时间";
sbyf = 0; sbyf = 0;
status_ = 2;
} }
} }
} }
...@@ -847,6 +849,7 @@ public class ClockInController { ...@@ -847,6 +849,7 @@ public class ClockInController {
if(zysd1.after(zysd2)) {//当zysd1大于zysd2时,返回TRUE,当小于等于时,返回false; if(zysd1.after(zysd2)) {//当zysd1大于zysd2时,返回TRUE,当小于等于时,返回false;
msg = "自由工时:上班打卡后"+canpunchworkdate+"小时后,才可打下班卡"; msg = "自由工时:上班打卡后"+canpunchworkdate+"小时后,才可打下班卡";
sbyf = 0; sbyf = 0;
status_ = 2;
}else { }else {
zypcd.setId(zydkmc.getId()); zypcd.setId(zydkmc.getId());
zypcd.setXbdk1(time_);//下班1打卡时间 zypcd.setXbdk1(time_);//下班1打卡时间
...@@ -871,6 +874,7 @@ public class ClockInController { ...@@ -871,6 +874,7 @@ public class ClockInController {
if(zysd1.after(zysd2)) {//当zysd1大于zysd2时,返回TRUE,当小于等于时,返回false; if(zysd1.after(zysd2)) {//当zysd1大于zysd2时,返回TRUE,当小于等于时,返回false;
msg = "自由工时:上班打卡后"+canpunchworkdate+"小时后,才可打下班卡"; msg = "自由工时:上班打卡后"+canpunchworkdate+"小时后,才可打下班卡";
sbyf = 0; sbyf = 0;
status_ = 2;
}else { }else {
zypcd.setId(zydkmc.getId()); zypcd.setId(zydkmc.getId());
zypcd.setXbdk2(time_);//下班1打卡时间 zypcd.setXbdk2(time_);//下班1打卡时间
...@@ -901,6 +905,7 @@ public class ClockInController { ...@@ -901,6 +905,7 @@ public class ClockInController {
if(zysd1.after(zysd2)) {//当zysd1大于zysd2时,返回TRUE,当小于等于时,返回false; if(zysd1.after(zysd2)) {//当zysd1大于zysd2时,返回TRUE,当小于等于时,返回false;
msg = "自由工时:上班打卡后"+canpunchworkdate+"小时后,才可打下班卡"; msg = "自由工时:上班打卡后"+canpunchworkdate+"小时后,才可打下班卡";
sbyf = 0; sbyf = 0;
status_ = 2;
}else { }else {
zypcd.setId(zydkmc.getId()); zypcd.setId(zydkmc.getId());
zypcd.setXbdk3(time_);//下班1打卡时间 zypcd.setXbdk3(time_);//下班1打卡时间
...@@ -924,6 +929,7 @@ public class ClockInController { ...@@ -924,6 +929,7 @@ public class ClockInController {
}else { }else {
msg = "未检测到考勤机"; msg = "未检测到考勤机";
sbyf = 0; sbyf = 0;
status_ = 2;
} }
/*****************************************************************************************************************************************************************************************************/ /*****************************************************************************************************************************************************************************************************/
...@@ -940,6 +946,7 @@ public class ClockInController { ...@@ -940,6 +946,7 @@ public class ClockInController {
KqglAssoDkjl.builder().id(dkjj.getId()).status(0).sort(0).build().updateById(); KqglAssoDkjl.builder().id(dkjj.getId()).status(0).sort(0).build().updateById();
msg = "打卡已更新数据"; msg = "打卡已更新数据";
sbyf = 0; sbyf = 0;
status_ = 2;
} }
int results = 0; int results = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment