数据分析平台 报警设置窗口新增编辑接口调整
This commit is contained in:
parent
c9b711496f
commit
9785ded35c
@ -17,7 +17,8 @@ func UpdateWarning(req *model.Warning) error {
|
||||
ReturnProbabilityLimitH: req.ReturnProbabilityLimitH,
|
||||
PassProbabilityLimitL: req.PassProbabilityLimitL,
|
||||
AveragePassProbability: req.AveragePassProbability,
|
||||
}).Find(&warning)
|
||||
})
|
||||
global.PostGreSQL.Where("product = ? AND step = ?", req.Product, req.Step).Find(&warning)
|
||||
} else {
|
||||
global.PostGreSQL.Model(&warning).Updates(map[string]interface{}{
|
||||
"first_pass_probability_limit_l": req.FirstPassProbabilityLimitL,
|
||||
|
Loading…
Reference in New Issue
Block a user