fuwencai 4 ani în urmă
părinte
comite
0d6d08f935
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      public/src/ent/entity/user.go

+ 1 - 1
public/src/ent/entity/user.go

@@ -134,7 +134,7 @@ func (u *User) UpdateInfo(mail string, phone string, name string, userId, deptId
 		ok :=  Mysql.ExecTx("修改员工", func(tx *sql.Tx) bool {
 
 			ok_1 := Mysql.UpdateOrDeleteBySqlByTx(tx, `update entniche_user set mail=?,phone=?,name=?,timestamp=? where id=? and ent_id=?`, mail, phone, name, qutil.NowFormat(qutil.Date_Full_Layout), userId, entId)
-			ok_2 := Mysql.UpdateOrDeleteBySqlByTx(tx,"update entniche_info set admin=?,phone=? where id=?",name,entPhone,entId)
+			ok_2 := Mysql.UpdateOrDeleteBySqlByTx(tx,"update entniche_info set admin=?,phone=? where id=?",name,phone,entId)
 			ok_3 := VarUser.Move(tx, entId, deptId, fmt.Sprint(userId))
 			return ok_1 !=- 1 && ok_3 && ok_2!=-1
 		})