Prechádzať zdrojové kódy

Merge branch 'feature/jiayue_index' into debug

hsun 1 rok pred
rodič
commit
e0a8592423
1 zmenil súbory, kde vykonal 3 pridanie a 2 odobranie
  1. 3 2
      models/base_from_jiayue.go

+ 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
 		}