|
|
@@ -15,7 +15,7 @@ class OrderItemController extends Controller
|
|
|
{
|
|
|
ini_set('memory_limit', '2045M');
|
|
|
set_time_limit(0);
|
|
|
- $list = OrderItemClass::getAllByCondition(['id<' => 333152, 'xhUnitType' => 1], null, '*', 'id desc', true);
|
|
|
+ $list = OrderItemClass::getAllByCondition(['id<' => 333152, 'xhUnitType' => 1], 'id DESC', '*', null, true);
|
|
|
if (!empty($list)) {
|
|
|
foreach ($list as $key => $item) {
|
|
|
$cost = $item->cost ?? 0;
|