1 |
4.57 ms |
SELECT t0.id AS id_1, t0.number AS number_2, t0.active AS active_3, t0.paid AS paid_4, t0.created AS created_5, t0.client_id AS client_id_6, t7.city AS city_8, t7.street AS street_9, t7.house AS house_10, t7.apartment AS apartment_11, t7.contract_id AS contract_id_12, t0.commutator_id AS commutator_id_13 FROM contract t0 LEFT JOIN contract_location t7 ON t7.contract_id = t0.id WHERE t0.number = ? LIMIT 1
SELECT t0.id AS id_1, t0.number AS number_2, t0.active AS active_3, t0.paid AS paid_4, t0.created AS created_5, t0.client_id AS client_id_6, t7.city AS city_8, t7.street AS street_9, t7.house AS house_10, t7.apartment AS apartment_11, t7.contract_id AS contract_id_12, t0.commutator_id AS commutator_id_13 FROM contract t0 LEFT JOIN contract_location t7 ON t7.contract_id = t0.id WHERE t0.number = '02315' LIMIT 1;
|
2 |
7.31 ms |
SELECT t0.id AS id_1, t0.phone AS phone_2, t0.roles AS roles_3, t0.password AS password_4, t0.email AS email_5, t0.amount AS amount_6, t7.name AS name_8, t7.surname AS surname_9, t7.patronymic AS patronymic_10, t7.value AS value_11, t7.number AS number_12, t7.issued AS issued_13, t7.department AS department_14, t7.client_id AS client_id_15 FROM client t0 LEFT JOIN client_identification t7 ON t7.client_id = t0.id WHERE t0.id = ?
Parameters: [
b"\x01‰\x00ñúkH\x19\n¨ˆ\x08füRì"
]
SELECT t0.id AS id_1, t0.phone AS phone_2, t0.roles AS roles_3, t0.password AS password_4, t0.email AS email_5, t0.amount AS amount_6, t7.name AS name_8, t7.surname AS surname_9, t7.patronymic AS patronymic_10, t7.value AS value_11, t7.number AS number_12, t7.issued AS issued_13, t7.department AS department_14, t7.client_id AS client_id_15 FROM client t0 LEFT JOIN client_identification t7 ON t7.client_id = t0.id WHERE t0.id = 0x018900F1FA6B48190AA8880866FC52EC;
|
3 |
159.11 ms |
SELECT t0.id AS id_1, t0.amount AS amount_2, t0.created AS created_3, t0.manual AS manual_4, t0.comment AS comment_5, t0.client_id AS client_id_6, t7.id AS id_8, t7.accrued AS accrued_9, t7.created AS created_10, t7.manual AS manual_11, t7.comment AS comment_12, t7.transaction_id AS transaction_id_13, t7.contract_id AS contract_id_14 FROM client_balance_transaction t0 LEFT JOIN contract_invoice t7 ON t7.transaction_id = t0.id WHERE t0.comment = ? LIMIT 1
Parameters: [
"Пополнение баланса Касса24 (194173493658365511)"
]
SELECT t0.id AS id_1, t0.amount AS amount_2, t0.created AS created_3, t0.manual AS manual_4, t0.comment AS comment_5, t0.client_id AS client_id_6, t7.id AS id_8, t7.accrued AS accrued_9, t7.created AS created_10, t7.manual AS manual_11, t7.comment AS comment_12, t7.transaction_id AS transaction_id_13, t7.contract_id AS contract_id_14 FROM client_balance_transaction t0 LEFT JOIN contract_invoice t7 ON t7.transaction_id = t0.id WHERE t0.comment = 'Пополнение баланса Касса24 (194173493658365511)' LIMIT 1;
|
4 |
3.62 ms |
SELECT t0.id AS id_1, t0.number AS number_2, t0.active AS active_3, t0.paid AS paid_4, t0.created AS created_5, t0.client_id AS client_id_6, t7.city AS city_8, t7.street AS street_9, t7.house AS house_10, t7.apartment AS apartment_11, t7.contract_id AS contract_id_12, t0.commutator_id AS commutator_id_13 FROM contract t0 LEFT JOIN contract_location t7 ON t7.contract_id = t0.id WHERE t0.client_id = ?
Parameters: [
b"\x01‰\x00ñúkH\x19\n¨ˆ\x08füRì"
]
SELECT t0.id AS id_1, t0.number AS number_2, t0.active AS active_3, t0.paid AS paid_4, t0.created AS created_5, t0.client_id AS client_id_6, t7.city AS city_8, t7.street AS street_9, t7.house AS house_10, t7.apartment AS apartment_11, t7.contract_id AS contract_id_12, t0.commutator_id AS commutator_id_13 FROM contract t0 LEFT JOIN contract_location t7 ON t7.contract_id = t0.id WHERE t0.client_id = 0x018900F1FA6B48190AA8880866FC52EC;
|
5 |
3.65 ms |
SELECT t0.contract_id AS contract_id_1, t0.equipment_id AS equipment_id_2 FROM contract_equipment t0 WHERE t0.contract_id = ?
Parameters: [
b"\x01‰\x00óÍ\x03Á¾E\x17’Ä“ÛðÛ"
]
SELECT t0.contract_id AS contract_id_1, t0.equipment_id AS equipment_id_2 FROM contract_equipment t0 WHERE t0.contract_id = 0x018900F3CD03C1BE451792C493DBF0DB;
|
6 |
2.25 ms |
SELECT t0.id AS id_1, t0.active AS active_2, t0.name AS name_3, t0.model AS model_4, t0.serial AS serial_5, t0.address AS address_6, t0.port AS port_7, t0.price AS price_8 FROM equipment t0 WHERE t0.id = ?
Parameters: [
b"\x01‰\x00ó+pÐ]Ïn¡„X¤Ö\x1C"
]
SELECT t0.id AS id_1, t0.active AS active_2, t0.name AS name_3, t0.model AS model_4, t0.serial AS serial_5, t0.address AS address_6, t0.port AS port_7, t0.price AS price_8 FROM equipment t0 WHERE t0.id = 0x018900F32B70D05DCF6EA18458A4D61C;
|
7 |
1.37 ms |
SELECT t0.id AS id_1, t0.name AS name_2, t0.address AS address_3, t0.login AS login_4, t0.password AS password_5, t0.script AS script_6 FROM commutator t0 WHERE t0.id = ?
Parameters: [
b"\x01…-µ»&¸‚o@ÀI}™¶Ó"
]
SELECT t0.id AS id_1, t0.name AS name_2, t0.address AS address_3, t0.login AS login_4, t0.password AS password_5, t0.script AS script_6 FROM commutator t0 WHERE t0.id = 0x01852DB5BB26B8826F40C0497D99B6D3;
|
8 |
0.23 ms |
"START TRANSACTION"
"START TRANSACTION";
|
9 |
3.79 ms |
INSERT INTO client_balance_transaction (id, amount, created, manual, COMMENT, client_id) VALUES (?, ?, ?, ?, ?, ?)
Parameters: [
b"\x01“òGÿy04Hœ\x12Ø%\x15Ï,"
4850.0
"2024-12-23 11:50:25"
0
"Пополнение баланса Касса24 (194173493658365511)"
b"\x01‰\x00ñúkH\x19\n¨ˆ\x08füRì"
]
INSERT INTO client_balance_transaction (id, amount, created, manual, COMMENT, client_id) VALUES (0x0193F247FF793034489C12D82515CF2C, 4850, '2024-12-23 11:50:25', 0, 'Пополнение баланса Касса24 (194173493658365511)', 0x018900F1FA6B48190AA8880866FC52EC);
|
10 |
1.37 ms |
UPDATE client SET amount = ? WHERE id = ?
Parameters: [
7200.0
b"\x01‰\x00ñúkH\x19\n¨ˆ\x08füRì"
]
UPDATE client SET amount = 7200 WHERE id = 0x018900F1FA6B48190AA8880866FC52EC;
|
11 |
1.46 ms |
"COMMIT"
|