Database Queries

总计92条数据
TimeDurationTypeQuery
  
14:49:18.5672.3 msSELECTSELECT * FROM "global"."vw_user_login" WHERE "id"=5250

14:49:18.5703.6 msSELECTSELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=5250

14:49:18.5750.6 msSELECTSELECT * FROM "a57be577deb434"."tbl_sales_contracts" WHERE "id"='3843'

14:49:18.5770.4 msSELECTSELECT * FROM "a57be577deb434"."tbl_sales_contract_payments" WHERE "contract_id"=3843

14:49:18.5770.2 msSELECTSELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_sales_contracts" WHERE "id"=3843)

14:49:18.5780.2 msSELECTSELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_sales_contracts" WHERE "id"=3843)

14:49:18.5785.5 msINSERTINSERT INTO "a57be577deb434"."tbl_sales_contract_payments" ("contract_id", "amount", "description", "collected_date", "created_by", "created_at") VALUES (3843, '1', '撒旦法大师傅大师傅阿是都是是都是啥的', '2025/07/05', 5250, 'now()') RETURNING "id"

14:49:18.5841.0 msINSERTINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\SalesContractPayments', 2164, 'a:8:{s:2:"id";i:2164;s:11:"contract_id";i:3843;s:6:"amount";s:1:"1";s:10:"created_by";i:5250;s:10:"created_at";s:19:"1970-01-01 08:00:00";s:14:"collected_date";s:10:"2025/07/05";s:11:"description";s:54:"撒旦法大师傅大师傅阿是都是是都是啥的";s:11:"paid_amount";N;}', '', 5250, '223.72.35.175')

14:49:18.5850.2 msSELECTSELECT * FROM "a57be577deb434"."tbl_sales_contracts" WHERE "id"=3843

14:49:18.5860.8 msUPDATEUPDATE "a57be577deb434"."tbl_sales_contract_payments" SET "paid_amount"='0' WHERE "contract_id"=3843

14:49:18.5874.9 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_sales_contract_payment_collection_remind_dates' and d.nspname = 'a57be577deb434' ORDER BY a.attnum;

14:49:18.5928.1 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_sales_contract_payment_collection_remind_dates' and ns.nspname='a57be577deb434' order by fns.nspname, fc.relname, a.attnum

14:49:18.6000.9 msUPDATEUPDATE "a57be577deb434"."tbl_sales_contract_payment_collection_remind_dates" SET "paid_amount"='0', "status"=0, "overdue_days"=NULL WHERE "contract_id"=3843

14:49:18.6010.9 msSELECTSELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"=3809

14:49:18.6020.3 msSELECTSELECT SUM(amount) FROM "a57be577deb434"."tbl_sales_contract_payment_collection_remind_dates" WHERE "contract_id"=3843

14:49:18.6304.9 msSELECTSELECT * FROM "a57be577deb434"."tbl_project_change_logs" WHERE ("project_id"=3809) AND ("end_at" IS NULL) ORDER BY "id" DESC LIMIT 1

14:49:18.6352.6 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_project_change_logs' and d.nspname = 'a57be577deb434' ORDER BY a.attnum;

14:49:18.6388.0 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_project_change_logs' and ns.nspname='a57be577deb434' order by fns.nspname, fc.relname, a.attnum

14:49:18.6460.8 msINSERTINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\Projects', 3809, 'a:1:{s:6:"end_at";s:19:"2025-06-11 11:10:21";}', '', 5250, '223.72.35.175')

14:49:18.6470.8 msSELECTSELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=3304

14:49:18.6491.0 msSELECTSELECT * FROM "a57be577deb434"."tbl_sales_contract_payments" WHERE ("contract_id"=3843) AND (amount > 0) AND (amount > paid_amount) ORDER BY "collected_date", "created_at"

14:49:18.6500.4 msSELECTSELECT * FROM "a57be577deb434"."tbl_sales_contract_payment_collection_remind_dates" WHERE ("contract_id"=3843) AND (amount > paid_amount) ORDER BY "remind_date"

