Database Queries

总计36条数据
TimeDurationTypeQuery
  
14:16:28.1192.3 msSELECTSELECT * FROM "global"."vw_user_login" WHERE "id"=1001

14:16:28.1220.5 msSELECTSELECT * FROM "global"."vw_user_login" WHERE "id"=1001

14:16:28.1231.2 msSELECTSELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001

14:16:28.1260.6 msSELECTSELECT * FROM "a57be577deb434"."tbl_purchase_contracts" WHERE "id"='3847'

14:16:28.1270.2 msSELECTSELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_purchase_contracts" WHERE "id"=3847)

14:16:28.1270.2 msSELECTSELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_purchase_contracts" WHERE "id"=3847)

14:16:28.1282.5 msINSERTINSERT INTO "a57be577deb434"."tbl_purchase_contract_payments" ("contract_id", "collected_date", "description", "amount", "created_by", "created_at") VALUES (3847, '2025/07/03', '给对方过分大姑', '6546', 1001, 'now()') RETURNING "id"

14:16:28.1311.0 msINSERTINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\PurchaseContractPayments', 2095, 'a:8:{s:2:"id";i:2095;s:11:"contract_id";i:3847;s:6:"amount";s:4:"6546";s:10:"created_by";i:1001;s:10:"created_at";s:19:"1970-01-01 08:00:00";s:14:"collected_date";s:10:"2025/07/03";s:11:"description";s:21:"给对方过分大姑";s:11:"paid_amount";N;}', '', 1001, '114.254.1.137')

14:16:28.1320.2 msSELECTSELECT * FROM "a57be577deb434"."tbl_purchase_contracts" WHERE "id"=3847

14:16:28.1320.8 msUPDATEUPDATE "a57be577deb434"."tbl_purchase_contract_payments" SET "paid_amount"='0' WHERE "contract_id"=3847

14:16:28.1330.8 msUPDATEUPDATE "a57be577deb434"."tbl_purchase_contract_payment_collection_remind_dates" SET "paid_amount"='0', "status"=0, "overdue_days"=NULL WHERE "contract_id"=3847

14:16:28.1341.1 msSELECTSELECT * FROM "a57be577deb434"."tbl_purchase_contract_payments" WHERE ("contract_id"=3847) AND (amount > 0) AND (amount > paid_amount) ORDER BY "collected_date", "created_at"

14:16:28.1360.3 msSELECTSELECT * FROM "a57be577deb434"."tbl_purchase_contract_payment_collection_remind_dates" WHERE ("contract_id"=3847) AND (amount > paid_amount) ORDER BY "remind_date"

14:16:28.1360.7 msUPDATEUPDATE "a57be577deb434"."tbl_purchase_contract_payment_collection_remind_dates" SET "paid_amount"='766' WHERE "id"=623

14:16:28.1370.8 msINSERTINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\PurchaseContractPaymentCollectionRemindDates', 623, 'a:1:{s:11:"paid_amount";i:766;}', '', 1001, '114.254.1.137')

14:16:28.1380.7 msUPDATEUPDATE "a57be577deb434"."tbl_purchase_contract_payments" SET "paid_amount"='766' WHERE "id"=2094

14:16:28.1380.7 msINSERTINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\PurchaseContractPayments', 2094, 'a:1:{s:11:"paid_amount";s:1:"0";}', '', 1001, '114.254.1.137')

14:16:28.1390.5 msSELECTSELECT * FROM "a57be577deb434"."tbl_purchase_contract_payments" WHERE ("contract_id"=3847) AND (amount > 0) AND (amount > paid_amount) ORDER BY "collected_date", "created_at"

14:16:28.1400.2 msSELECTSELECT * FROM "a57be577deb434"."tbl_purchase_contract_payment_collection_remind_dates" WHERE ("contract_id"=3847) AND (amount > paid_amount) ORDER BY "remind_date"

14:16:28.1400.7 msUPDATEUPDATE "a57be577deb434"."tbl_purchase_contract_payment_collection_remind_dates" SET "paid_amount"='6400', "overdue_days"=0, "status"=1 WHERE "id"=623

14:16:28.1410.7 msINSERTINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\PurchaseContractPaymentCollectionRemindDates', 623, 'a:2:{s:11:"paid_amount";s:3:"766";s:6:"status";i:1;}', '', 1001, '114.254.1.137')

14:16:28.1420.7 msUPDATEUPDATE "a57be577deb434"."tbl_purchase_contract_payments" SET "paid_amount"='5634' WHERE "id"=2095

14:16:28.1430.7 msINSERTINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\PurchaseContractPayments', 2095, 'a:1:{s:11:"paid_amount";i:5634;}', '', 1001, '114.254.1.137')

14:16:28.1440.2 msSELECTSELECT * FROM "a57be577deb434"."tbl_purchase_contract_payment_collection_remind_dates" WHERE ("contract_id"=3847) AND (amount > paid_amount) ORDER BY "remind_date"

