...
|
...
|
@@ -278,7 +278,18 @@ func (dividendsOrderService *DividendsOrderService) ImportDividendsOrder(importD |
|
|
}
|
|
|
|
|
|
// 返回信息表头定义
|
|
|
var tableHeader = []string{"错误详情", "行号", "来源单号", "客户名称", "产品名称", "订单日期", "订单区域", "产品数量", "产品价格", "费用", "项目合约编号"}
|
|
|
var tableHeader = map[string]interface{}{
|
|
|
"failReason": "错误详情",
|
|
|
"originalOrderNum": "来源单号",
|
|
|
"dividendsCustomerName": "客户名称",
|
|
|
"orderGoodName": "产品名称",
|
|
|
"orderTime": "订单日期",
|
|
|
"regionName": "订单区域",
|
|
|
"orderGoodQuantity": "产品数量",
|
|
|
"orderGoodPrice": "产品价格",
|
|
|
"expense": "费用",
|
|
|
"cooperationContractNumber": "项目合约编号",
|
|
|
}
|
|
|
|
|
|
// 空文件校验
|
|
|
if len(importDividendsOrderCommand.DividendsOrderData) == 0 {
|
...
|
...
|
@@ -326,8 +337,8 @@ func (dividendsOrderService *DividendsOrderService) ImportDividendsOrder(importD |
|
|
return map[string]interface{}{
|
|
|
"successCount": 0,
|
|
|
"fail": map[string]interface{}{
|
|
|
"tableHeader": tableHeader,
|
|
|
"tableData": nullCellError,
|
|
|
"header": tableHeader,
|
|
|
"body": nullCellError,
|
|
|
},
|
|
|
}, nil
|
|
|
}
|
...
|
...
|
@@ -431,8 +442,8 @@ func (dividendsOrderService *DividendsOrderService) ImportDividendsOrder(importD |
|
|
return map[string]interface{}{
|
|
|
"successCount": 0,
|
|
|
"fail": map[string]interface{}{
|
|
|
"tableHeader": tableHeader,
|
|
|
"tableData": typeError,
|
|
|
"header": tableHeader,
|
|
|
"body": typeError,
|
|
|
},
|
|
|
}, nil
|
|
|
}
|
...
|
...
|
@@ -539,8 +550,8 @@ func (dividendsOrderService *DividendsOrderService) ImportDividendsOrder(importD |
|
|
return map[string]interface{}{
|
|
|
"successCount": 0,
|
|
|
"fail": map[string]interface{}{
|
|
|
"tableHeader": tableHeader,
|
|
|
"tableData": aggregateErrorList,
|
|
|
"header": tableHeader,
|
|
|
"body": aggregateErrorList,
|
|
|
},
|
|
|
}, nil
|
|
|
}
|
...
|
...
|
@@ -602,8 +613,8 @@ func (dividendsOrderService *DividendsOrderService) ImportDividendsOrder(importD |
|
|
return map[string]interface{}{
|
|
|
"successCount": successDataCount,
|
|
|
"fail": map[string]interface{}{
|
|
|
"tableHeader": tableHeader,
|
|
|
"tableData": failureDataList,
|
|
|
"header": tableHeader,
|
|
|
"body": failureDataList,
|
|
|
},
|
|
|
}, nil
|
|
|
}
|
...
|
...
|
@@ -733,8 +744,8 @@ func (dividendsOrderService *DividendsOrderService) ImportDividendsOrder(importD |
|
|
return map[string]interface{}{
|
|
|
"successCount": successDataCount,
|
|
|
"fail": map[string]interface{}{
|
|
|
"tableHeader": tableHeader,
|
|
|
"tableData": failureDataList,
|
|
|
"header": tableHeader,
|
|
|
"body": failureDataList,
|
|
|
},
|
|
|
}, nil
|
|
|
}
|
...
|
...
|
|