Эх сурвалжийг харах

Merge branch 'feature/jiayue_index' into debug

hsun 1 жил өмнө
parent
commit
e0a8592423

+ 3 - 2
models/base_from_jiayue.go

@@ -95,10 +95,11 @@ func RefreshEdbDataFromJiaYue(source, edbInfoId int, tableName, edbCode, startDa
 	var edbDataInsertConfig *EdbDataInsertConfig
 	var isFindConfigDateRealData bool //是否找到配置日期的实际数据的值
 	{
-		edbDataInsertConfig, err = GetEdbDataInsertConfigByEdbId(edbInfoId)
-		if err != nil && err.Error() != utils.ErrNoRow() {
+		conf, e := GetEdbDataInsertConfigByEdbId(edbInfoId)
+		if e != nil && e.Error() != utils.ErrNoRow() {
 			return
 		}
+		edbDataInsertConfig = conf
 		if edbDataInsertConfig != nil {
 			edbDataInsertConfigDate = edbDataInsertConfig.Date
 		}