14:16:28.1441.3 msDELETEDELETE FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=110) AND ("object_id"=2095)

14:16:28.1451.0 msINSERTINSERT INTO "a57be577deb434"."tbl_attachement_relationships" ("object_type", "object_id", "attachment_id") VALUES (110, 2095, 24795)

14:16:28.1470.2 msDELETEDELETE FROM "a57be577deb434"."tbl_purchase_contract_payment_approve_rels" WHERE "purchase_contract_payment_id"=2095

14:16:28.1474.5 msSELECTSELECT d.nspname AS table_schema, c.relname AS table_name, a.attname AS column_name, t.typname AS data_type, a.attlen AS character_maximum_length, pg_catalog.col_description(c.oid, a.attnum) AS column_comment, a.atttypmod AS modifier, a.attnotnull = false AS is_nullable, CAST(pg_get_expr(ad.adbin, ad.adrelid) AS varchar) AS column_default, coalesce(pg_get_expr(ad.adbin, ad.adrelid) ~ 'nextval',false) AS is_autoinc, array_to_string((select array_agg(enumlabel) from pg_enum where enumtypid=a.atttypid)::varchar[],',') as enum_values, CASE atttypid WHEN 21 /*int2*/ THEN 16 WHEN 23 /*int4*/ THEN 32 WHEN 20 /*int8*/ THEN 64 WHEN 1700 /*numeric*/ THEN CASE WHEN atttypmod = -1 THEN null ELSE ((atttypmod - 4) >> 16) & 65535 END WHEN 700 /*float4*/ THEN 24 /*FLT_MANT_DIG*/ WHEN 701 /*float8*/ THEN 53 /*DBL_MANT_DIG*/ ELSE null END AS numeric_precision, CASE WHEN atttypid IN (21, 23, 20) THEN 0 WHEN atttypid IN (1700) THEN CASE WHEN atttypmod = -1 THEN null ELSE (atttypmod - 4) & 65535 END ELSE null END AS numeric_scale, CAST( information_schema._pg_char_max_length(information_schema._pg_truetypid(a, t), information_schema._pg_truetypmod(a, t)) AS numeric ) AS size, a.attnum = any (ct.conkey) as is_pkey FROM pg_class c LEFT JOIN pg_attribute a ON a.attrelid = c.oid LEFT JOIN pg_attrdef ad ON a.attrelid = ad.adrelid AND a.attnum = ad.adnum LEFT JOIN pg_type t ON a.atttypid = t.oid LEFT JOIN pg_namespace d ON d.oid = c.relnamespace LEFT join pg_constraint ct on ct.conrelid=c.oid and ct.contype='p' WHERE a.attnum > 0 and t.typname != '' and c.relname = 'tbl_purchase_contract_payment_approve_rels' and d.nspname = 'a57be577deb434' ORDER BY a.attnum;

14:16:28.1528.6 msSELECTselect ct.conname as constraint_name, a.attname as column_name, fc.relname as foreign_table_name, fns.nspname as foreign_table_schema, fa.attname as foreign_column_name from (SELECT ct.conname, ct.conrelid, ct.confrelid, ct.conkey, ct.contype, ct.confkey, generate_subscripts(ct.conkey, 1) AS s FROM pg_constraint ct ) AS ct inner join pg_class c on c.oid=ct.conrelid inner join pg_namespace ns on c.relnamespace=ns.oid inner join pg_attribute a on a.attrelid=ct.conrelid and a.attnum = ct.conkey[ct.s] left join pg_class fc on fc.oid=ct.confrelid left join pg_namespace fns on fc.relnamespace=fns.oid left join pg_attribute fa on fa.attrelid=ct.confrelid and fa.attnum = ct.confkey[ct.s] where ct.contype='f' and c.relname='tbl_purchase_contract_payment_approve_rels' and ns.nspname='a57be577deb434' order by fns.nspname, fc.relname, a.attnum

14:16:28.1612.5 msINSERTINSERT INTO "a57be577deb434"."tbl_purchase_contract_payment_approve_rels" ("purchase_contract_payment_id", "approve_id") VALUES (2095, 1732) RETURNING "id"

14:16:28.1630.7 msINSERTINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\PurchaseContractPaymentApproveRels', 155, 'a:3:{s:2:"id";i:155;s:10:"approve_id";s:4:"1732";s:28:"purchase_contract_payment_id";i:2095;}', '', 1001, '114.254.1.137')

14:16:28.1640.2 msSELECTSELECT * FROM "a57be577deb434"."tbl_purchase_contract_payments" WHERE "id"=2095

