WH01243 1 жил өмнө
parent
commit
296bc414b6
1 өөрчлөгдсөн 1 нэмэгдсэн , 2 устгасан
  1. 1 2
      ent/entity/user.go

+ 1 - 2
ent/entity/user.go

@@ -362,7 +362,6 @@ func (u *User) UpdateInfo(mail string, phone string, name string, userId, deptId
 					"phone": phone,
 				},
 			}, false, false)
-			u.UpdateUserName(entId, userId, user_name)
 			return f
 		} else {
 			return false
@@ -376,7 +375,7 @@ func (u *User) UpdateInfo(mail string, phone string, name string, userId, deptId
 				},
 			}, true, false)
 			ok_2 := VarUser.Move(tx, entId, deptId, fmt.Sprint(userId))
-			u.UpdateUserName(entId, userId, user_name)
+			u.UpdateUserName(tx, entId, userId, user_name)
 			return ok_1 == 1 && ok_2
 		})
 	}