14:49:18.6501.8 msUPDATEUPDATE "a57be577deb434"."tbl_sales_contract_payment_collection_remind_dates" SET "paid_amount"='1' WHERE "id"=2382

14:49:18.6520.7 msINSERTINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\SalesContractPaymentCollectionRemindDates', 2382, 'a:1:{s:11:"paid_amount";i:1;}', '', 5250, '223.72.35.175')

14:49:18.6530.7 msUPDATEUPDATE "a57be577deb434"."tbl_sales_contract_payments" SET "paid_amount"='1' WHERE "id"=2164

14:49:18.6540.7 msINSERTINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\SalesContractPayments', 2164, 'a:1:{s:11:"paid_amount";s:1:"0";}', '', 5250, '223.72.35.175')

14:49:18.6550.5 msSELECTSELECT * FROM "a57be577deb434"."tbl_sales_contract_payments" WHERE ("contract_id"=3843) AND (amount > 0) AND (amount > paid_amount) ORDER BY "collected_date", "created_at"

14:49:18.6551.3 msDELETEDELETE FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=109) AND ("object_id"=2164)

14:49:18.6572.4 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_attachement_relationships' and d.nspname = 'a57be577deb434' ORDER BY a.attnum;

14:49:18.6597.5 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_attachement_relationships' and ns.nspname='a57be577deb434' order by fns.nspname, fc.relname, a.attnum

14:49:18.6673.9 msINSERTINSERT INTO "a57be577deb434"."tbl_attachement_relationships" ("object_type", "object_id", "attachment_id") VALUES (109, 2164, 24825), (109, 2164, 24826)

14:49:18.6710.2 msSELECTSELECT * FROM "a57be577deb434"."tbl_sales_contract_payments" WHERE "id"=2164

14:49:18.6722.6 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_object_change_logs' and d.nspname = 'a57be577deb434' ORDER BY a.attnum;

14:49:18.6748.0 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_object_change_logs' and ns.nspname='a57be577deb434' order by fns.nspname, fc.relname, a.attnum

14:49:18.6836.8 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', 2164, 108, 5250, '2025-07-05 14:49:18', '{"id":2164,"contract_id":3843,"amount":"1","created_by":5250,"created_at":"2025-07-05 14:49:18","collected_date":"2025-07-05","description":"\u6492\u65e6\u6cd5\u5927\u5e08\u5085\u5927\u5e08\u5085\u963f\u662f\u90fd\u662f\u662f\u90fd\u662f\u5565\u7684","paid_amount":"1"}', '{"id":2164,"contract_id":3843,"amount":"1","created_by":5250,"created_at":"2025-07-05 14:49:18","collected_date":"2025-07-05","description":"\u6492\u65e6\u6cd5\u5927\u5e08\u5085\u5927\u5e08\u5085\u963f\u662f\u90fd\u662f\u662f\u90fd\u662f\u5565\u7684","paid_amount":"1"}', '{"d1":"\u8463\u8363","d2":"\u521b\u5efa\u4e86","d3":"\u6536\u6b3e\u4fe1\u606f","d4":[]}') RETURNING "id"

14:49:18.6900.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', 510108, 'a:13:{s:2:"id";i:510108;s:9:"object_id";i:2164;s:11:"object_type";i:108;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:269:"{"id":2164,"contract_id":3843,"amount":"1","created_by":5250,"created_at":"2025-07-05 14:49:18","collected_date":"2025-07-05","description":"\u6492\u65e6\u6cd5\u5927\u5e08\u5085\u5927\u5e08\u5085\u963f\u662f\u90fd\u662f\u662f\u90fd\u662f\u5565\u7684","paid_amount":"1"}";s:9:"new_value";s:269:"{"id":2164,"contract_id":3843,"amount":"1","created_by":5250,"created_at":"2025-07-05 14:49:18","collected_date":"2025-07-05","description":"\u6492\u65e6\u6cd5\u5927\u5e08\u5085\u5927\u5e08\u5085\u963f\u662f\u90fd\u662f\u662f\u90fd\u662f\u5565\u7684","paid_amount":"1"}";s:11:"description";s:87:"{"d1":"\u8463\u8363","d2":"\u521b\u5efa\u4e86","d3":"\u6536\u6b3e\u4fe1\u606f","d4":[]}";s:10:"created_by";i:5250;s:10:"created_at";s:19:"2025-07-05 14:49:18";s:9:"is_delete";N;}', '', 5250, '223.72.35.175')

