合并分支 'dev' 到 'test'
fixed 查看合并请求 !25
正在显示
1 个修改的文件
包含
14 行增加
和
1 行删除
@@ -394,7 +394,20 @@ func (srv ExcelDataService) ImportCost(importDataCommand *command.ImportDataComm | @@ -394,7 +394,20 @@ func (srv ExcelDataService) ImportCost(importDataCommand *command.ImportDataComm | ||
394 | return nil, application.ThrowError(application.BUSINESS_ERROR, err.Error()) | 394 | return nil, application.ThrowError(application.BUSINESS_ERROR, err.Error()) |
395 | } | 395 | } |
396 | if result.Code != 0 { | 396 | if result.Code != 0 { |
397 | - return nil, application.ThrowError(application.BUSINESS_ERROR, result.Msg) | 397 | + return map[string]interface{}{ |
398 | + "successCount": 0, | ||
399 | + "fail": map[string]interface{}{ | ||
400 | + "header": map[string]string{ | ||
401 | + "failReason": "错误详情", | ||
402 | + "projectCode": "项目编码", | ||
403 | + "itemName": "细项名称", | ||
404 | + }, | ||
405 | + "body": []map[string]interface{}{ | ||
406 | + {"failReason":result.Msg,"projectCode":"","itemName":""}, | ||
407 | + }, | ||
408 | + }, | ||
409 | + "successData":nil, | ||
410 | + }, nil | ||
398 | } else { | 411 | } else { |
399 | return result.Data, nil | 412 | return result.Data, nil |
400 | } | 413 | } |
-
请 注册 或 登录 后发表评论