WH01243 преди 1 година
родител
ревизия
2b268def19
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      ent/entity/user.go

+ 1 - 1
ent/entity/user.go

@@ -391,7 +391,7 @@ func (u *User) UpdateInfo(mail string, phone string, name string, userId, deptId
 		}
 	} else {
 		return 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, NowFormat(Date_Full_Layout), userId, entId)
+			ok_1 := Mysql.UpdateOrDeleteBySqlByTx(tx, `update entniche_user set mail=?,phone=?,name=?,timestamp=? ,user_name=? where id=? and ent_id=?`, mail, phone, name, NowFormat(Date_Full_Layout), user_name, userId, entId)
 			MQFW.Update("ent_user", map[string]interface{}{"i_entid": entId, "i_userid": userId}, map[string]interface{}{
 				"$set": map[string]interface{}{
 					"o_pushset.s_email": mail,