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