操作日志查询无记录时不查询detail
This commit is contained in:
@@ -95,6 +95,9 @@ func GetOperateEvents(db *DaoDB, name string, apiFunctions []string, operateType
|
||||
for _, v := range operateEventExt {
|
||||
accessUUidList = append(accessUUidList, v.AccessUUID)
|
||||
}
|
||||
if len(accessUUidList) == 0 {
|
||||
return operateEventExt, totalCount, err
|
||||
}
|
||||
sql2 := `
|
||||
SELECT *
|
||||
FROM operate_event_detail
|
||||
|
||||
Reference in New Issue
Block a user