作者 tangxuhui

excel 导入调整

... ... @@ -241,6 +241,9 @@ func importCompanyUser(controller ExcelDataController) {
}
func (controller ExcelDataController) ImportCooperationUser() {
importCooperationUser(controller)
}
func importCooperationUser(controller ExcelDataController) {
excelService := service.NewExcelDataService(nil)
r, err := controller.GetExcelFile()
if err != nil {
... ... @@ -280,21 +283,22 @@ func (controller ExcelDataController) FileImport() {
// controller.ParseForm(cmd)
// cmd.Operator = controller.GetOperator()
// cmd.Reader = r
var (
data interface{}
err error
)
// var (
// data interface{}
// err error
// )
code := controller.GetString("code")
switch code {
case domain.ImportCompanyUser:
importCompanyUser(controller)
case domain.ImportCooperationUser:
importCooperationUser(controller)
case domain.ImportDividendsOrders:
importDividendsOrder(controller)
case domain.ImportOrganization:
importDividendsReturnedOrder(controller)
}
controller.Response(data, err)
// controller.Response(data, err)
}
func (controller ExcelDataController) FileImportTemplate() {
... ...