操作日志查询无记录时不查询detail

This commit is contained in:
苏尹岚
2020-02-03 09:06:24 +08:00
parent 919e866cb3
commit daabd0ed3f

View File

@@ -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