正在显示
1 个修改的文件
包含
6 行增加
和
0 行删除
| @@ -196,6 +196,9 @@ func (srv ExcelDataService) ImportCompanyUser(importDataCommand *command.ImportD | @@ -196,6 +196,9 @@ func (srv ExcelDataService) ImportCompanyUser(importDataCommand *command.ImportD | ||
| 196 | } | 196 | } |
| 197 | users := make([]allied_creation_user.BatchAddUserItem, 0) | 197 | users := make([]allied_creation_user.BatchAddUserItem, 0) |
| 198 | for _, v := range excelData { | 198 | for _, v := range excelData { |
| 199 | + if len(v) == 0 { | ||
| 200 | + continue | ||
| 201 | + } | ||
| 199 | item := allied_creation_user.BatchAddUserItem{ | 202 | item := allied_creation_user.BatchAddUserItem{ |
| 200 | CompanyId: importDataCommand.Operator.CompanyId, | 203 | CompanyId: importDataCommand.Operator.CompanyId, |
| 201 | UserType: domain.UserTypeEmployee, | 204 | UserType: domain.UserTypeEmployee, |
| @@ -234,6 +237,9 @@ func (srv ExcelDataService) ImportOrganization(importDataCommand *command.Import | @@ -234,6 +237,9 @@ func (srv ExcelDataService) ImportOrganization(importDataCommand *command.Import | ||
| 234 | } | 237 | } |
| 235 | items := make([]allied_creation_user.BatchAddOrgItem, 0) | 238 | items := make([]allied_creation_user.BatchAddOrgItem, 0) |
| 236 | for _, v := range excelData { | 239 | for _, v := range excelData { |
| 240 | + if len(v) == 0 { | ||
| 241 | + continue | ||
| 242 | + } | ||
| 237 | item := allied_creation_user.BatchAddOrgItem{ | 243 | item := allied_creation_user.BatchAddOrgItem{ |
| 238 | CompanyId: importDataCommand.Operator.CompanyId, | 244 | CompanyId: importDataCommand.Operator.CompanyId, |
| 239 | OrgCode: v["orgCode"], | 245 | OrgCode: v["orgCode"], |
-
请 注册 或 登录 后发表评论