...
|
...
|
@@ -274,6 +274,8 @@ func (userService *UserService) CreateUser(createUserCommand *command.CreateUser |
|
|
Phone: createUserCommand.Phone,
|
|
|
UserName: createUserCommand.UserName,
|
|
|
DepName: createUserCommand.DepartmentName,
|
|
|
IcCardNumber: createUserCommand.IcCardNumber,
|
|
|
EmployeeType: createUserCommand.EmployeeType,
|
|
|
},
|
|
|
CreatedAt: time.Now(),
|
|
|
UpdatedAt: time.Now(),
|
...
|
...
|
@@ -705,7 +707,7 @@ func (userService *UserService) UpdateUser(updateUserCommand *command.UpdateUser |
|
|
defer func() {
|
|
|
transactionContext.RollbackTransaction()
|
|
|
}()
|
|
|
_, user, err := factory.FastPgUser(transactionContext, updateUserCommand.UserId, factory.WithDataAuthRequired(), factory.WithOperator(updateUserCommand.OperateInfo))
|
|
|
_, user, err := factory.FastPgUser(transactionContext, updateUserCommand.UserId, factory.WithOperator(updateUserCommand.OperateInfo)) //, factory.WithDataAuthRequired()
|
|
|
if err != nil {
|
|
|
return nil, err
|
|
|
}
|
...
|
...
|
@@ -729,6 +731,8 @@ func (userService *UserService) UpdateUser(updateUserCommand *command.UpdateUser |
|
|
Email: updateUserCommand.Email,
|
|
|
DepartmentName: updateUserCommand.DepartmentName,
|
|
|
}
|
|
|
user.Ext.EmployeeType = updateUserCommand.EmployeeType
|
|
|
user.Ext.IcCardNumber = updateUserCommand.IcCardNumber
|
|
|
|
|
|
updateUserService, _ := factory.CreatePgUpdateUserService(map[string]interface{}{
|
|
|
"transactionContext": transactionContext,
|
...
|
...
|
|