14:49:18.6910.7 msINSERTINSERT INTO "a57be577deb434"."tbl_object_change_logs" ("act", "attribute", "object_id", "object_type", "target_id", "target_object_type", "created_by", "new_value", "old_value", "description") VALUES (2, 'update', 3304, 10, 3843, 7, 5250, '[3843]', '[3843]', '{"d1":"\u8463\u8363","d2":"\u66f4\u65b0\u4e86","d3":"\u9500\u552e\u5408\u540c","d4":["\u5408\u540c\u7f16\u53f7:TS-LRC-20250611001"]}') RETURNING "id"

14:49:18.6920.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', 510109, 'a:13:{s:2:"id";i:510109;s:9:"object_id";i:3304;s:11:"object_type";i:10;s:9:"target_id";i:3843;s:18:"target_object_type";i:7;s:3:"act";i:2;s:9:"attribute";s:6:"update";s:9:"old_value";s:6:"[3843]";s:9:"new_value";s:6:"[3843]";s:11:"description";s:132:"{"d1":"\u8463\u8363","d2":"\u66f4\u65b0\u4e86","d3":"\u9500\u552e\u5408\u540c","d4":["\u5408\u540c\u7f16\u53f7:TS-LRC-20250611001"]}";s:10:"created_by";i:5250;s:10:"created_at";N;s:9:"is_delete";N;}', '', 5250, '223.72.35.175')

14:49:18.6930.7 msINSERTINSERT INTO "a57be577deb434"."tbl_object_change_logs" ("act", "attribute", "object_id", "object_type", "target_id", "target_object_type", "created_by", "new_value", "old_value", "description") VALUES (1, 'create', 3809, 1, 2164, 108, 5250, '[2164]', '[2164]', '{"d1":"\u8463\u8363","d2":"\u521b\u5efa\u4e86","d3":"\u6536\u6b3e\u4fe1\u606f","d4":[""]}') RETURNING "id"

14:49:18.6930.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', 510110, 'a:13:{s:2:"id";i:510110;s:9:"object_id";i:3809;s:11:"object_type";i:1;s:9:"target_id";i:2164;s:18:"target_object_type";i:108;s:3:"act";i:1;s:9:"attribute";s:6:"create";s:9:"old_value";s:6:"[2164]";s:9:"new_value";s:6:"[2164]";s:11:"description";s:89:"{"d1":"\u8463\u8363","d2":"\u521b\u5efa\u4e86","d3":"\u6536\u6b3e\u4fe1\u606f","d4":[""]}";s:10:"created_by";i:5250;s:10:"created_at";N;s:9:"is_delete";N;}', '', 5250, '223.72.35.175')

14:49:18.6940.3 msSELECTSELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=3304

14:49:18.6962.6 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_user_action_logs' and d.nspname = 'a57be577deb434' ORDER BY a.attnum;

14:49:18.6987.9 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_user_action_logs' and ns.nspname='a57be577deb434' order by fns.nspname, fc.relname, a.attnum

14:49:18.7077.3 msINSERTINSERT INTO "a57be577deb434"."tbl_user_action_logs" ("act", "attribute", "object_id", "object_type", "target_id", "target_object_type", "created_by", "new_value", "old_value", "users", "description") VALUES (1, 'create', 3809, 1, 2164, 108, 5250, '2164', '2164', array[1001], '{"d1":"\u8463\u8363","d2":"\u521b\u5efa\u4e86","d3":"\u6536\u6b3e\u4fe1\u606f","d4":[""]}') RETURNING "id"

