作者 庄敏学

合并分支 'dev' 到 'test'

返回值



查看合并请求 !21
@@ -364,7 +364,11 @@ func (srv ExcelDataService) ImportCost(importDataCommand *command.ImportDataComm @@ -364,7 +364,11 @@ func (srv ExcelDataService) ImportCost(importDataCommand *command.ImportDataComm
364 if err != nil { 364 if err != nil {
365 return nil, application.ThrowError(application.BUSINESS_ERROR, err.Error()) 365 return nil, application.ThrowError(application.BUSINESS_ERROR, err.Error())
366 } 366 }
367 - return result.Data, nil 367 + if result.Code != 0{
  368 + return nil,application.ThrowError(application.BUSINESS_ERROR,result.Msg)
  369 + }else {
  370 + return result.Data, nil
  371 + }
368 } 372 }
369 373
370 // 导入结果 374 // 导入结果