lgy 1 day ago
parent
commit
21a53f3067
1 changed files with 3 additions and 3 deletions
  1. 3 3
      jcjyhr/app/zskk/model/Patient.php

+ 3 - 3
jcjyhr/app/zskk/model/Patient.php

@@ -332,10 +332,10 @@ class Patient extends ZskkModel
     public function saveRepeatLab($data)
     public function saveRepeatLab($data)
     {
     {
         $model = new DelLabData();
         $model = new DelLabData();
-        foreach ($data as &$v)
+        foreach ($data as $k=>&$v)
         {
         {
-            unset($v['CREATE_TIME']);
-            unset($v['UPDATE_TIME']);
+            unset($data[$k]['CREATE_TIME']);
+            unset($data[$k]['UPDATE_TIME']);
         }
         }
         $model->saveAll($data);
         $model->saveAll($data);
     }
     }