9.97 ms (15.97%)
|
1 |
SELECT d0_.id AS id_0, d0_.invoice_no AS invoice_no_1, d0_.price AS price_2, d0_.creation_date AS creation_date_3, d0_.receipt_date AS receipt_date_4, d0_.file AS file_5, d0_.created_at AS created_at_6, d0_.number AS number_7, d0_.date_confirmed AS date_confirmed_8, d0_.hash AS hash_9, d0_.is_api AS is_api_10, d0_.supplier_comment AS supplier_comment_11, d0_.supplier_number AS supplier_number_12, d0_.comment AS comment_13, d0_.extra_data AS extra_data_14, d0_.api_status AS api_status_15, d0_.api_status_description AS api_status_description_16, d0_.is_accepted AS is_accepted_17, d0_.accepted_at AS accepted_at_18, d0_.hotel_order_id AS hotel_order_id_19, d0_.supplier_id AS supplier_id_20, d0_.accepted_by_id AS accepted_by_id_21 FROM delivery d0_ LEFT JOIN `order` o1_ ON d0_.hotel_order_id = o1_.id LEFT JOIN `user` u2_ ON o1_.user_id = u2_.id LEFT JOIN hotel h3_ ON o1_.hotel_id = h3_.id LEFT JOIN order_has_product o4_ ON o1_.id = o4_.hotel_order_id LEFT JOIN supplier s5_ ON d0_.supplier_id = s5_.id LEFT JOIN product p6_ ON o4_.product_id = p6_.id LEFT JOIN product_category p7_ ON p6_.category_id = p7_.id LEFT JOIN supplier_has_product s8_ ON p6_.id = s8_.product_id WHERE o1_.hotel_id = ? AND d0_.created_at >= ? AND d0_.id IN (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) GROUP BY d0_.id ORDER BY o1_.id DESC
Parameters: [
28
"2026-06-09 00:00:00"
20367
20366
20365
20424
20425
20343
20262
20225
20222
20221
20187
20183
20184
20185
20174
20155
20154
20102
20101
20140
20029
20028
19932
19925
19926
19757
19713
19714
19715
19716
19672
19606
19591
19497
19485
19484
19481
19466
19467
19385
19371
19270
19269
19266
19255
19256
19257
19128
19129
19127
19126
19122
19045
19046
18983
18920
18919
18918
18909
18901
18790
18791
18792
18727
18651
18652
18609
18610
18611
18586
18505
18501
18446
18364
18351
18352
18279
18203
18200
18199
18154
18229
18153
18142
18128
18127
18125
18091
18092
18006
18007
17822
18124
17702
17699
17698
17682
17683
17681
17617
17618
17558
17557
17500
17489
17490
17432
17433
17436
17450
17353
17354
17313
17190
17136
17097
17096
17003
17002
16969
17001
16900
16901
16909
16862
16856
16829
16757
16758
16759
16630
16621
16622
16623
16594
16592
16589
16584
16568
16582
16412
16413
16414
16415
16345
16346
16316
16271
16206
16111
16112
16052
16161
16044
16043
16035
15912
15913
15867
15868
15871
15805
15804
15728
15729
15710
16162
15585
15586
15512
15451
15452
15353
15354
15355
15380
15252
15253
15251
15277
15199
15139
15036
15035
15012
14902
]
SELECT
d0_.id AS id_0,
d0_.invoice_no AS invoice_no_1,
d0_.price AS price_2,
d0_.creation_date AS creation_date_3,
d0_.receipt_date AS receipt_date_4,
d0_.file AS file_5,
d0_.created_at AS created_at_6,
d0_.number AS number_7,
d0_.date_confirmed AS date_confirmed_8,
d0_.hash AS hash_9,
d0_.is_api AS is_api_10,
d0_.supplier_comment AS supplier_comment_11,
d0_.supplier_number AS supplier_number_12,
d0_.comment AS comment_13,
d0_.extra_data AS extra_data_14,
d0_.api_status AS api_status_15,
d0_.api_status_description AS api_status_description_16,
d0_.is_accepted AS is_accepted_17,
d0_.accepted_at AS accepted_at_18,
d0_.hotel_order_id AS hotel_order_id_19,
d0_.supplier_id AS supplier_id_20,
d0_.accepted_by_id AS accepted_by_id_21
FROM
delivery d0_
LEFT JOIN `order` o1_ ON d0_.hotel_order_id = o1_.id
LEFT JOIN `user` u2_ ON o1_.user_id = u2_.id
LEFT JOIN hotel h3_ ON o1_.hotel_id = h3_.id
LEFT JOIN order_has_product o4_ ON o1_.id = o4_.hotel_order_id
LEFT JOIN supplier s5_ ON d0_.supplier_id = s5_.id
LEFT JOIN product p6_ ON o4_.product_id = p6_.id
LEFT JOIN product_category p7_ ON p6_.category_id = p7_.id
LEFT JOIN supplier_has_product s8_ ON p6_.id = s8_.product_id
WHERE
o1_.hotel_id = ?
AND d0_.created_at >= ?
AND d0_.id IN (
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?
)
GROUP BY
d0_.id
ORDER BY
o1_.id DESC
SELECT d0_.id AS id_0, d0_.invoice_no AS invoice_no_1, d0_.price AS price_2, d0_.creation_date AS creation_date_3, d0_.receipt_date AS receipt_date_4, d0_.file AS file_5, d0_.created_at AS created_at_6, d0_.number AS number_7, d0_.date_confirmed AS date_confirmed_8, d0_.hash AS hash_9, d0_.is_api AS is_api_10, d0_.supplier_comment AS supplier_comment_11, d0_.supplier_number AS supplier_number_12, d0_.comment AS comment_13, d0_.extra_data AS extra_data_14, d0_.api_status AS api_status_15, d0_.api_status_description AS api_status_description_16, d0_.is_accepted AS is_accepted_17, d0_.accepted_at AS accepted_at_18, d0_.hotel_order_id AS hotel_order_id_19, d0_.supplier_id AS supplier_id_20, d0_.accepted_by_id AS accepted_by_id_21 FROM delivery d0_ LEFT JOIN `order` o1_ ON d0_.hotel_order_id = o1_.id LEFT JOIN `user` u2_ ON o1_.user_id = u2_.id LEFT JOIN hotel h3_ ON o1_.hotel_id = h3_.id LEFT JOIN order_has_product o4_ ON o1_.id = o4_.hotel_order_id LEFT JOIN supplier s5_ ON d0_.supplier_id = s5_.id LEFT JOIN product p6_ ON o4_.product_id = p6_.id LEFT JOIN product_category p7_ ON p6_.category_id = p7_.id LEFT JOIN supplier_has_product s8_ ON p6_.id = s8_.product_id WHERE o1_.hotel_id = 28 AND d0_.created_at >= '2026-06-09 00:00:00' AND d0_.id IN (20367, 20366, 20365, 20424, 20425, 20343, 20262, 20225, 20222, 20221, 20187, 20183, 20184, 20185, 20174, 20155, 20154, 20102, 20101, 20140, 20029, 20028, 19932, 19925, 19926, 19757, 19713, 19714, 19715, 19716, 19672, 19606, 19591, 19497, 19485, 19484, 19481, 19466, 19467, 19385, 19371, 19270, 19269, 19266, 19255, 19256, 19257, 19128, 19129, 19127, 19126, 19122, 19045, 19046, 18983, 18920, 18919, 18918, 18909, 18901, 18790, 18791, 18792, 18727, 18651, 18652, 18609, 18610, 18611, 18586, 18505, 18501, 18446, 18364, 18351, 18352, 18279, 18203, 18200, 18199, 18154, 18229, 18153, 18142, 18128, 18127, 18125, 18091, 18092, 18006, 18007, 17822, 18124, 17702, 17699, 17698, 17682, 17683, 17681, 17617, 17618, 17558, 17557, 17500, 17489, 17490, 17432, 17433, 17436, 17450, 17353, 17354, 17313, 17190, 17136, 17097, 17096, 17003, 17002, 16969, 17001, 16900, 16901, 16909, 16862, 16856, 16829, 16757, 16758, 16759, 16630, 16621, 16622, 16623, 16594, 16592, 16589, 16584, 16568, 16582, 16412, 16413, 16414, 16415, 16345, 16346, 16316, 16271, 16206, 16111, 16112, 16052, 16161, 16044, 16043, 16035, 15912, 15913, 15867, 15868, 15871, 15805, 15804, 15728, 15729, 15710, 16162, 15585, 15586, 15512, 15451, 15452, 15353, 15354, 15355, 15380, 15252, 15253, 15251, 15277, 15199, 15139, 15036, 15035, 15012, 14902) GROUP BY d0_.id ORDER BY o1_.id DESC;
|