Browse Source

账户名重复处理

WH01243 1 year ago
parent
commit
8351e7ec02
1 changed files with 0 additions and 5 deletions
  1. 0 5
      ent/entity/user.go

+ 0 - 5
ent/entity/user.go

@@ -134,11 +134,6 @@ func (u *User) Del(entId int, ids string) bool {
 
 
 //新增员工
 //新增员工
 func (u *User) Add(tx *sql.Tx, entId int, user *User, paymentAddress, source, nsq, nsq_Topic string) (int64, bool) {
 func (u *User) Add(tx *sql.Tx, entId int, user *User, paymentAddress, source, nsq, nsq_Topic string) (int64, bool) {
-	if user.User_name != "" && len(user.User_name) > 0 {
-		if !u.UserNameExist(user.User_name, user.Phone) {
-			return 0, false
-		}
-	}
 	nowFormat := NowFormat(Date_Full_Layout)
 	nowFormat := NowFormat(Date_Full_Layout)
 	user_id := Mysql.InsertByTx(tx, Entniche_user, map[string]interface{}{
 	user_id := Mysql.InsertByTx(tx, Entniche_user, map[string]interface{}{
 		"name":       user.Name,
 		"name":       user.Name,