service/receipt.go
@@ -135,6 +135,8 @@ SetPage(params.Page, params.PageSize). SetSourceType(params.SourceType). SetSourceId(params.SourceId). SetClientId(params.ClientId). SetPrincipalIds(params.PrincipleIds). Find() if err != nil { return nil, 0, ecode.DBErr @@ -189,7 +191,7 @@ } } err = model.WithTransaction(func(db *gorm.DB) error { err = model.NewReceiptSearch().SetId(receipt.Id).Save(receipt) err = model.NewReceiptSearch().SetId(receipt.Id).Update(receipt) if err != nil { return err }