...
|
...
|
@@ -196,6 +196,7 @@ func (service SyncEmployeeService) addEmployeeData(datas []EmployeeData) error { |
|
|
Permission: []domain.AdminPermissionBase{}, //初始化权限
|
|
|
AccessPartners: []domain.Partner{}, //默认初始化
|
|
|
AdminType: data.AdminType,
|
|
|
IsSenior: 2,
|
|
|
}
|
|
|
newUser.EntryTime, _ = time.Parse("2006-01-02", data.EntryTime)
|
|
|
if err = usersRepository.Add(&newUser); err != nil {
|
...
|
...
|
|