|
|
@@ -87,33 +87,33 @@ class AssignTasksTest extends TestCase
|
|
|
|
|
|
function tearDown(): void
|
|
|
{
|
|
|
-// MaterialBox::query()
|
|
|
-// ->whereIn('id',data_get($this->data['batches'],'*.stationTaskBatch.stationTask.stationTaskMaterialBoxes.*.materialBox.id')??[])
|
|
|
-// ->delete();
|
|
|
-// StationTaskMaterialBox::query()
|
|
|
-// ->whereIn('id',data_get($this->data['batches'],'*.stationTaskBatch.stationTask.stationTaskMaterialBoxes.*.id')??[])
|
|
|
-// ->delete();
|
|
|
-// StationTaskCommodity::query()
|
|
|
-// ->whereIn('id',data_get($this->data['batches'],'*.stationTaskBatch.stationTask.stationTaskCommodities.*.id')??[])
|
|
|
-// ->delete();
|
|
|
-// StationTaskBatch::query()
|
|
|
-// ->whereIn('id',data_get($this->data['batches'],'*.stationTaskBatch.id')??[])
|
|
|
-// ->delete();
|
|
|
-// StationTask::query()
|
|
|
-// ->whereIn('id',data_get($this->data['batches'],'*.stationTaskBatch.stationTask.id')??[])
|
|
|
-// ->delete();
|
|
|
-// StationRuleBatch::query()
|
|
|
-// ->whereIn('id',data_get($this->data['station_rule_batches'],'*.id')??[])
|
|
|
-// ->delete();
|
|
|
-// OrderCommodity::query()
|
|
|
-// ->whereIn('id',data_get($this->data['orderCommodities'],'*.id')??[])
|
|
|
-// ->delete();
|
|
|
-// Order::query()
|
|
|
-// ->whereIn('id',data_get($this->data['orders'],'*.id')??[])
|
|
|
-// ->delete();
|
|
|
-// Batch::query()
|
|
|
-// ->whereIn('id',data_get($this->data['batches'],'*.id')??[])
|
|
|
-// ->delete();
|
|
|
+ MaterialBox::query()
|
|
|
+ ->whereIn('id',data_get($this->data['batches'],'*.stationTaskBatch.stationTask.stationTaskMaterialBoxes.*.materialBox.id')??[])
|
|
|
+ ->delete();
|
|
|
+ StationTaskMaterialBox::query()
|
|
|
+ ->whereIn('id',data_get($this->data['batches'],'*.stationTaskBatch.stationTask.stationTaskMaterialBoxes.*.id')??[])
|
|
|
+ ->delete();
|
|
|
+ StationTaskCommodity::query()
|
|
|
+ ->whereIn('id',data_get($this->data['batches'],'*.stationTaskBatch.stationTask.stationTaskCommodities.*.id')??[])
|
|
|
+ ->delete();
|
|
|
+ StationTaskBatch::query()
|
|
|
+ ->whereIn('id',data_get($this->data['batches'],'*.stationTaskBatch.id')??[])
|
|
|
+ ->delete();
|
|
|
+ StationTask::query()
|
|
|
+ ->whereIn('id',data_get($this->data['batches'],'*.stationTaskBatch.stationTask.id')??[])
|
|
|
+ ->delete();
|
|
|
+ StationRuleBatch::query()
|
|
|
+ ->whereIn('id',data_get($this->data['station_rule_batches'],'*.id')??[])
|
|
|
+ ->delete();
|
|
|
+ OrderCommodity::query()
|
|
|
+ ->whereIn('id',data_get($this->data['orderCommodities'],'*.id')??[])
|
|
|
+ ->delete();
|
|
|
+ Order::query()
|
|
|
+ ->whereIn('id',data_get($this->data['orders'],'*.id')??[])
|
|
|
+ ->delete();
|
|
|
+ Batch::query()
|
|
|
+ ->whereIn('id',data_get($this->data['batches'],'*.id')??[])
|
|
|
+ ->delete();
|
|
|
parent::tearDown();
|
|
|
}
|
|
|
}
|