Compare commits

..

1 Commits

Author SHA1 Message Date
钱纯净
d7b6963bd6 修复workday没有要更新时会报错的问题 "no element on slice when insert" 2025-10-19 22:46:06 +08:00

View File

@@ -119,6 +119,10 @@ func (this *Workday) Update() error {
}
}
if len(inserts) == 0 {
return nil
}
_, err = this.db.Insert(inserts)
return err