...
|
...
|
@@ -686,6 +686,20 @@ func aggregationHasEdit(ctx *domain.Context, querySet *domain.QuerySet, queryCom |
|
|
}
|
|
|
|
|
|
func queryComponentsHasEdit(ctx *domain.Context, querySet *domain.QuerySet, queryComponents []*domain.QueryComponent) bool {
|
|
|
if len(querySet.QueryComponents) != len(queryComponents) {
|
|
|
return true
|
|
|
}
|
|
|
for i := range querySet.QueryComponents {
|
|
|
if querySet.QueryComponents[i].MasterTable == nil || queryComponents[i].MasterTable == nil {
|
|
|
continue
|
|
|
}
|
|
|
if querySet.QueryComponents[i].MasterTable.TableId != queryComponents[i].MasterTable.TableId {
|
|
|
return true
|
|
|
}
|
|
|
if len(querySet.QueryComponents[i].MasterTable.Fields) != len(queryComponents[i].MasterTable.Fields) {
|
|
|
return true
|
|
|
}
|
|
|
}
|
|
|
logs := selectsEditLog(ctx, querySet, queryComponents)
|
|
|
if len(logs) > 0 {
|
|
|
return true
|
...
|
...
|
|