|
|
|
|
@ -203,9 +203,9 @@ class StatisticsController extends CommonController
|
|
|
|
|
DB::beginTransaction();
|
|
|
|
|
try {
|
|
|
|
|
foreach ($orderItems as $orderItem) {
|
|
|
|
|
dump($orderItem);
|
|
|
|
|
$factors = json_decode($orderItem->factors, true);
|
|
|
|
|
dump($factors);
|
|
|
|
|
dump(collect($factors)->pluck("factor_name")->toArray());
|
|
|
|
|
dump(in_array("所在科室", collect($factors)->pluck("factor_name")->toArray()));
|
|
|
|
|
$parent_factors = json_decode($orderItem->order->factors, true);
|
|
|
|
|
dd($parent_factors);
|
|
|
|
|
}
|
|
|
|
|
|