合并分支 'dev' 到 'test'
返回值 查看合并请求 !21
正在显示
1 个修改的文件
包含
4 行增加
和
0 行删除
| @@ -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 | + if result.Code != 0{ | ||
| 368 | + return nil,application.ThrowError(application.BUSINESS_ERROR,result.Msg) | ||
| 369 | + }else { | ||
| 367 | return result.Data, nil | 370 | return result.Data, nil |
| 371 | + } | ||
| 368 | } | 372 | } |
| 369 | 373 | ||
| 370 | // 导入结果 | 374 | // 导入结果 |
-
请 注册 或 登录 后发表评论