|
@@ -435,7 +435,7 @@ func AddOrUpdateEdbDataWithOpType(edbInfoId int, dataList []*models.EdbDataBaseW
|
|
|
}
|
|
|
} else {
|
|
|
if v.OpType != "delete" {
|
|
|
- if v.ModifyTime.After(oldObj.ModifyTime) {
|
|
|
+ if v.ModifyTime.After(oldObj.ModifyTime) || oldObj.Value != val {
|
|
|
err = mgodb.ModifyValueEdbDataValue(oldObj.EdbDataId, val, v.ModifyTime)
|
|
|
if err != nil {
|
|
|
err = fmt.Errorf("更新指标数据出错 error, %v", err)
|
|
@@ -535,7 +535,7 @@ func AddOrUpdateEdbDataCalculateWithOpType(edbInfoId int, dataList []*models.Edb
|
|
|
}
|
|
|
} else {
|
|
|
if v.OpType != "delete" {
|
|
|
- if v.ModifyTime.After(oldObj.ModifyTime) {
|
|
|
+ if v.ModifyTime.After(oldObj.ModifyTime) || oldObj.Value != val {
|
|
|
err = mgodb.ModifyValueEdbCalculateDataValue(oldObj.EdbDataId, val, v.ModifyTime)
|
|
|
if err != nil {
|
|
|
err = fmt.Errorf("更新指标数据出错 error, %v", err)
|