|
@@ -181,7 +181,7 @@ class TestController extends Controller
|
|
|
}
|
|
}
|
|
|
public function restoreBillReport()
|
|
public function restoreBillReport()
|
|
|
{
|
|
{
|
|
|
- $areas = OwnerAreaReport::query()->where("counting_month",'like','2021-04%')->whereNotNull("accounting_area")->get();
|
|
|
|
|
|
|
+ $areas = OwnerAreaReport::query()->where("counting_month",'like','2021-04%')->whereNotNull("accounting_area")->where("owner_id",22)->get();
|
|
|
foreach ($areas as $area){
|
|
foreach ($areas as $area){
|
|
|
$report = OwnerBillReport::query()->lockForUpdate()->where("owner_id",$area->owner_id)
|
|
$report = OwnerBillReport::query()->lockForUpdate()->where("owner_id",$area->owner_id)
|
|
|
->where("counting_month",'like',$area->counting_month."%")->first();
|
|
->where("counting_month",'like',$area->counting_month."%")->first();
|