支持跨天预约并新增员工全天排班SQL

This commit is contained in:
2026-07-22 12:21:26 +08:00
parent 0b33d72a1f
commit 73319a1613
17 changed files with 800 additions and 130 deletions
+2 -1
View File
@@ -79,7 +79,8 @@ function minutesOfDay(value) {
}
function timeFromMinutes(minutes) {
return `${pad(Math.floor(minutes / 60))}:${pad(minutes % 60)}`
const normalized = ((minutes % (24 * 60)) + 24 * 60) % (24 * 60)
return `${pad(Math.floor(normalized / 60))}:${pad(normalized % 60)}`
}
module.exports = {