cqpCow před 10 měsíci
rodič
revize
eb0a3a5f5f
1 změnil soubory, kde provedl 1 přidání a 0 odebrání
  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'])