|
@@ -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)
|