Commit bc1a4aa6 by leialin

Merge branch 'lal' into 'develop'

提交

See merge request 8timerv2/8timerapiv200!424
parents 3b51e444 abf7ffce
......@@ -2647,6 +2647,7 @@ public class ClockInController {
int p = 0;
if(EmptyUtil.isNotEmpty(beforeattdate.getAttsch()) && beforeattsch.get(0).getId() != 0) {
int g = 1;
for(AttSchedule befo : beforeattsch) {
boolean isdkjl = true;
if(befo.getNextday() == 1) {
......@@ -2673,7 +2674,24 @@ public class ClockInController {
}
if(beforeattdate.getAttsch().size() == 2) {
if(befo.getStarttime() != 0 && befo.getEndtime() != 0) {
boolean ectivedate = ClockInTool.hourMinuteBetween(new SimpleDateFormat("yyyy-MM-dd HH:mm").format(nowdate), new SimpleDateFormat("yyyy-MM-dd HH:mm").format(befo.getStarttime()), new SimpleDateFormat("yyyy-MM-dd HH:mm").format(befo.getEndtime()),"yyyy-MM-dd HH:mm");
if(g == 1) {
if(ectivedate) {
attschbefo.setIsdk(0);
}else {
attschbefo.setIsdk(1);
}
}
if(g == 2) {
if(ectivedate) {
attschbefo.setIsdk(0);
}else {
attschbefo.setIsdk(1);
}
}
g++;
}
}else {
boolean ectivedate = ClockInTool.hourMinuteBetween(new SimpleDateFormat("yyyy-MM-dd HH:mm").format(nowdate), new SimpleDateFormat("yyyy-MM-dd HH:mm").format(befo.getStarttime()), new SimpleDateFormat("yyyy-MM-dd HH:mm").format(befo.getEndtime()),"yyyy-MM-dd HH:mm");
if(ectivedate) {
......
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