作者 庄敏学

返回值

... ... @@ -364,7 +364,11 @@ func (srv ExcelDataService) ImportCost(importDataCommand *command.ImportDataComm
if err != nil {
return nil, application.ThrowError(application.BUSINESS_ERROR, err.Error())
}
return result.Data, nil
if result.Code != 0{
return nil,application.ThrowError(application.BUSINESS_ERROR,result.Msg)
}else {
return result.Data, nil
}
}
// 导入结果
... ...