作者 tangxuhui

excel 导入调整

@@ -241,6 +241,9 @@ func importCompanyUser(controller ExcelDataController) { @@ -241,6 +241,9 @@ func importCompanyUser(controller ExcelDataController) {
241 } 241 }
242 242
243 func (controller ExcelDataController) ImportCooperationUser() { 243 func (controller ExcelDataController) ImportCooperationUser() {
  244 + importCooperationUser(controller)
  245 +}
  246 +func importCooperationUser(controller ExcelDataController) {
244 excelService := service.NewExcelDataService(nil) 247 excelService := service.NewExcelDataService(nil)
245 r, err := controller.GetExcelFile() 248 r, err := controller.GetExcelFile()
246 if err != nil { 249 if err != nil {
@@ -280,21 +283,22 @@ func (controller ExcelDataController) FileImport() { @@ -280,21 +283,22 @@ func (controller ExcelDataController) FileImport() {
280 // controller.ParseForm(cmd) 283 // controller.ParseForm(cmd)
281 // cmd.Operator = controller.GetOperator() 284 // cmd.Operator = controller.GetOperator()
282 // cmd.Reader = r 285 // cmd.Reader = r
283 - var (  
284 - data interface{}  
285 - err error  
286 - ) 286 + // var (
  287 + // data interface{}
  288 + // err error
  289 + // )
287 code := controller.GetString("code") 290 code := controller.GetString("code")
288 switch code { 291 switch code {
289 case domain.ImportCompanyUser: 292 case domain.ImportCompanyUser:
290 importCompanyUser(controller) 293 importCompanyUser(controller)
291 case domain.ImportCooperationUser: 294 case domain.ImportCooperationUser:
  295 + importCooperationUser(controller)
292 case domain.ImportDividendsOrders: 296 case domain.ImportDividendsOrders:
293 importDividendsOrder(controller) 297 importDividendsOrder(controller)
294 case domain.ImportOrganization: 298 case domain.ImportOrganization:
295 importDividendsReturnedOrder(controller) 299 importDividendsReturnedOrder(controller)
296 } 300 }
297 - controller.Response(data, err) 301 + // controller.Response(data, err)
298 } 302 }
299 303
300 func (controller ExcelDataController) FileImportTemplate() { 304 func (controller ExcelDataController) FileImportTemplate() {