|
|
@@ -613,7 +613,8 @@ public class XgStudentLeaveServiceImpl implements IXgStudentLeaveService {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 根据学生ID列表和检查日期查询学生请假信息
|
|
|
+ * 根据学生ID列表和检查日期查询已审批结束的请假信息。
|
|
|
+ * 仅 approval_status = finish 且检查时间落在请假区间内的记录会返回。
|
|
|
*
|
|
|
* @param studentIds 学生ID列表
|
|
|
* @param checkDate 检查日期
|
|
|
@@ -627,8 +628,8 @@ public class XgStudentLeaveServiceImpl implements IXgStudentLeaveService {
|
|
|
|
|
|
LambdaQueryWrapper<XgStudentLeave> lqw = Wrappers.lambdaQuery();
|
|
|
lqw.in(XgStudentLeave::getStudentId, studentIds);
|
|
|
- // 查询审核状态为"waiting"(待审核)或"finish"(已完成)的请假记录
|
|
|
- lqw.in(XgStudentLeave::getApprovalStatus, "waiting", "finish");
|
|
|
+ // 宿舍点名、卫生检查等状态展示:审批未结束不视为请假,仅 finish(审批全部结束)
|
|
|
+ lqw.eq(XgStudentLeave::getApprovalStatus, BusinessStatusEnum.FINISH.getStatus());
|
|
|
// 检查日期在请假时间段内
|
|
|
lqw.le(XgStudentLeave::getStartTime, checkDate);
|
|
|
lqw.ge(XgStudentLeave::getEndTime, checkDate);
|