cqpCow 10 mēneši atpakaļ
vecāks
revīzija
eb0a3a5f5f
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  1. 1 0
      app/Service/ConstructionService.php

+ 1 - 0
app/Service/ConstructionService.php

@@ -85,6 +85,7 @@ class ConstructionService extends Service
 
             ConstructionInfo::where('del_time',0)
                 ->where('construction_id',$data['id'])
+                ->where('type',ConstructionInfo::type_two)
                 ->update(['del_time' => $time]);
             ConstructionProductInfo::where('del_time',0)
                 ->where('construction_id',$data['id'])