|
@@ -275,7 +275,7 @@ func (obj EdbThsHf) refreshByMysql(edbInfo *EdbInfo, edbBaseMapping *BaseFromEdb
|
|
|
|
|
|
|
|
|
exists := dataExists[strDate]
|
|
|
- if exists != nil {
|
|
|
+ if exists != nil && exists.EdbInfoId > 0 {
|
|
|
existVal := decimal.NewFromFloat(exists.Value).Round(4).String()
|
|
|
if saveVal != existVal {
|
|
|
exists.Value = saveFloat
|
|
@@ -444,7 +444,7 @@ func (obj EdbThsHf) refreshByMongo(edbInfo *EdbInfo, edbBaseMapping *BaseFromEdb
|
|
|
|
|
|
|
|
|
exists := existDataMap[strDate]
|
|
|
- if exists != nil {
|
|
|
+ if exists != nil && exists.EdbInfoId > 0 {
|
|
|
existVal := decimal.NewFromFloat(exists.Value).Round(4).String()
|
|
|
if saveVal != existVal {
|
|
|
exists.Value = saveFloat
|