...
|
...
|
@@ -394,7 +394,20 @@ func (srv ExcelDataService) ImportCost(importDataCommand *command.ImportDataComm |
|
|
return nil, application.ThrowError(application.BUSINESS_ERROR, err.Error())
|
|
|
}
|
|
|
if result.Code != 0 {
|
|
|
return nil, application.ThrowError(application.BUSINESS_ERROR, result.Msg)
|
|
|
return map[string]interface{}{
|
|
|
"successCount": 0,
|
|
|
"fail": map[string]interface{}{
|
|
|
"header": map[string]string{
|
|
|
"failReason": "错误详情",
|
|
|
"projectCode": "项目编码",
|
|
|
"itemName": "细项名称",
|
|
|
},
|
|
|
"body": []map[string]interface{}{
|
|
|
{"failReason":result.Msg,"projectCode":"","itemName":""},
|
|
|
},
|
|
|
},
|
|
|
"successData":nil,
|
|
|
}, nil
|
|
|
} else {
|
|
|
return result.Data, nil
|
|
|
}
|
...
|
...
|
|