Commit fbcae8ba by leialin

Merge branch 'lal' into 'develop'

提交

See merge request 8timerv2/8timerapiv200!379
parents 7e557490 1b19d5a3
...@@ -2466,6 +2466,53 @@ public class ClockInController { ...@@ -2466,6 +2466,53 @@ public class ClockInController {
} }
} }
/***********/
//事务(请假,加班,调休,出差)
KqglAssoRelationSummary asssum = KqglAssoRelationSummary.builder().build().selectOne(new QueryWrapper<KqglAssoRelationSummary>().lambda().eq(KqglAssoRelationSummary::getUserId, userBean.getEmpNum())
.eq(KqglAssoRelationSummary::getAppTime, str).last("LIMIT 1"));
if(asssum != null) {
//0:无;1:事假;2:调休;3:病假;4:年假;5:产假;6:陪产假;7:婚假;8:例假;9:丧假;10:哺乳假;11:加班;12:出差;13:外出
if(asssum.getApprovalType() == 1) {
ash.setCalendar_status_type(11);
}else if(asssum.getApprovalType() == 2) {
//请假
KqglAssoLeaveRules rul = KqglAssoLeaveRules.builder().build().selectOne(new QueryWrapper<KqglAssoLeaveRules>().lambda().eq(KqglAssoLeaveRules::getId,asssum.getLeaveTypeId()));
if(rul.getRulesType() == 1) {
ash.setCalendar_status_type(1);
}else if(rul.getRulesType() == 2) {
ash.setCalendar_status_type(2);
}else if(rul.getRulesType() == 3) {
ash.setCalendar_status_type(3);
}else if(rul.getRulesType() == 4) {
ash.setCalendar_status_type(4);
}else if(rul.getRulesType() == 5) {
ash.setCalendar_status_type(5);
}else if(rul.getRulesType() == 6) {
ash.setCalendar_status_type(6);
}else if(rul.getRulesType() == 7) {
ash.setCalendar_status_type(7);
}else if(rul.getRulesType() == 8) {
ash.setCalendar_status_type(8);
}else if(rul.getRulesType() == 9) {
ash.setCalendar_status_type(9);
}else if(rul.getRulesType() == 10) {
ash.setCalendar_status_type(10);
}
}else if(asssum.getApprovalType() == 3) {
ash.setCalendar_status_type(12);
}else if(asssum.getApprovalType() == 4) {
ash.setCalendar_status_type(13);
}
}else {
ash.setCalendar_status_type(0);
}
/************/
KqglAssoBcsz shif = KqglAssoBcsz.builder().build().selectOne(new QueryWrapper<KqglAssoBcsz>().lambda().eq(KqglAssoBcsz::getId, ash.getId())); KqglAssoBcsz shif = KqglAssoBcsz.builder().build().selectOne(new QueryWrapper<KqglAssoBcsz>().lambda().eq(KqglAssoBcsz::getId, ash.getId()));
if(shif.getIsXbdk() == 1 && (ash.getSort())%2 == 0) { if(shif.getIsXbdk() == 1 && (ash.getSort())%2 == 0) {
......
...@@ -26,6 +26,8 @@ public class AttSchedule implements Serializable{ ...@@ -26,6 +26,8 @@ public class AttSchedule implements Serializable{
private Long starttime; private Long starttime;
private Long endtime; private Long endtime;
private Integer calendar_status_type;//0:无;1:事假;2:调休;3:病假;4:年假;5:产假;6:陪产假;7:婚假;8:例假;9:丧假;10:哺乳假;11:加班;12:出差;13:外出
private int isleave;//是否请假 private int isleave;//是否请假
private int isupdate;//是否跟新打卡 private int isupdate;//是否跟新打卡
private int isdk;//0:当前打卡 1:已过打卡 private int isdk;//0:当前打卡 1:已过打卡
......
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