optimized(scheduler): reduce sql query of mysql (#15878)

This commit is contained in:
Zexi Li
2023-01-31 19:30:58 +08:00
committed by GitHub
parent 99d250399a
commit 407c90ccfb
33 changed files with 971 additions and 313 deletions
+4 -4
View File
@@ -548,19 +548,19 @@ func (manager *SModelBaseManager) CustomizedTotalCount(ctx context.Context, user
return ret.Count, nil, nil
}
func (model *SModelBase) GetId() string {
func (model SModelBase) GetId() string {
return ""
}
func (model *SModelBase) Keyword() string {
func (model SModelBase) Keyword() string {
return model.GetModelManager().Keyword()
}
func (model *SModelBase) KeywordPlural() string {
func (model SModelBase) KeywordPlural() string {
return model.GetModelManager().KeywordPlural()
}
func (model *SModelBase) GetName() string {
func (model SModelBase) GetName() string {
return ""
}
+1 -1
View File
@@ -179,7 +179,7 @@ func (model *SStandaloneAnonResourceBase) StandaloneModelManager() IStandaloneMo
return model.GetModelManager().(IStandaloneModelManager)
}
func (model *SStandaloneAnonResourceBase) GetId() string {
func (model SStandaloneAnonResourceBase) GetId() string {
return model.Id
}