14:49:18.7140.7 msINSERTINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\UserActionLogs', 136982, 'a:15:{s:2:"id";i:136982;s:9:"object_id";i:3809;s:11:"object_type";i:1;s:9:"target_id";i:2164;s:18:"target_object_type";i:108;s:3:"act";i:1;s:9:"attribute";s:6:"create";s:9:"old_value";s:4:"2164";s:9:"new_value";s:4:"2164";s:5:"users";O:17:"yii\db\Expression":2:{s:10:"expression";s:11:"array[1001]";s:6:"params";a:0:{}}s:11:"description";s:89:"{"d1":"\u8463\u8363","d2":"\u521b\u5efa\u4e86","d3":"\u6536\u6b3e\u4fe1\u606f","d4":[""]}";s:10:"created_by";i:5250;s:10:"created_at";N;s:9:"is_delete";N;s:9:"parent_id";N;}', '', 5250, '223.72.35.175')

14:49:18.7150.7 msINSERTINSERT INTO "a57be577deb434"."tbl_object_change_logs" ("act", "attribute", "object_id", "object_type", "target_id", "target_object_type", "created_by", "new_value", "old_value", "description") VALUES (1, 'create', 3843, 7, 2164, 108, 5250, '[2164]', '[2164]', '{"d1":"\u8463\u8363","d2":"\u521b\u5efa\u4e86","d3":"\u6536\u6b3e\u4fe1\u606f","d4":["2025-07-05 \uffe51.00"]}') RETURNING "id"

14:49:18.7160.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', 510111, 'a:13:{s:2:"id";i:510111;s:9:"object_id";i:3843;s:11:"object_type";i:7;s:9:"target_id";i:2164;s:18:"target_object_type";i:108;s:3:"act";i:1;s:9:"attribute";s:6:"create";s:9:"old_value";s:6:"[2164]";s:9:"new_value";s:6:"[2164]";s:11:"description";s:110:"{"d1":"\u8463\u8363","d2":"\u521b\u5efa\u4e86","d3":"\u6536\u6b3e\u4fe1\u606f","d4":["2025-07-05 \uffe51.00"]}";s:10:"created_by";i:5250;s:10:"created_at";N;s:9:"is_delete";N;}', '', 5250, '223.72.35.175')

14:49:18.7170.3 msSELECTSELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=3304

14:49:18.7190.3 msSELECTSELECT * FROM "a57be577deb434"."tbl_sales_contracts" WHERE "id"=3843

14:49:18.7190.2 msSELECTSELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"=3809

14:49:18.7190.3 msSELECTSELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=3304

14:49:18.7210.2 msSELECTSELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=5250)

14:49:18.7222.7 msINSERTINSERT INTO "a57be577deb434"."tbl_comments" ("created_by", "object_type", "object_id", "is_system", "description", "description2") VALUES (5250, '7', 3843, TRUE, '董荣创建了:TS-LRC-20250611001收款信息2025/07/05¥1', '商机:测试默认选中明确需求;客户:北京月初科技有限公司(过单)') RETURNING "id"

14:49:18.7240.7 msINSERTINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\Comments', 170275, 'a:11:{s:2:"id";i:170275;s:9:"object_id";i:3843;s:11:"object_type";s:1:"7";s:6:"parent";N;s:11:"description";s:62:"董荣创建了:TS-LRC-20250611001收款信息2025/07/05¥1";s:10:"created_by";i:5250;s:10:"created_at";N;s:8:"reply_to";N;s:9:"is_system";b:1;s:8:"for_user";N;s:12:"description2";s:93:"商机:测试默认选中明确需求;客户:北京月初科技有限公司(过单)";}', '', 5250, '223.72.35.175')

14:49:18.7253.9 msINSERTINSERT INTO "a57be577deb434"."tbl_unread_comments" ("object_id", "object_type", "comment_id", "remind_user_id") VALUES (3843, '7', 170275, 1001)

14:49:18.7290.8 msSELECTSELECT "channel_id" FROM "global"."tbl_logins" WHERE ("id"=1001) AND ("id" != 5250) AND (channel_id IS NOT NULL)

14:49:18.7310.3 msSELECTSELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=5250

14:49:18.7440.3 msSELECTSELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"=3809

