"src/pages/data-analysis/data-analysis.vue" did not exist on "b36f7cbdd4e2321d82a6b2d1fe7b1e6123926923"
Commit 8e69faa9 authored by 陈子龙's avatar 陈子龙

Merge branch 'dev-czl' into dev

parents 2f7c7d76 43a608e1
......@@ -602,7 +602,7 @@ func (h *HostManageSvc) ExportIp(id, uuid string, detectionType int) (fileName s
if detectionType == 1 {
//列表检测导出
finder := db.Table("host_manage_list").Where("is_delete = 0 AND host_group_id = ?", cast.ToInt(id))
finder := db.Table("host_manage_list").Where("is_delete = 0 AND conn_status = 1 AND host_group_id = ?", cast.ToInt(id))
err = finder.Select("ip,port,voucher_type,user_name,password").Find(&hostManageList)
if err != nil {
err = resp.DbSelectError.WithError(err)
......@@ -610,7 +610,7 @@ func (h *HostManageSvc) ExportIp(id, uuid string, detectionType int) (fileName s
}
} else {
//新增/编辑检测导出
finder := db.Table("host_manage_list_cache").Where("id = ?", uuid)
finder := db.Table("host_manage_list_cache").Where("conn_status = 1 AND id = ?", uuid)
err = finder.Select("ip,port,voucher_type,user_name,password").Find(&hostManageList)
if err != nil {
err = resp.DbSelectError.WithError(err)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment