change the report/map routes into v2

This commit is contained in:
2024-02-18 08:33:19 +00:00
parent 25c33eb478
commit 8176faf117
123 changed files with 217538 additions and 216 deletions

View File

@@ -7,7 +7,7 @@ trait ReceiptReportAble
{
public static function cityReceiptData($from_date, $date_to, $province_id): array
{
return DB::select(DB::raw(
return DB::select(
'SELECT
city_fa,
city_id,
@@ -25,13 +25,13 @@ trait ReceiptReportAble
where created_at BETWEEN "'.$from_date.'" AND "'.$date_to.'" AND province_id ='.$province_id.'
GROUP BY city_id
'
));
);
}
public static function provinceReceiptData($from_date, $date_to) : array {
return DB::select(DB::raw(
return DB::select(
'SELECT
"کشوری" as province_fa,
-1 as province_id,
@@ -67,7 +67,7 @@ trait ReceiptReportAble
where created_at BETWEEN "'.$from_date.'" AND "'.$date_to.'"
GROUP BY province_id
'
));
);
}
}