一、问题描述:
您需要将工作界面上已离开的部分用户的状态更改为失效,并注明为正在退出。
[En]
You need to change the status of some users who have left on the work interface to invalidate, and note as quitting.
二、需要准备/拿到手的工具/条件/数据:
1.已离职人员名单(excel格式)
2.任意mongodb工具(笔者使用的是NoSQLBooster for Mongodb)
3.连接好的mongodb数据库(有些网络/策略不同,直连无法成功的,可以尝试使用mongodb中的SSH,在笔者的连接工具/Connections/Edit/SSH中可以进行设置)
修改mongodb中列表中多个元素,遍历其中的元素,作为变量,执行mongodb的修改
4.Notepad++ 软件