...
|
...
|
@@ -110,7 +110,7 @@ func importDividendsOrder(controller ExcelDataController) { |
|
|
return
|
|
|
}
|
|
|
excelImport := excel.NewExcelImport()
|
|
|
excelImport.RowBegin = 2 //第2行开始读取
|
|
|
excelImport.RowBegin = 3 //第2行开始读取
|
|
|
excelImport.DataFields = []excel.DataField{
|
|
|
{EnName: "OriginalOrderNum", CnName: "*来源单号"},
|
|
|
{EnName: "DividendsCustomerName", CnName: "*客户名称"},
|
...
|
...
|
@@ -173,7 +173,7 @@ func importDividendsReturnedOrder(controller ExcelDataController) { |
|
|
return
|
|
|
}
|
|
|
excelImport := excel.NewExcelImport()
|
|
|
excelImport.RowBegin = 2 //第2行表头开始读取
|
|
|
excelImport.RowBegin = 3 //第2行表头开始读取
|
|
|
excelImport.DataFields = []excel.DataField{
|
|
|
{EnName: "OriginalOrderNum", CnName: "*来源单号"},
|
|
|
{EnName: "DividendsReturnedCustomerName", CnName: "*客户名称"},
|
...
|
...
|
@@ -257,7 +257,7 @@ func importCooperationUser(controller ExcelDataController) { |
|
|
controller.Response(data, err)
|
|
|
}
|
|
|
|
|
|
func (controller ExcelDataController) ImportOrganization() {
|
|
|
func importOrganization(controller ExcelDataController) {
|
|
|
excelService := service.NewExcelDataService(nil)
|
|
|
r, err := controller.GetExcelFile()
|
|
|
if err != nil {
|
...
|
...
|
@@ -271,6 +271,10 @@ func (controller ExcelDataController) ImportOrganization() { |
|
|
controller.Response(data, err)
|
|
|
}
|
|
|
|
|
|
func (controller ExcelDataController) ImportOrganization() {
|
|
|
importOrganization(controller)
|
|
|
}
|
|
|
|
|
|
func (controller ExcelDataController) FileImport() {
|
|
|
// excelService := service.NewExcelDataService(nil)
|
|
|
// r, err := controller.GetExcelFile()
|
...
|
...
|
@@ -295,8 +299,10 @@ func (controller ExcelDataController) FileImport() { |
|
|
importCooperationUser(controller)
|
|
|
case domain.ImportDividendsOrders:
|
|
|
importDividendsOrder(controller)
|
|
|
case domain.ImportOrganization:
|
|
|
case domain.ImportDividendsReturnOrders:
|
|
|
importDividendsReturnedOrder(controller)
|
|
|
case domain.ImportOrganization:
|
|
|
importOrganization(controller)
|
|
|
}
|
|
|
// controller.Response(data, err)
|
|
|
}
|
...
|
...
|
|