Commit 1e64f9dd by ilal

提交

parent 382b022b
...@@ -1605,21 +1605,31 @@ public class ClockInController { ...@@ -1605,21 +1605,31 @@ public class ClockInController {
kskd = false; kskd = false;
if(attdate.getAttsch().size() == 2) {//一套上下班 上班1 if(attdate.getAttsch().size() == 2) {//一套上下班 上班1
if(clock.getType() == 1) { if(clock.getType() == 1) {
boolean effectiveDate1 = ClockInTool.hourMinuteBetween(new SimpleDateFormat("yyyy-MM-dd HH:mm").format(time_), new SimpleDateFormat("yyyy-MM-dd HH:mm").format(starttime1ks), new SimpleDateFormat("yyyy-MM-dd HH:mm").format(starttime1js),"yyyy-MM-dd HH:mm"); if(starttime1ks == 0 && starttime1js == 0) {
if (effectiveDate1) {//在范围内就打卡 atttype = clock.getType();
atttype = clock.getType();
isRange = true;//在范围 isRange = true;//在范围
}else { }else {
isRange = false; boolean effectiveDate1 = ClockInTool.hourMinuteBetween(new SimpleDateFormat("yyyy-MM-dd HH:mm").format(time_), new SimpleDateFormat("yyyy-MM-dd HH:mm").format(starttime1ks), new SimpleDateFormat("yyyy-MM-dd HH:mm").format(starttime1js),"yyyy-MM-dd HH:mm");
} if (effectiveDate1) {//在范围内就打卡
atttype = clock.getType();
isRange = true;//在范围
}else {
isRange = false;
}
}
}else if(clock.getType() == 2){ }else if(clock.getType() == 2){
boolean effectiveDate2 = ClockInTool.hourMinuteBetween(new SimpleDateFormat("yyyy-MM-dd HH:mm").format(time_), new SimpleDateFormat("yyyy-MM-dd HH:mm").format(endtime1ks), new SimpleDateFormat("yyyy-MM-dd HH:mm").format(endtime1js),"yyyy-MM-dd HH:mm"); if(endtime1ks == 0 && endtime1js == 0) {
if (effectiveDate2) {//在范围内就打卡 atttype = clock.getType();
atttype = clock.getType();
isRange = true;//在范围 isRange = true;//在范围
}else { }else {
isRange = false; boolean effectiveDate2 = ClockInTool.hourMinuteBetween(new SimpleDateFormat("yyyy-MM-dd HH:mm").format(time_), new SimpleDateFormat("yyyy-MM-dd HH:mm").format(endtime1ks), new SimpleDateFormat("yyyy-MM-dd HH:mm").format(endtime1js),"yyyy-MM-dd HH:mm");
} if (effectiveDate2) {//在范围内就打卡
atttype = clock.getType();
isRange = true;//在范围
}else {
isRange = false;
}
}
} }
}else { }else {
boolean getinto = true; boolean getinto = true;
...@@ -2833,7 +2843,7 @@ public class ClockInController { ...@@ -2833,7 +2843,7 @@ public class ClockInController {
} }
} }
if(bcsz != null) { if(bcsz != null && (dkjl.getSort())%2 > 0) {
int yxcdfzs = bcsz.getYxcdfzs();//允许迟到分钟数 int yxcdfzs = bcsz.getYxcdfzs();//允许迟到分钟数
int yzcdfzs = bcsz.getYzcdfzs();//严重迟到分钟数 int yzcdfzs = bcsz.getYzcdfzs();//严重迟到分钟数
int kgcdfzs = bcsz.getKgcdfzs();//旷工迟到分钟数 int kgcdfzs = bcsz.getKgcdfzs();//旷工迟到分钟数
......
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