Commit 9a54fae6 by ilal Committed by chenzg

提交

parent 1a1299ac
...@@ -3369,46 +3369,43 @@ public class ClockInController { ...@@ -3369,46 +3369,43 @@ public class ClockInController {
if(trap.size() > 0) { if(trap.size() > 0) {
for(KqglAssoRelationSummary spnsw : trap) { for(KqglAssoRelationSummary spnsw : trap) {
TransactionApprovalDto taap = TransactionApprovalDto.builder().build(); TransactionApprovalDto taap = TransactionApprovalDto.builder().build();
if(spnsw.getApprovalType() == 2) {
KqglAssoLeaveRules rul = KqglAssoLeaveRules.builder().build().selectOne(new QueryWrapper<KqglAssoLeaveRules>().lambda().eq(KqglAssoLeaveRules::getId,spnsw.getLeaveTypeId()));
if(spnsw.getApprovalType() == 1) {
taap.setCalendar_status_type(11);
}else if(spnsw.getApprovalType() == 2) {
KqglAssoLeaveRules rul = KqglAssoLeaveRules.builder().build().selectOne(new QueryWrapper<KqglAssoLeaveRules>().lambda().eq(KqglAssoLeaveRules::getId,spnsw.getLeaveTypeId()));
if(rul.getRulesType() == 1) { if(rul.getRulesType() == 1) {
taap.setCalendar_status_type(1); taap.setCalendar_status_type(1);
}else if(rul.getRulesType() == 2) { }else if(rul.getRulesType() == 2) {
taap.setCalendar_status_type(2); taap.setCalendar_status_type(2);
}else if(rul.getRulesType() == 3) { }else if(rul.getRulesType() == 3) {
taap.setCalendar_status_type(3); taap.setCalendar_status_type(3);
}else if(rul.getRulesType() == 4) { }else if(rul.getRulesType() == 4) {
taap.setCalendar_status_type(4); taap.setCalendar_status_type(4);
}else if(rul.getRulesType() == 5) { }else if(rul.getRulesType() == 5) {
taap.setCalendar_status_type(5); taap.setCalendar_status_type(5);
}else if(rul.getRulesType() == 6) { }else if(rul.getRulesType() == 6) {
taap.setCalendar_status_type(6); taap.setCalendar_status_type(6);
}else if(rul.getRulesType() == 7) { }else if(rul.getRulesType() == 7) {
taap.setCalendar_status_type(7); taap.setCalendar_status_type(7);
}else if(rul.getRulesType() == 8) { }else if(rul.getRulesType() == 8) {
taap.setCalendar_status_type(8); taap.setCalendar_status_type(8);
}else if(rul.getRulesType() == 9) { }else if(rul.getRulesType() == 9) {
taap.setCalendar_status_type(9); taap.setCalendar_status_type(9);
}else if(rul.getRulesType() == 10) { }else if(rul.getRulesType() == 10) {
taap.setCalendar_status_type(10); taap.setCalendar_status_type(10);
} }
taap.setApproval_form(spnsw.getApprovalId()); }else if(spnsw.getApprovalType() == 3) {
taap.setCalendar_status_type(12);
}else if(spnsw.getApprovalType() == 4) {
taap.setCalendar_status_type(13);
}
taap.setApproval_form(spnsw.getApprovalId());
tranappr.add(taap); tranappr.add(taap);
attdate.setTranappr(tranappr); attdate.setTranappr(tranappr);
} }
}
}else { }else {
attdate.setTranappr(tranappr); attdate.setTranappr(tranappr);
} }
......
...@@ -76,7 +76,7 @@ ...@@ -76,7 +76,7 @@
and res.org_code = #{orgcode} and res.org_code = #{orgcode}
and res.approval_type = #{approvaltype} and res.approval_type = #{approvaltype}
and res.app_time = #{apptime} and res.app_time = #{apptime}
GROUP BY res.start_time,res.end_time; GROUP BY res.start_time,res.end_time DESC LIMIT 1
</select> </select>
<select id="selectTabledata" resultMap="BaseResultMap"> <select id="selectTabledata" resultMap="BaseResultMap">
......
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