修改了自动派单排序

This commit is contained in:
2025-08-29 16:50:21 +08:00
parent bad3ffdf4c
commit ce0c4b201c

View File

@@ -245,7 +245,7 @@ public class ServiceWorkOrdersServiceImpl implements IServiceWorkOrdersService {
.le(AttendanceUserGroup::getStartDate, today) .le(AttendanceUserGroup::getStartDate, today)
.ge(AttendanceUserGroup::getEndDate, today) .ge(AttendanceUserGroup::getEndDate, today)
.eq(AttendanceUserGroup::getDeptId, serviceWorkOrders.getCreateDept()) .eq(AttendanceUserGroup::getDeptId, serviceWorkOrders.getCreateDept())
.orderByAsc(AttendanceUserGroup::getCreateTime) .orderByAsc(AttendanceUserGroup::getStartDate)
); );
Assert.isTrue(CollUtil.isNotEmpty(attendanceUserGroups), "暂无排班人员"); Assert.isTrue(CollUtil.isNotEmpty(attendanceUserGroups), "暂无排班人员");
// 缓存当天排班数据(假设当天不会变) // 缓存当天排班数据(假设当天不会变)