作者 庄敏学

fixed

@@ -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 }