feat : order list
This commit is contained in:
@@ -11,6 +11,7 @@ declare(strict_types=1);
|
||||
namespace App\Service\Api\Driver;
|
||||
|
||||
use App\Constants\Admin\CateringCode;
|
||||
use App\Constants\Common\DriverCode;
|
||||
use App\Constants\Common\GoodCode;
|
||||
use App\Constants\Common\RoleCode;
|
||||
use App\Exception\ErrException;
|
||||
@@ -234,6 +235,7 @@ abstract class BaseDriverService extends BaseService
|
||||
'meal_list' => $mealArr[$site['id']]['sku'] ?? [],
|
||||
'option_order_quantity' => $optionArr[$site['id']]['copies'] ?? 0,
|
||||
'option_add_staple_food_num' => $optionArr[$site['id']]['add_staple_food_num'] ?? 0,
|
||||
'status' => DriverCode::NO_DEPARTURES,
|
||||
'create_time' => $dateTime,
|
||||
'update_time' => $dateTime,
|
||||
];
|
||||
|
||||
@@ -11,6 +11,7 @@ declare(strict_types=1);
|
||||
namespace App\Service\Api\Driver;
|
||||
|
||||
use App\Constants\Admin\CateringCode;
|
||||
use App\Constants\Common\DriverCode;
|
||||
use App\Constants\Common\OrderCode;
|
||||
use App\Exception\ErrException;
|
||||
use App\Model\Order;
|
||||
@@ -60,6 +61,7 @@ class LoadActionService extends BaseDriverService
|
||||
|
||||
$list = $this->buildListData();
|
||||
foreach ($list as &$one) {
|
||||
$one['status'] = DriverCode::DEPARTURES;
|
||||
$one['meal_list'] = json_encode($one['meal_list']);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user