特殊处理err

This commit is contained in:
richboo111
2022-11-03 10:44:18 +08:00
parent ddcf84e652
commit c6fd8fce66

View File

@@ -283,7 +283,8 @@ func FreightSpecialTreat(vendorOrgCode string, vendorStoreID, storeID int64) err
_, err1 := dao.UpdateEntity(db, FreightTemplate, "TemplateID")
errList.AddErr(fmt.Errorf("同步进数据库错误信息:%v", err1))
}
endErr := errList.GetErrListAsOne()
globals.SugarLogger.Info("utils.IsNil(errList)==============", utils.IsNil(errList))
globals.SugarLogger.Debugf("errList===============%s", utils.Format4Output(errList, false))
return errors.New(fmt.Sprintf("errList=%s,err=%v", utils.Format4Output(errList, false), err))
globals.SugarLogger.Debugf("errList===============%s\n,endErr========%v", utils.Format4Output(errList, false), endErr)
return errors.New(fmt.Sprintf("endErr============%s", endErr))
}