作者 庄敏学

修复删除时未删除表

@@ -117,7 +117,7 @@ func DeleteObjectTable(ctx context.Context, svcCtx *svc.ServiceContext, conn tra @@ -117,7 +117,7 @@ func DeleteObjectTable(ctx context.Context, svcCtx *svc.ServiceContext, conn tra
117 objectTable, err := svcCtx.ObjectTableRepository.FindOneByTableId(ctx, conn, sourceId) 117 objectTable, err := svcCtx.ObjectTableRepository.FindOneByTableId(ctx, conn, sourceId)
118 if err == nil && objectTable.Id > 0 && objectTable.RemoteDeleted == 1 { 118 if err == nil && objectTable.Id > 0 && objectTable.RemoteDeleted == 1 {
119 //删除表 119 //删除表
120 - _, err = svcCtx.ObjectTableRepository.Delete(ctx, conn, &domain.ObjectTable{Id: sourceId, TableType: objectTable.TableType}) 120 + _, err = svcCtx.ObjectTableRepository.Delete(ctx, conn, &domain.ObjectTable{Id: objectTable.Id, TableType: objectTable.TableType})
121 if err != nil { 121 if err != nil {
122 return err 122 return err
123 } 123 }