db.tb_tray.find({_id:{$exists:true}}).forEach(function(x){
x.status="0";
db.tb_tray.save(x);
});
db.tb_tray.find({_id:{$exists:true}}).forEach(function(x,i=1){
i++;
x.no=""+i;
db.tb_tray.save(x);
});
db.tb_tray.find({_id:{$exists:true}}).forEach(function(x){
x.status="0";
db.tb_tray.save(x);
});
db.tb_tray.find({_id:{$exists:true}}).forEach(function(x,i=1){
i++;
x.no=""+i;
db.tb_tray.save(x);
});