浏览代码

Merge branch 'aj_index_add'

tuoling805 1 年之前
父节点
当前提交
53f704bd61
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      services/base_from_mysteel_chemical.go

+ 2 - 2
services/base_from_mysteel_chemical.go

@@ -105,7 +105,7 @@ func handleIndex(indexItem *models.HandleMysteelIndex) (err error) {
 		exitDataList, err := dataObj.GetIndexDataList(indexItem.IndexCode)
 		if err != nil {
 			fmt.Println("GetIndexDataList Err:" + err.Error())
-			return
+			return err
 		}
 		fmt.Println("exitDataListLen:", len(exitDataList))
 		for _, v := range exitDataList {
@@ -121,7 +121,7 @@ func handleIndex(indexItem *models.HandleMysteelIndex) (err error) {
 			dateTime, err := time.ParseInLocation(utils.FormatDate, date, time.Local)
 			if err != nil {
 				fmt.Println("time.ParseInLocation Err:" + err.Error())
-				return
+				return err
 			}
 			if !strings.Contains(value, "#N/A") {
 				dataItem := new(models.BaseFromMysteelChemicalData)