Эх сурвалжийг харах

Merge branch 'dev_v1.0.3_wh' of moapp/jypkg into feature/v1.0.3

王浩 1 жил өмнө
parent
commit
fdeef2a320
1 өөрчлөгдсөн 0 нэмэгдсэн , 5 устгасан
  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) {
-	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)
 	user_id := Mysql.InsertByTx(tx, Entniche_user, map[string]interface{}{
 		"name":       user.Name,