|
|
|
|
@ -210,10 +210,11 @@ class StatisticsController extends CommonController
|
|
|
|
|
&& in_array("所在科室", collect($parent_factors)->pluck("factor_name")->toArray())) {
|
|
|
|
|
$add = collect($parent_factors)->keyBy("factor_name")["所在科室"];
|
|
|
|
|
$factors[] = $add;
|
|
|
|
|
dd(json_encode($factors, JSON_UNESCAPED_UNICODE));
|
|
|
|
|
$orderItem->update([
|
|
|
|
|
"factors" => json_encode($factors, JSON_UNESCAPED_UNICODE)
|
|
|
|
|
]);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
dd("test");
|
|
|
|
|
DB::commit();
|
|
|
|
|
return $this->success("处理成功一批,正在跳转到下一批!", url($this->urlPrefix . "/salary/sync-order-items?month={$request->month}&last_id=" . $orderItems->last()->id));
|
|
|
|
|
} catch (\Exception $exception) {
|
|
|
|
|
|