Skip to content

Commit

Permalink
fix: update by cr
Browse files Browse the repository at this point in the history
  • Loading branch information
zhu327 committed Dec 28, 2023
1 parent 6e4da90 commit c1802d9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/database/dao/subject_template_group.go
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,10 @@ func (m *subjectTemplateGroupManager) ListThinRelationWithMaxExpiredAtByGroupPK(
}

func (m *subjectTemplateGroupManager) BulkDeleteBySubjectPKsWithTx(tx *sqlx.Tx, subjectPKs []int64) error {
if len(subjectPKs) == 0 {
return nil
}

sql := `DELETE FROM subject_template_group
WHERE subject_pk in (?)`
return database.SqlxDeleteWithTx(tx, sql, subjectPKs)
Expand Down

0 comments on commit c1802d9

Please sign in to comment.