|
@@ -63,8 +63,8 @@ func SetMysteelChemicalEdbInfoUpdateStat(needStat bool) (err error) {
|
|
|
alarm_msg.SendAlarmMsg(tips, 3)
|
|
|
}
|
|
|
}()
|
|
|
-
|
|
|
- condition := " and source = ? "
|
|
|
+
|
|
|
+ condition := " and source = ? and no_update=0"
|
|
|
var pars []interface{}
|
|
|
pars = append(pars, utils.DATA_SOURCE_MYSTEEL_CHEMICAL)
|
|
|
edbList, err := models.GetEdbInfoByCondition(condition, pars, 0)
|
|
@@ -297,13 +297,13 @@ func SetEdbSourceStat(needStat bool) (err error) {
|
|
|
|
|
|
if v.DataUpdateResult == 1 {
|
|
|
tmp.UpdateSuccessNum = tmp.UpdateSuccessNum + 1
|
|
|
- } else if v.NeedRefresh == 1 {
|
|
|
+ } else if v.NeedRefresh == 1 || v.HasRefresh == 1 {
|
|
|
tmp.UpdateFailedNum = tmp.UpdateFailedNum + 1
|
|
|
}
|
|
|
|
|
|
if v.UpdateResult == 1 {
|
|
|
tmp.RefreshSuccessNum = tmp.RefreshSuccessNum + 1
|
|
|
- } else if v.NeedRefresh == 1 {
|
|
|
+ } else if v.HasRefresh == 1 {
|
|
|
tmp.RefreshFailedNum = tmp.RefreshFailedNum + 1
|
|
|
}
|
|
|
}
|