正在显示
1 个修改的文件
包含
14 行增加
和
0 行删除
@@ -686,6 +686,20 @@ func aggregationHasEdit(ctx *domain.Context, querySet *domain.QuerySet, queryCom | @@ -686,6 +686,20 @@ func aggregationHasEdit(ctx *domain.Context, querySet *domain.QuerySet, queryCom | ||
686 | } | 686 | } |
687 | 687 | ||
688 | func queryComponentsHasEdit(ctx *domain.Context, querySet *domain.QuerySet, queryComponents []*domain.QueryComponent) bool { | 688 | func queryComponentsHasEdit(ctx *domain.Context, querySet *domain.QuerySet, queryComponents []*domain.QueryComponent) bool { |
689 | + if len(querySet.QueryComponents) != len(queryComponents) { | ||
690 | + return true | ||
691 | + } | ||
692 | + for i := range querySet.QueryComponents { | ||
693 | + if querySet.QueryComponents[i].MasterTable == nil || queryComponents[i].MasterTable == nil { | ||
694 | + continue | ||
695 | + } | ||
696 | + if querySet.QueryComponents[i].MasterTable.TableId != queryComponents[i].MasterTable.TableId { | ||
697 | + return true | ||
698 | + } | ||
699 | + if len(querySet.QueryComponents[i].MasterTable.Fields) != len(queryComponents[i].MasterTable.Fields) { | ||
700 | + return true | ||
701 | + } | ||
702 | + } | ||
689 | logs := selectsEditLog(ctx, querySet, queryComponents) | 703 | logs := selectsEditLog(ctx, querySet, queryComponents) |
690 | if len(logs) > 0 { | 704 | if len(logs) > 0 { |
691 | return true | 705 | return true |
-
请 注册 或 登录 后发表评论