14:16:28.1651.0 msINSERTINSERT INTO "a57be577deb434"."tbl_object_change_logs" ("act", "attribute", "object_id", "object_type", "created_by", "created_at", "new_value", "old_value", "description") VALUES (1, 'create', 2095, 110, 1001, '2025-07-03 14:16:28', '{"id":2095,"contract_id":3847,"amount":"6546","created_by":1001,"created_at":"2025-07-03 14:16:28","collected_date":"2025-07-03","description":"\u7ed9\u5bf9\u65b9\u8fc7\u5206\u5927\u59d1","paid_amount":"5634"}', '{"id":2095,"contract_id":3847,"amount":"6546","created_by":1001,"created_at":"2025-07-03 14:16:28","collected_date":"2025-07-03","description":"\u7ed9\u5bf9\u65b9\u8fc7\u5206\u5927\u59d1","paid_amount":"5634"}', '{"d1":"\u5218\u4eba\u8bda","d2":"\u521b\u5efa\u4e86","d3":"\u6536\u6b3e\u4fe1\u606f","d4":[]}') RETURNING "id"

14:16:28.1660.7 msINSERTINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\ObjectChangeLogs', 509689, 'a:13:{s:2:"id";i:509689;s:9:"object_id";i:2095;s:11:"object_type";i:110;s:9:"target_id";N;s:18:"target_object_type";N;s:3:"act";i:1;s:9:"attribute";s:6:"create";s:9:"old_value";s:209:"{"id":2095,"contract_id":3847,"amount":"6546","created_by":1001,"created_at":"2025-07-03 14:16:28","collected_date":"2025-07-03","description":"\u7ed9\u5bf9\u65b9\u8fc7\u5206\u5927\u59d1","paid_amount":"5634"}";s:9:"new_value";s:209:"{"id":2095,"contract_id":3847,"amount":"6546","created_by":1001,"created_at":"2025-07-03 14:16:28","collected_date":"2025-07-03","description":"\u7ed9\u5bf9\u65b9\u8fc7\u5206\u5927\u59d1","paid_amount":"5634"}";s:11:"description";s:93:"{"d1":"\u5218\u4eba\u8bda","d2":"\u521b\u5efa\u4e86","d3":"\u6536\u6b3e\u4fe1\u606f","d4":[]}";s:10:"created_by";i:1001;s:10:"created_at";s:19:"2025-07-03 14:16:28";s:9:"is_delete";N;}', '', 1001, '114.254.1.137')

14:16:28.1670.5 msSELECTSELECT * FROM "a57be577deb434"."tbl_purchase_client_rels" WHERE "contract_id"=3847 ORDER BY "id"

14:16:28.1681.0 msINSERTINSERT INTO "global"."tbl_api_log" ("code", "schema", "user_id", "device_type", "url", "request", "response", "php_error", "time") VALUES (NULL, 'a57be577deb434', 1001, 5, 'vue/purchase-contract/save-new-payment', '{"PurchaseContractPayments":{"id":"","contract_id":"3847","collected_date":"2025\/07\/03","description":"\u7ed9\u5bf9\u65b9\u8fc7\u5206\u5927\u59d1","files":["24795"],"purchaseContractPaymentApproveRels":["1732"],"amount":"6546"},"contract_id":"3847","approve_id":"1732","web_access_token":"er_liQPTz011rRwTshQzixBLTwcD6PCJ"}', '{"code":"","data":null,"status":0,"msg":[{"name":"error","success":"","error":"Getting unknown property: app\\models\\PurchaseContractPayments::cost_type","trace":{"name":"Unknown Property","message":"Getting unknown property: app\\models\\PurchaseContractPayments::cost_type","code":0,"type":"yii\\base\\UnknownPropertyException","file":"\/var\/www\/beta\/vendor\/yiisoft\/yii2\/base\/Component.php","line":147,"stack-trace":["#0 \/var\/www\/beta\/vendor\/yiisoft\/yii2\/db\/BaseActiveRecord.php(286): yii\\base\\Component->__get(''cost_type'')","#1 \/var\/www\/beta\/models\/Base.php(169): yii\\db\\BaseActiveRecord->__get(''cost_type'')","#2 \/var\/www\/beta\/modules\/vue\/controllers\/PurchaseContractController.php(5511): app\\models\\Base->__get(''cost_type'')","#3 [internal function]: app\\modules\\vue\\controllers\\PurchaseContractController->actionSaveNewPayment()","#4 \/var\/www\/beta\/vendor\/yiisoft\/yii2\/base\/InlineAction.php(57): call_user_func_array(Array, Array)","#5 \/var\/www\/beta\/vendor\/yiisoft\/yii2\/base\/Controller.php(156): yii\\base\\InlineAction->runWithParams(Array)","#6 \/var\/www\/beta\/vendor\/yiisoft\/yii2\/base\/Module.php(522): yii\\base\\Controller->runAction(''save-new-paymen...'', Array)","#7 \/var\/www\/beta\/vendor\/yiisoft\/yii2\/web\/Application.php(102): yii\\base\\Module->runAction(''vue\/purchase-co...'', Array)","#8 \/var\/www\/beta\/vendor\/yiisoft\/yii2\/base\/Application.php(379): yii\\web\\Application->handleRequest(Object(yii\\web\\Request))","#9 \/var\/www\/beta\/web\/index.php(24): yii\\base\\Application->run()","#10 {main}"]}}]}', TRUE, '2025-07-03 14:16:28') RETURNING "id"