修复重置花名册会报错问题 (#511)

This commit is contained in:
方柳煜 2022-12-01 14:04:40 +08:00 committed by GitHub
parent 7cdc92c142
commit c8684f74a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,6 +5,7 @@ import (
"math/rand"
"sort"
"strconv"
"strings"
"sync"
"time"
@ -457,7 +458,7 @@ func (sql *婚姻登记) 清理花名册(gid ...string) error {
default:
err := sql.db.Drop(gid[0])
if err == nil {
err = sql.db.Del("cdsheet", "where GroupID is "+gid[0])
_ = sql.db.Del("cdsheet", "where GroupID is "+strings.ReplaceAll(gid[0], "group", ""))
}
return err
}