north 5 жил өмнө
parent
commit
814380bd4b

+ 5 - 5
www/protected/controllers/JgEmployeController.php

@@ -11,11 +11,11 @@ class JGEmployeController extends AdminController
 {
     public function actionIndex()
     {
-        $ids = ['5dc6555c9f516097048b45a6'];
-//        foreach ($ids as $id) {
-//            $tmp = JGEmploye::get(new MongoId($id));
-//            $tmp->delete();
-//        }
+        $ids = ['5dc655e79f5160b0048b45b2'];
+        foreach ($ids as $id) {
+            $tmp = JGEmploye::get(new MongoId($id));
+            $tmp->delete();
+        }
         $status = CommonFn::getComboboxData(JGEmploye::$status_options, 100, true, 100);//人员状态
         $skill = CommonFn::getComboboxData(JGEmploye::$skill_options, 100, true, 100);
         $work_type = CommonFn::getComboboxData(JGEmploye::$work_type_options, 100, true, 100);