14:49:18.7455.0 msDELETEDELETE FROM "a57be577deb434"."tbl_payment_collection" WHERE "project_id"=3809

14:49:18.7500.3 msSELECTSELECT * FROM "a57be577deb434"."tbl_sales_contract_payments" WHERE "contract_id"=3843

14:49:18.7502.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_payment_collection' and d.nspname = 'a57be577deb434' ORDER BY a.attnum;

14:49:18.7537.9 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_payment_collection' and ns.nspname='a57be577deb434' order by fns.nspname, fc.relname, a.attnum

14:49:18.7617.5 msINSERTINSERT INTO "a57be577deb434"."tbl_payment_collection" ("project_id", "created_by", "collected") VALUES (3809, 5250, '1')

14:49:18.7691.5 msUPDATEUPDATE "a57be577deb434"."tbl_projects" SET "collected"='1', "end_at"='now()' WHERE "id"=3809

14:49:18.7711.2 msSELECTSELECT * FROM "a57be577deb434"."tbl_project_change_logs" WHERE ("project_id"=3809) AND ("end_at" IS NULL) ORDER BY "id" DESC LIMIT 1

14:49:18.7721.3 msUPDATEUPDATE "a57be577deb434"."tbl_project_change_logs" SET "end_at"='now()' WHERE "id"=16110

14:49:18.7740.8 msINSERTINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\ProjectChangeLogs', 16110, 'a:1:{s:6:"end_at";s:19:"1970-01-01 08:00:00";}', '', 5250, '223.72.35.175')

14:49:18.7753.2 msINSERTINSERT INTO "a57be577deb434"."tbl_project_change_logs" ("project_id", "project_status", "budget", "profit_pct", "collected", "start_from", "end_at") VALUES (3809, 3, '1', '100', '1', 'now()', NULL) RETURNING "id"

14:49:18.7780.7 msINSERTINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\ProjectChangeLogs', 16118, 'a:8:{s:2:"id";i:16118;s:10:"project_id";i:3809;s:14:"project_status";i:3;s:6:"budget";s:1:"1";s:10:"profit_pct";s:3:"100";s:9:"collected";i:1;s:10:"start_from";s:5:"now()";s:6:"end_at";N;}', '', 5250, '223.72.35.175')

14:49:18.7790.7 msINSERTINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\Projects', 3809, 'a:2:{s:9:"collected";s:1:"0";s:6:"end_at";s:19:"1970-01-01 08:00:00";}', '', 5250, '223.72.35.175')

14:49:18.7800.3 msSELECTSELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=3304

14:49:18.7812.4 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_project_status_logs' and d.nspname = 'a57be577deb434' ORDER BY a.attnum;

14:49:18.7838.8 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_project_status_logs' and ns.nspname='a57be577deb434' order by fns.nspname, fc.relname, a.attnum

14:49:18.7923.5 msINSERTINSERT INTO "a57be577deb434"."tbl_project_status_logs" ("project_id", "old_status", "new_status", "created_by", "created_at") VALUES (3809, 3, 0, 5250, 'now()') RETURNING "id"

14:49:18.7960.8 msINSERTINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\ProjectStatusLogs', 3408, 'a:6:{s:2:"id";i:3408;s:10:"project_id";i:3809;s:10:"new_status";i:0;s:10:"old_status";i:3;s:10:"created_by";i:5250;s:10:"created_at";s:19:"1970-01-01 08:00:00";}', '', 5250, '223.72.35.175')

14:49:18.7970.2 msSELECTSELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"=3809

14:49:18.7980.3 msSELECTSELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=3304

14:49:18.7980.2 msSELECTSELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=5250)

14:49:18.7980.7 msINSERTINSERT INTO "a57be577deb434"."tbl_comments" ("created_by", "object_type", "object_id", "is_system", "description", "description2") VALUES (5250, '1', 3809, TRUE, '此商机已收回全部款项', '商机:测试默认选中明确需求;客户:北京月初科技有限公司(过单)') RETURNING "id"

