From 0222e79afe45d9fc55aed9a7e62ca239c228ab73 Mon Sep 17 00:00:00 2001 From: 554325746@qq.com <554325746@qq.com> Date: 星期一, 23 十二月 2019 10:24:12 +0800 Subject: [PATCH] add sys comeback sh --- controllers/fileController.go | 17 ++++++++++------- 1 files changed, 10 insertions(+), 7 deletions(-) diff --git a/controllers/fileController.go b/controllers/fileController.go index e31f95c..32fefb3 100644 --- a/controllers/fileController.go +++ b/controllers/fileController.go @@ -190,8 +190,7 @@ PicDate string `json:"picDate"` Content string `json:"content"` IsAlarm bool `json:"isAlarm"` - PicMaxUrl string `json:"picMaxUrl"` - PicSmUrl []string `json:"picSmUrl"` + PicMaxUrl []string `json:"picMaxUrl"` TargetInfo []TargetInfo `json:"targetInfo"` TaskId string `json:"taskId"` TaskName string `json:"taskName"` @@ -203,6 +202,7 @@ type TargetInfo struct { TargetId string `json:"targetId"` + TargetType string `json:"targetType"` TargetScore float64 `json:"targetScore"` Feature string `json:"feature"` PicSmUrl string `json:"picSmUrl"` @@ -215,15 +215,16 @@ } type DbPersonVo struct { + TableId string `json:"tableId"` + TableName string `json:"tableName"` BwType string `json:"bwType"` CompareScore float64 `json:"compareScore"` - MonitorLevel string `json:"monitorLevel"` TargetId string `json:"targetId"` TargetName string `json:"targetName"` TargetPicUrl string `json:"targetPicUrl"` + MonitorLevel string `json:"monitorLevel"` Labels string `json:"labels"` - TableId string `json:"tableId"` - TableName string `json:"tableName"` + Content string `json:"content"` Enable int32 `json:"enable"` } @@ -282,8 +283,9 @@ MonitorLevel: p.MonitorLevel, TargetName: p.PersonName, TargetPicUrl: p.PersonPicUrl, - Labels: p.Sex+" / "+p.IdCard+" / "+p.IdCard, + Labels: p.PhoneNum+"/"+p.Sex+"/"+p.IdCard, TableId: p.TableId, + Content: p.Reserved, Enable: p.Enable, } dbTableInfos, _ := dtApi.DbtablesById([]string{ p.TableId }) @@ -312,7 +314,7 @@ bi = append(bi, DbPersonVo{ TargetId: p.TargetId, CompareScore: util.ParseScore64(p.CompareScore), - MonitorLevel: parseMonitorLevel(p.MonitorLevel), + MonitorLevel: p.MonitorLevel, TargetName: p.TargetName, TargetPicUrl: p.TargetPicUrl, Labels: p.Labels, @@ -347,6 +349,7 @@ } tInfo := TargetInfo{ TargetId: vti.TargetId, + TargetType: vti.TargetType, TargetScore: vti.TargetScore, Feature: vti.Feature, PicSmUrl: vti.PicSmUrl, -- Gitblit v1.8.0