14:49:18.7991.3 msINSERTINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\Comments', 170276, 'a:11:{s:2:"id";i:170276;s:9:"object_id";i:3809;s:11:"object_type";s:1:"1";s:6:"parent";N;s:11:"description";s:30:"此商机已收回全部款项";s:10:"created_by";i:5250;s:10:"created_at";N;s:8:"reply_to";N;s:9:"is_system";b:1;s:8:"for_user";N;s:12:"description2";s:93:"商机:测试默认选中明确需求;客户:北京月初科技有限公司(过单)";}', '', 5250, '223.72.35.175')

14:49:18.8010.7 msINSERTINSERT INTO "a57be577deb434"."tbl_unread_comments" ("object_id", "object_type", "comment_id", "remind_user_id") VALUES (3809, '1', 170276, 1001)

14:49:18.8020.2 msSELECTSELECT "channel_id" FROM "global"."tbl_logins" WHERE ("id"=1001) AND ("id" != 5250) AND (channel_id IS NOT NULL)

14:49:18.8020.3 msSELECTSELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=5250

14:49:18.8020.3 msSELECTSELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=3304

14:49:18.8030.3 msSELECTSELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001

14:49:18.8040.3 msSELECTSELECT "id" FROM "a57be577deb434"."tbl_sales_contracts" WHERE "project_id"=3809

14:49:18.8050.7 msUPDATEUPDATE "a57be577deb434"."tbl_sales_contract_payment_collection_remind_dates" SET "reminded"=TRUE WHERE "contract_id"=3843

14:49:18.8060.3 msSELECTSELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=5250

14:49:18.8060.7 msINSERTINSERT INTO "a57be577deb434"."tbl_object_change_logs" ("act", "attribute", "object_id", "object_type", "created_by", "created_at", "new_value", "old_value", "description") VALUES (2, 'project_status', 3809, 1, 5250, 'now()', '["\u6536\u6b3e\u5b8c\u6210"]', '["\u5546\u673a\u6210\u4ea4"]', '{"d1":"\u8463\u8363","d2":"\u66f4\u65b0\u4e86","d3":"\u5546\u673a\u72b6\u6001","d4":["\u5546\u673a\u6210\u4ea4 <b>\u53d8\u4e3a<\/b> \u6536\u6b3e\u5b8c\u6210"]}')

14:49:18.8070.3 msSELECTSELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=5250

14:49:18.8070.7 msINSERTINSERT INTO "a57be577deb434"."tbl_user_action_logs" ("act", "attribute", "object_id", "object_type", "created_by", "created_at", "new_value", "old_value", "users", "description") VALUES (2, 'project_status', 3809, 1, 5250, 'now()', '["\u6536\u6b3e\u5b8c\u6210"]', '["\u5546\u673a\u6210\u4ea4"]', array[1001], '{"d1":"\u8463\u8363","d2":"\u66f4\u65b0\u4e86","d3":"\u5546\u673a\u72b6\u6001","d4":["\u5546\u673a\u6210\u4ea4 <b>\u53d8\u4e3a<\/b> \u6536\u6b3e\u5b8c\u6210"]}')

14:49:18.8081.0 msINSERTINSERT INTO "global"."tbl_api_log" ("code", "schema", "user_id", "device_type", "url", "request", "response", "php_error", "time") VALUES (200, 'a57be577deb434', 5250, 5, 'vue/sales-contract/save-new-payment', '{"SalesContractPayments":{"id":"","contract_id":"3843","amount":"1","description":"\u6492\u65e6\u6cd5\u5927\u5e08\u5085\u5927\u5e08\u5085\u963f\u662f\u90fd\u662f\u662f\u90fd\u662f\u5565\u7684","collected_date":"2025\/07\/05","files":["24825","24826"]},"contract_id":"3843","web_access_token":"lF6lDSiCl5CRIFfE8shlx2wSeme229Hs"}', '{"code":2000,"result":"","status":1,"msg":[{"name":"success","success":"\u65b0\u6536\u6b3e\u4fe1\u606f\u5df2\u521b\u5efa\u6210\u529f","error":""}],"mod":0}', FALSE, '2025-07-05 14:49:18') RETURNING "id"