Database Queries

总计164条数据
TimeDurationTypeQuery
  
17:23:46.1582.5 msSELECTSELECT * FROM "global"."vw_user_login" WHERE "id"=5064

17:23:46.1611.6 msSELECTSELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=5064

17:23:46.1640.8 msSELECTSELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"='3878'

17:23:46.1670.4 msSELECTSELECT * FROM "a57be577deb434"."tbl_term_taxonomy_relationships" WHERE "object_id"=3878

17:23:46.1670.9 msSELECTSELECT * FROM "a57be577deb434"."tbl_term_taxonomies" WHERE ("term_id"=13) AND ("id" IN (198, 202, 324, 356)) ORDER BY "sort"

17:23:46.1690.7 msSELECTSELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_projects" WHERE ("client_id"='3369') AND ("project_title"='“两地三中心”灾备体系化建设') AND ("id" != 3878))

17:23:46.1700.3 msSELECTSELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_contract_types" WHERE "id"='1')

17:23:46.1700.6 msSELECTSELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"='3369')

17:23:46.1710.3 msSELECTSELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_project_progresses" WHERE "id"='3')

17:23:46.1710.2 msSELECTSELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_project_statuses" WHERE "id"='3')

17:23:46.1720.2 msSELECTSELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=5449)

17:23:46.1721.0 msSELECTSELECT * FROM "a57be577deb434"."tbl_erp_sales_orders" WHERE ("status" IN (2, 5)) AND ("project_id"=3878)

17:23:46.1730.3 msSELECTSELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=5064

17:23:46.1740.5 msSELECTSELECT * FROM "a57be577deb434"."tbl_project_product_types" WHERE "project_id"=3878

17:23:46.1750.3 msSELECTSELECT * FROM "a57be577deb434"."tbl_product_types" WHERE "id"=2

17:23:46.1760.3 msSELECTSELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=5064

17:23:46.1764.7 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;

17:23:46.1813.2 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

17:23:46.1857.8 msINSERTINSERT INTO "a57be577deb434"."tbl_object_change_logs" ("act", "attribute", "object_id", "object_type", "created_by", "created_at", "new_value", "old_value", "description") VALUES (2, 'projectProductTypes', 3878, 1, 5064, 'now()', '[["\u670d\u52a1\u5668:444\u5143 9.90%"]]', '[[]]', '{"d1":"\u59da\u96ea\u7eaf","d2":"\u66f4\u65b0\u4e86","d3":"\u5546\u673a\u91d1\u989d","d4":["(\u672a\u8bbe\u7f6e) <b>\u53d8\u4e3a<\/b> \u670d\u52a1\u5668:444\u5143 9.90%;"]}')

17:23:46.1930.6 msSELECTSELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"='3369'

17:23:46.1940.3 msSELECTSELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=5064

17:23:46.1956.3 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, 'projectProductTypes', 3878, 1, 5064, 'now()', '[["\u670d\u52a1\u5668:444\u5143 9.90%"]]', '[[]]', array[5449], '{"d1":"\u59da\u96ea\u7eaf","d2":"\u66f4\u65b0\u4e86","d3":"\u5546\u673a\u91d1\u989d","d4":["(\u672a\u8bbe\u7f6e) <b>\u53d8\u4e3a<\/b> \u670d\u52a1\u5668:444\u5143 9.90%;"]}')

17:23:46.2020.8 msSELECTSELECT * FROM "a57be577deb434"."tbl_sales_contracts" WHERE "from_project"=3878

17:23:46.2020.3 msDELETEDELETE FROM "a57be577deb434"."tbl_project_product_types" WHERE "project_id"=3878

17:23:46.2030.2 msSELECTSELECT * FROM "a57be577deb434"."tbl_product_types" WHERE "id"=2

17:23:46.2034.3 msINSERTINSERT INTO "a57be577deb434"."tbl_project_product_types" ("project_id", "product_type_id", "name", "budget", "pct", "profit") VALUES (3878, 2, '服务器', '444', 9.9, '44')

17:23:46.2080.5 msSELECTSELECT * FROM "a57be577deb434"."tbl_project_product_rels" WHERE "project_id"=3878

17:23:46.2080.2 msSELECTSELECT "id" FROM "a57be577deb434"."tbl_project_product_rels" WHERE "project_id"=3878

17:23:46.2090.1 msDELETEDELETE FROM "a57be577deb434"."tbl_project_product_rels" WHERE 0=1

17:23:46.2090.4 msSELECTSELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"=3878

17:23:46.2090.2 msSELECTSELECT * FROM "a57be577deb434"."tbl_project_product_rels" WHERE "project_id"=3878

17:23:46.2375.5 msSELECTSELECT * FROM "a57be577deb434"."tbl_project_change_logs" WHERE ("project_id"=3878) AND ("end_at" IS NULL) ORDER BY "id" DESC LIMIT 1

17:23:46.2435.2 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_action_logs' and d.nspname = 'a57be577deb434' ORDER BY a.attnum;

17:23:46.2484.3 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_action_logs' and ns.nspname='a57be577deb434' order by fns.nspname, fc.relname, a.attnum

17:23:46.2537.4 msINSERTINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\Projects', 3878, 'a:0:{}', '', 5064, '114.246.239.150')

17:23:46.2610.3 msSELECTSELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=3369

17:23:46.2610.2 msSELECTSELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"=3878

17:23:46.2620.3 msSELECTSELECT * FROM "a57be577deb434"."tbl_project_product_rels" WHERE "project_id"=3878

17:23:46.2648.1 msSELECTSELECT * FROM "a57be577deb434"."tbl_sales_order_items" WHERE "project_id"=3878

17:23:46.2721.3 msSELECTSELECT * FROM "a57be577deb434"."tbl_project_change_logs" WHERE ("project_id"=3878) AND ("end_at" IS NULL) ORDER BY "id" DESC LIMIT 1

17:23:46.2740.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', 3878, 'a:0:{}', '', 5064, '114.246.239.150')

17:23:46.2750.3 msSELECTSELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=3369

17:23:46.2750.2 msSELECTSELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"=3878

17:23:46.2760.3 msSELECTSELECT * FROM "a57be577deb434"."tbl_project_contact_points" WHERE "project_id"=3878

17:23:46.2760.1 msDELETEDELETE FROM "a57be577deb434"."tbl_project_contact_points" WHERE "project_id"=3878

17:23:46.2760.3 msSELECTSELECT * FROM "a57be577deb434"."tbl_project_contact_point_rels" WHERE "project_id"=3878

17:23:46.2770.1 msSELECTSELECT "id" FROM "a57be577deb434"."tbl_project_contact_point_rels" WHERE "project_id"=3878

17:23:46.2770.1 msDELETEDELETE FROM "a57be577deb434"."tbl_project_contact_point_rels" WHERE 0=1

17:23:46.2770.3 msSELECTSELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=5064

17:23:46.2780.2 msSELECTSELECT * FROM "a57be577deb434"."tbl_contract_types" WHERE "id"='1'

17:23:46.2780.9 msINSERTINSERT INTO "a57be577deb434"."tbl_object_change_logs" ("act", "attribute", "object_id", "object_type", "created_by", "created_at", "new_value", "old_value", "description") VALUES (2, 'profit_pct', 3878, 1, 5064, 'now()', '["9.9%"]', '["0"]', '{"d1":"\u59da\u96ea\u7eaf","d2":"\u66f4\u65b0\u4e86","d3":"\u5229\u6da6\u7387","d4":["(\u672a\u8bbe\u7f6e) <b>\u53d8\u4e3a<\/b> 9.9%"]}'), (2, 'bargain_date', 3878, 1, 5064, 'now()', '["2025-09-10"]', '["2025-12-31"]', '{"d1":"\u59da\u96ea\u7eaf","d2":"\u66f4\u65b0\u4e86","d3":"\u6210\u4ea4\u65e5\u671f","d4":["2025-12-31 <b>\u53d8\u4e3a<\/b> 2025-09-10"]}'), (2, 'contract_type', 3878, 1, 5064, 'now()', '["\u4ea7\u54c1\u9500\u552e"]', '[null]', '{"d1":"\u59da\u96ea\u7eaf","d2":"\u66f4\u65b0\u4e86","d3":"\u5408\u540c\u7c7b\u578b","d4":["(\u672a\u8bbe\u7f6e) <b>\u53d8\u4e3a<\/b> \u4ea7\u54c1\u9500\u552e"]}')

17:23:46.2790.3 msSELECTSELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=5064

17:23:46.2800.2 msSELECTSELECT * FROM "a57be577deb434"."tbl_contract_types" WHERE "id"='1'

17:23:46.2800.9 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, 'profit_pct', 3878, 1, 5064, 'now()', '["9.9%"]', '["0"]', array[5449], '{"d1":"\u59da\u96ea\u7eaf","d2":"\u66f4\u65b0\u4e86","d3":"\u5229\u6da6\u7387","d4":["(\u672a\u8bbe\u7f6e) <b>\u53d8\u4e3a<\/b> 9.9%"]}'), (2, 'bargain_date', 3878, 1, 5064, 'now()', '["2025-09-10"]', '["2025-12-31"]', array[5449], '{"d1":"\u59da\u96ea\u7eaf","d2":"\u66f4\u65b0\u4e86","d3":"\u6210\u4ea4\u65e5\u671f","d4":["2025-12-31 <b>\u53d8\u4e3a<\/b> 2025-09-10"]}'), (2, 'contract_type', 3878, 1, 5064, 'now()', '["\u4ea7\u54c1\u9500\u552e"]', '[null]', array[5449], '{"d1":"\u59da\u96ea\u7eaf","d2":"\u66f4\u65b0\u4e86","d3":"\u5408\u540c\u7c7b\u578b","d4":["(\u672a\u8bbe\u7f6e) <b>\u53d8\u4e3a<\/b> \u4ea7\u54c1\u9500\u552e"]}')

17:23:46.2821.7 msUPDATEUPDATE "a57be577deb434"."tbl_projects" SET "client_id"=3369, "project_progress"=3, "budget"='444', "profit_pct"='9.9', "bargain_date"='2025-09-10', "updated_at"='now()', "status_updated_at"='now()', "contract_type"=1, "forecast_updated_at"='now()', "from_contact"=NULL, "change_status_to"=3 WHERE "id"=3878

17:23:46.2841.2 msSELECTSELECT * FROM "a57be577deb434"."tbl_project_change_logs" WHERE ("project_id"=3878) AND ("end_at" IS NULL) ORDER BY "id" DESC LIMIT 1

17:23:46.2851.3 msUPDATEUPDATE "a57be577deb434"."tbl_project_change_logs" SET "end_at"='now()' WHERE "id"=16365

17:23:46.2870.7 msINSERTINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\ProjectChangeLogs', 16365, 'a:1:{s:6:"end_at";s:19:"1970-01-01 08:00:00";}', '', 5064, '114.246.239.150')

17:23:46.2883.4 msINSERTINSERT INTO "a57be577deb434"."tbl_project_change_logs" ("project_id", "project_status", "budget", "profit_pct", "collected", "start_from", "end_at") VALUES (3878, 1, '444', '9.9', '0', 'now()', NULL) RETURNING "id"

17:23:46.2910.8 msINSERTINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\ProjectChangeLogs', 16804, 'a:8:{s:2:"id";i:16804;s:10:"project_id";i:3878;s:14:"project_status";i:1;s:6:"budget";i:444;s:10:"profit_pct";d:9.9000000000000004;s:9:"collected";s:1:"0";s:10:"start_from";s:5:"now()";s:6:"end_at";N;}', '', 5064, '114.246.239.150')

17:23:46.2920.9 msINSERTINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\Projects', 3878, 'a:3:{s:12:"bargain_date";s:10:"2025-09-10";s:6:"budget";i:444;s:10:"profit_pct";d:9.9000000000000004;}', '', 5064, '114.246.239.150')

17:23:46.2930.3 msSELECTSELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"='3369'

17:23:46.2930.3 msSELECTSELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=5064

17:23:46.2940.4 msSELECTSELECT * FROM "a57be577deb434"."tbl_project_architects" WHERE "project_id"=3878

17:23:46.2940.2 msDELETEDELETE FROM "a57be577deb434"."tbl_project_architects" WHERE "project_id"=3878

17:23:46.2950.2 msSELECTSELECT * FROM "a57be577deb434"."tbl_term_taxonomy_relationships" WHERE "object_id"=3878

17:23:46.2950.2 msSELECTSELECT * FROM "a57be577deb434"."tbl_term_taxonomies" WHERE ("term_id"=9) AND ("id" IN (198, 202, 324, 356)) ORDER BY "sort"

17:23:46.2960.2 msSELECTSELECT * FROM "a57be577deb434"."tbl_term_taxonomies" WHERE "id"='129'

17:23:46.2960.3 msSELECTSELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=5064

17:23:46.2960.8 msINSERTINSERT INTO "a57be577deb434"."tbl_object_change_logs" ("act", "attribute", "object_id", "object_type", "created_by", "created_at", "new_value", "old_value", "description") VALUES (2, 'purchaseType', 3878, 1, 5064, 'now()', '["\u7279\u7ea6\u9080\u6807"]', '[""]', '{"d1":"\u59da\u96ea\u7eaf","d2":"\u66f4\u65b0\u4e86","d3":"\u91c7\u8d2d\u65b9\u5f0f","d4":["(\u672a\u8bbe\u7f6e) <b>\u53d8\u4e3a<\/b> \u7279\u7ea6\u9080\u6807"]}')

17:23:46.2970.3 msSELECTSELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=5064

17:23:46.2980.8 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, 'purchaseType', 3878, 1, 5064, 'now()', '["\u7279\u7ea6\u9080\u6807"]', '[""]', array[5449], '{"d1":"\u59da\u96ea\u7eaf","d2":"\u66f4\u65b0\u4e86","d3":"\u91c7\u8d2d\u65b9\u5f0f","d4":["(\u672a\u8bbe\u7f6e) <b>\u53d8\u4e3a<\/b> \u7279\u7ea6\u9080\u6807"]}')

17:23:46.2990.2 msDELETEDELETE FROM "a57be577deb434"."tbl_term_taxonomy_relationships" WHERE ("object_id"=3878) AND ("term_id"=9)

17:23:46.2995.2 msINSERTINSERT INTO "a57be577deb434"."tbl_term_taxonomy_relationships" ("term_id", "taxonomy_id", "object_id") VALUES (9, 129, 3878)

17:23:46.3040.2 msSELECTSELECT * FROM "a57be577deb434"."tbl_term_taxonomies" WHERE "id"='181'

17:23:46.3050.3 msSELECTSELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=5064

17:23:46.3050.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, 'salesForecast', 3878, 1, 5064, 'now()', '["\u6211\u81ea\u5df1\u505a\u5e84"]', '[""]', '{"d1":"\u59da\u96ea\u7eaf","d2":"\u66f4\u65b0\u4e86","d3":"\u9500\u552e\u9884\u6d4b","d4":["(\u672a\u8bbe\u7f6e) <b>\u53d8\u4e3a<\/b> \u6211\u81ea\u5df1\u505a\u5e84"]}')

17:23:46.3060.3 msSELECTSELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=5064

17:23:46.3060.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, 'salesForecast', 3878, 1, 5064, 'now()', '["\u6211\u81ea\u5df1\u505a\u5e84"]', '[""]', array[5449], '{"d1":"\u59da\u96ea\u7eaf","d2":"\u66f4\u65b0\u4e86","d3":"\u9500\u552e\u9884\u6d4b","d4":["(\u672a\u8bbe\u7f6e) <b>\u53d8\u4e3a<\/b> \u6211\u81ea\u5df1\u505a\u5e84"]}')

17:23:46.3070.1 msDELETEDELETE FROM "a57be577deb434"."tbl_term_taxonomy_relationships" WHERE ("object_id"=3878) AND ("term_id"=13)

17:23:46.3070.8 msINSERTINSERT INTO "a57be577deb434"."tbl_term_taxonomy_relationships" ("term_id", "taxonomy_id", "object_id") VALUES (13, 181, 3878)

17:23:46.3080.3 msSELECTSELECT * FROM "a57be577deb434"."tbl_project_remind_receivers" WHERE "project_id"=3878

17:23:46.3090.7 msDELETEDELETE FROM "a57be577deb434"."tbl_project_remind_receivers" WHERE "project_id"=3878

17:23:46.3103.3 msINSERTINSERT INTO "a57be577deb434"."tbl_project_remind_receivers" ("project_id", "user_id") VALUES (3878, 1005) RETURNING "id"

17:23:46.3130.8 msINSERTINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\ProjectRemindReceivers', 1775, 'a:3:{s:2:"id";i:1775;s:10:"project_id";i:3878;s:7:"user_id";s:4:"1005";}', '', 5064, '114.246.239.150')

17:23:46.3140.5 msSELECTSELECT * FROM "a57be577deb434"."tbl_sales_contracts" WHERE "from_project"=3878

17:23:46.3150.3 msSELECTSELECT * FROM "a57be577deb434"."tbl_project_used_clients" WHERE "project_id"=3878

17:23:46.3150.7 msUPDATEUPDATE "a57be577deb434"."tbl_project_used_clients" SET "used_client"=NULL, "budget"=NULL, "profit"=NULL, "profit_pct"=NULL WHERE "id"=126

17:23:46.3160.7 msINSERTINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\ProjectUsedClients', 126, 'a:0:{}', '', 5064, '114.246.239.150')

17:23:46.3170.9 msINSERTINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\ProjectUsedClients', 126, 'a:0:{}', '', 5064, '114.246.239.150')

17:23:46.3180.3 msSELECTSELECT * FROM "a57be577deb434"."tbl_project_used_client_payment_collection_remind_receivers" WHERE "project_used_client_id"=126

17:23:46.3180.1 msDELETEDELETE FROM "a57be577deb434"."tbl_project_used_client_payment_collection_remind_receivers" WHERE "project_used_client_id"=126

17:23:46.3190.3 msSELECTSELECT * FROM "a57be577deb434"."tbl_project_used_client_payment_collection_remind_dates" WHERE "project_used_client_id"=126

17:23:46.3190.1 msDELETEDELETE FROM "a57be577deb434"."tbl_project_used_client_payment_collection_remind_dates" WHERE "project_used_client_id"=126

17:23:46.3190.2 msSELECTSELECT "id" FROM "a57be577deb434"."tbl_project_used_client_payments" WHERE "project_used_client_id"=126

17:23:46.3200.1 msSELECTSELECT * FROM "a57be577deb434"."tbl_project_used_client_payments" WHERE "project_used_client_id"=126

17:23:46.3200.1 msDELETEDELETE FROM "a57be577deb434"."tbl_project_used_client_payments" WHERE 0=1

17:23:46.3200.2 msSELECTSELECT * FROM "a57be577deb434"."tbl_project_used_clients" WHERE "id"=126

17:23:46.3210.1 msUPDATEUPDATE "a57be577deb434"."tbl_project_used_client_payments" SET "paid_amount"='0' WHERE "project_used_client_id"=126

17:23:46.3210.2 msUPDATEUPDATE "a57be577deb434"."tbl_project_used_client_payment_collection_remind_dates" SET "paid_amount"='0', "status"=0, "overdue_days"=NULL WHERE "project_used_client_id"=126

17:23:46.3210.2 msSELECTSELECT SUM(amount) FROM "a57be577deb434"."tbl_project_used_client_payment_collection_remind_dates" WHERE "project_used_client_id"=126

17:23:46.3210.7 msINSERTINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\ProjectUsedClients', 126, 'a:0:{}', '', 5064, '114.246.239.150')

17:23:46.3220.4 msSELECTSELECT * FROM "a57be577deb434"."tbl_project_used_client_payments" WHERE ("project_used_client_id"=126) AND (amount > paid_amount) ORDER BY "collected_date", "created_at"

17:23:46.3230.3 msSELECTSELECT "id" FROM "a57be577deb434"."tbl_project_used_client_invoices" WHERE "project_used_client_id"=126

17:23:46.3230.1 msSELECTSELECT * FROM "a57be577deb434"."tbl_project_used_client_invoices" WHERE "project_used_client_id"=126

17:23:46.3230.1 msDELETEDELETE FROM "a57be577deb434"."tbl_project_used_client_invoices" WHERE 0=1

17:23:46.3240.3 msSELECTSELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"='3369'

17:23:46.3251.1 msUPDATEUPDATE "a57be577deb434"."tbl_clients" SET "updated_at"='now()' WHERE "id"=3369

17:23:46.32717.8 msSELECTSELECT * FROM "a57be577deb434"."tbl_client_am_change_logs" WHERE ("client_id"=3369) AND ("sales_rep" IS NULL) AND ("end_at" IS NULL) ORDER BY "id" DESC LIMIT 1

17:23:46.3455.4 msINSERTINSERT INTO "a57be577deb434"."tbl_client_am_change_logs" ("client_id", "sales_rep", "start_from", "end_at") VALUES (3369, 5449, 'now()', NULL) RETURNING "id"

17:23:46.3500.7 msINSERTINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\ClientAmChangeLogs', 180757, 'a:5:{s:2:"id";i:180757;s:9:"client_id";i:3369;s:9:"sales_rep";i:5449;s:10:"start_from";s:5:"now()";s:6:"end_at";N;}', '', 5064, '114.246.239.150')

17:23:46.3510.8 msINSERTINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\Clients', 3369, 'a:0:{}', '', 5064, '114.246.239.150')

17:23:46.3520.3 msSELECTSELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=5064

17:23:46.3530.8 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', 3369, 10, 3878, 1, 5064, '[3878]', '[3878]', '{"d1":"\u59da\u96ea\u7eaf","d2":"\u66f4\u65b0\u4e86","d3":"\u5546\u673a","d4":["\u201c\u4e24\u5730\u4e09\u4e2d\u5fc3\u201d\u707e\u5907\u4f53\u7cfb\u5316\u5efa\u8bbe"]}') RETURNING "id"

17:23:46.3540.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', 564860, 'a:13:{s:2:"id";i:564860;s:9:"object_id";s:4:"3369";s:11:"object_type";i:10;s:9:"target_id";i:3878;s:18:"target_object_type";i:1;s:3:"act";i:2;s:9:"attribute";s:6:"update";s:9:"old_value";s:6:"[3878]";s:9:"new_value";s:6:"[3878]";s:11:"description";s:167:"{"d1":"\u59da\u96ea\u7eaf","d2":"\u66f4\u65b0\u4e86","d3":"\u5546\u673a","d4":["\u201c\u4e24\u5730\u4e09\u4e2d\u5fc3\u201d\u707e\u5907\u4f53\u7cfb\u5316\u5efa\u8bbe"]}";s:10:"created_by";i:5064;s:10:"created_at";N;s:9:"is_delete";N;}', '', 5064, '114.246.239.150')

17:23:46.3550.3 msSELECTSELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"='3369'

17:23:46.3550.3 msSELECTSELECT COUNT(*) FROM "a57be577deb434"."tbl_projects" WHERE ("project_status"=3) AND ("bargain_date" >= '2025-01-01 00:00:00') AND ("bargain_date" <= '2025-12-31 23:59:59') AND ("client_id"=3369)

17:23:46.3568.5 msSELECTSELECT * FROM "a57be577deb434"."tbl_client_am_change_logs" WHERE ("client_id"=3369) AND ("sales_rep" IS NULL) AND ("end_at" IS NULL) ORDER BY "id" DESC LIMIT 1

17:23:46.3650.8 msINSERTINSERT INTO "a57be577deb434"."tbl_client_am_change_logs" ("client_id", "sales_rep", "start_from", "end_at") VALUES (3369, 5449, 'now()', NULL) RETURNING "id"

17:23:46.3660.7 msINSERTINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\ClientAmChangeLogs', 180758, 'a:5:{s:2:"id";i:180758;s:9:"client_id";i:3369;s:9:"sales_rep";i:5449;s:10:"start_from";s:5:"now()";s:6:"end_at";N;}', '', 5064, '114.246.239.150')

17:23:46.3670.7 msINSERTINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\Clients', 3369, 'a:0:{}', '', 5064, '114.246.239.150')

17:23:46.3800.5 msSELECTSELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"=3878

17:23:46.3810.5 msSELECTSELECT * FROM "a57be577deb434"."tbl_erp_sales_orders" WHERE ("status" IN (2, 5)) AND ("project_id"=3878)

17:23:46.3820.8 msUPDATEUPDATE "a57be577deb434"."tbl_projects" SET "is_verify"=TRUE WHERE "id"=3878

17:23:46.3831.2 msSELECTSELECT * FROM "a57be577deb434"."tbl_project_change_logs" WHERE ("project_id"=3878) AND ("end_at" IS NULL) ORDER BY "id" DESC LIMIT 1

17:23:46.3850.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', 3878, 'a:0:{}', '', 5064, '114.246.239.150')

17:23:46.3850.3 msSELECTSELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=3369

17:23:46.3860.5 msSELECTSELECT * FROM "a57be577deb434"."tbl_sales_contracts" WHERE "from_project"=3878

17:23:46.3873.2 msSELECTSELECT * FROM "a57be577deb434"."tbl_erp_sales_orders" WHERE ("created_at" >= '2025-09-10 00:00:00') AND ("created_at" <= '2025-09-10 23:59:59') AND ("serial_no" ILIKE '%XSDD-20250910-%') AND (LENGTH(serial_no) = 19) ORDER BY "serial_no" DESC

17:23:46.3903.3 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_erp_sales_orders' and d.nspname = 'a57be577deb434' ORDER BY a.attnum;

17:23:46.3943.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_erp_sales_orders' and ns.nspname='a57be577deb434' order by fns.nspname, fc.relname, a.attnum

17:23:46.3991.6 msSELECTSELECT * FROM "a57be577deb434"."tbl_erp_verify_processes" WHERE "id"=6

17:23:46.4000.4 msSELECTSELECT "id" FROM "a57be577deb434"."tbl_users" WHERE ("id"='1001') AND ("user_status"='1') ORDER BY array_position(array[1001], id)

17:23:46.4015.6 msINSERTINSERT INTO "a57be577deb434"."tbl_erp_sales_orders" ("serial_no", "handler", "created_by", "amount", "wrote_date", "created_at", "verify_type", "status", "client_id", "project_id", "description", "extra", "outbound_status") VALUES ('XSDD-20250910-00005', 5449, 5064, '444', '2025-09-10', 'now()', 2, 1, 3369, 3878, NULL, '{"payment_collection_remind_ahead":"1 day","salesContractPaymentCollectionRemindReceivers":["5449"],"salesContractPaymentCollectionRemindDates":null}', FALSE) RETURNING "id"

17:23:46.4070.7 msINSERTINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\ErpSalesOrders', 1582, 'a:36:{s:2:"id";i:1582;s:9:"serial_no";s:19:"XSDD-20250910-00005";s:9:"from_date";N;s:10:"wrote_date";s:10:"2025-09-10";s:7:"handler";i:5449;s:9:"client_id";i:3369;s:20:"purchase_contract_id";N;s:10:"project_id";i:3878;s:17:"sales_contract_id";N;s:12:"erp_store_id";N;s:6:"status";i:1;s:16:"erp_send_type_id";N;s:8:"abstract";N;s:11:"description";N;s:11:"verify_type";s:1:"2";s:16:"next_verify_user";N;s:21:"next_stop_verify_user";N;s:23:"next_cancel_verify_user";N;s:9:"verify_at";N;s:7:"stop_at";N;s:9:"cancel_at";N;s:18:"refuse_description";N;s:14:"is_resubmitted";N;s:7:"is_done";N;s:6:"number";N;s:6:"amount";s:3:"444";s:10:"created_by";i:5064;s:16:"stop_description";N;s:5:"extra";s:149:"{"payment_collection_remind_ahead":"1 day","salesContractPaymentCollectionRemindReceivers":["5449"],"salesContractPaymentCollectionRemindDates":null}";s:15:"outbound_status";b:0;s:7:"is_used";N;s:9:"is_cancel";N;s:9:"is_settle";N;s:6:"is_old";N;s:10:"created_at";s:19:"1970-01-01 08:00:00";s:10:"updated_at";N;}', '', 5064, '114.246.239.150')

17:23:46.4080.2 msDELETEDELETE FROM "a57be577deb434"."tbl_erp_sales_order_verify_rels" WHERE "erp_sales_order_id"=1582

17:23:46.4082.4 msINSERTINSERT INTO "a57be577deb434"."tbl_erp_sales_order_verify_rels" ("erp_sales_order_id", "user_id", "status") VALUES (1582, 1001, 0)

17:23:46.4110.2 msSELECTSELECT * FROM "a57be577deb434"."tbl_erp_sales_order_verify_rels" WHERE ("status"=0) AND ("erp_sales_order_id"=1582) ORDER BY "id"

17:23:46.4110.9 msUPDATEUPDATE "a57be577deb434"."tbl_erp_sales_orders" SET "amount"='0', "number"='0', "next_verify_user"=1001 WHERE "id"=1582

17:23:46.4120.7 msINSERTINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\ErpSalesOrders', 1582, 'a:3:{s:6:"amount";i:0;s:16:"next_verify_user";i:1001;s:6:"number";i:0;}', '', 5064, '114.246.239.150')

17:23:46.4130.3 msSELECTSELECT * FROM "a57be577deb434"."tbl_erp_sales_orders" WHERE "id"=1582

17:23:46.4130.3 msSELECTSELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=5064

17:23:46.4140.2 msSELECTSELECT * FROM "a57be577deb434"."tbl_erp_sales_order_verify_rels" WHERE ("status"=0) AND ("erp_sales_order_id"=1582) ORDER BY "id"

17:23:46.4140.2 msSELECTSELECT * FROM "a57be577deb434"."tbl_erp_sales_order_verify_rels" WHERE ("status"=0) AND ("erp_sales_order_id"=1582) ORDER BY "id"

17:23:46.4150.3 msSELECTSELECT * FROM "a57be577deb434"."tbl_erp_sales_orders" WHERE "id"=1582

17:23:46.4150.2 msSELECTSELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=5064)

17:23:46.4163.3 msINSERTINSERT INTO "a57be577deb434"."tbl_comments" ("created_by", "object_type", "object_id", "description", "is_system", "description2") VALUES (5064, '20007', 1582, '姚雪纯 有一个销售订单需要审批', TRUE, 'XSDD-20250910-00005') RETURNING "id"

17:23:46.4190.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', 191167, 'a:11:{s:2:"id";i:191167;s:9:"object_id";i:1582;s:11:"object_type";s:5:"20007";s:6:"parent";N;s:11:"description";s:43:"姚雪纯 有一个销售订单需要审批";s:10:"created_by";i:5064;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:19:"XSDD-20250910-00005";}', '', 5064, '114.246.239.150')

17:23:46.4204.2 msINSERTINSERT INTO "a57be577deb434"."tbl_unread_comments" ("object_id", "object_type", "comment_id", "remind_user_id") VALUES (1582, '20007', 191167, 1001)

17:23:46.4240.2 msSELECTSELECT "channel_id" FROM "global"."tbl_logins" WHERE ("id"=1001) AND ("id" != 5064) AND (channel_id IS NOT NULL)

17:23:46.4250.3 msSELECTSELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=5064

17:23:46.4270.4 msSELECTSELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=3369

17:23:46.4270.2 msSELECTSELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"=3878

17:23:46.4290.3 msSELECTSELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=5064

17:23:46.4290.7 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', 1582, 20007, 5064, '2025-09-10 17:23:46', '{"id":1582,"serial_no":"XSDD-20250910-00005","from_date":null,"wrote_date":"2025-09-10","handler":5449,"client_id":3369,"purchase_contract_id":null,"project_id":3878,"sales_contract_id":null,"erp_store_id":null,"status":1,"erp_send_type_id":null,"abstract":null,"description":null,"verify_type":2,"next_verify_user":1001,"next_stop_verify_user":null,"next_cancel_verify_user":null,"verify_at":null,"stop_at":null,"cancel_at":null,"refuse_description":null,"is_resubmitted":false,"is_done":false,"number":"0","amount":"0","created_by":5064,"stop_description":null,"extra":"{\"payment_collection_remind_ahead\":\"1 day\",\"salesContractPaymentCollectionRemindReceivers\":[\"5449\"],\"salesContractPaymentCollectionRemindDates\":null}","outbound_status":false,"is_used":false,"is_cancel":false,"is_settle":false,"is_old":false,"created_at":"2025-09-10 17:23:46","updated_at":"2025-09-10 17:23:46"}', '{"id":1582,"serial_no":"XSDD-20250910-00005","from_date":null,"wrote_date":"2025-09-10","handler":5449,"client_id":3369,"purchase_contract_id":null,"project_id":3878,"sales_contract_id":null,"erp_store_id":null,"status":1,"erp_send_type_id":null,"abstract":null,"description":null,"verify_type":2,"next_verify_user":1001,"next_stop_verify_user":null,"next_cancel_verify_user":null,"verify_at":null,"stop_at":null,"cancel_at":null,"refuse_description":null,"is_resubmitted":false,"is_done":false,"number":"0","amount":"0","created_by":5064,"stop_description":null,"extra":"{\"payment_collection_remind_ahead\":\"1 day\",\"salesContractPaymentCollectionRemindReceivers\":[\"5449\"],\"salesContractPaymentCollectionRemindDates\":null}","outbound_status":false,"is_used":false,"is_cancel":false,"is_settle":false,"is_old":false,"created_at":"2025-09-10 17:23:46","updated_at":"2025-09-10 17:23:46"}', '{"d1":"\u59da\u96ea\u7eaf","d2":"\u521b\u5efa\u4e86","d3":"\u9500\u552e\u8ba2\u5355\u7533\u8bf7","d4":[]}') RETURNING "id"

17:23:46.4300.8 msINSERTINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\ObjectChangeLogs', 564861, 'a:13:{s:2:"id";i:564861;s:9:"object_id";i:1582;s:11:"object_type";i:20007;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:894:"{"id":1582,"serial_no":"XSDD-20250910-00005","from_date":null,"wrote_date":"2025-09-10","handler":5449,"client_id":3369,"purchase_contract_id":null,"project_id":3878,"sales_contract_id":null,"erp_store_id":null,"status":1,"erp_send_type_id":null,"abstract":null,"description":null,"verify_type":2,"next_verify_user":1001,"next_stop_verify_user":null,"next_cancel_verify_user":null,"verify_at":null,"stop_at":null,"cancel_at":null,"refuse_description":null,"is_resubmitted":false,"is_done":false,"number":"0","amount":"0","created_by":5064,"stop_description":null,"extra":"{\"payment_collection_remind_ahead\":\"1 day\",\"salesContractPaymentCollectionRemindReceivers\":[\"5449\"],\"salesContractPaymentCollectionRemindDates\":null}","outbound_status":false,"is_used":false,"is_cancel":false,"is_settle":false,"is_old":false,"created_at":"2025-09-10 17:23:46","updated_at":"2025-09-10 17:23:46"}";s:9:"new_value";s:894:"{"id":1582,"serial_no":"XSDD-20250910-00005","from_date":null,"wrote_date":"2025-09-10","handler":5449,"client_id":3369,"purchase_contract_id":null,"project_id":3878,"sales_contract_id":null,"erp_store_id":null,"status":1,"erp_send_type_id":null,"abstract":null,"description":null,"verify_type":2,"next_verify_user":1001,"next_stop_verify_user":null,"next_cancel_verify_user":null,"verify_at":null,"stop_at":null,"cancel_at":null,"refuse_description":null,"is_resubmitted":false,"is_done":false,"number":"0","amount":"0","created_by":5064,"stop_description":null,"extra":"{\"payment_collection_remind_ahead\":\"1 day\",\"salesContractPaymentCollectionRemindReceivers\":[\"5449\"],\"salesContractPaymentCollectionRemindDates\":null}","outbound_status":false,"is_used":false,"is_cancel":false,"is_settle":false,"is_old":false,"created_at":"2025-09-10 17:23:46","updated_at":"2025-09-10 17:23:46"}";s:11:"description";s:105:"{"d1":"\u59da\u96ea\u7eaf","d2":"\u521b\u5efa\u4e86","d3":"\u9500\u552e\u8ba2\u5355\u7533\u8bf7","d4":[]}";s:10:"created_by";i:5064;s:10:"created_at";s:19:"2025-09-10 17:23:46";s:9:"is_delete";N;}', '', 5064, '114.246.239.150')

17:23:46.4310.3 msSELECTSELECT * FROM "a57be577deb434"."tbl_project_product_rels" WHERE "project_id"=3878

17:23:46.4320.7 msUPDATEUPDATE "a57be577deb434"."tbl_erp_sales_orders" SET "amount"='444' WHERE "id"=1582

17:23:46.4330.7 msINSERTINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\ErpSalesOrders', 1582, 'a:1:{s:6:"amount";s:3:"444";}', '', 5064, '114.246.239.150')

17:23:46.4331.8 msSELECTSELECT * FROM "a57be577deb434"."tbl_erp_sales_order_products" WHERE "erp_sales_order_id"=1582

17:23:46.4350.7 msUPDATEUPDATE "a57be577deb434"."tbl_erp_sales_orders" SET "outbound_status"=TRUE, "is_used"=FALSE WHERE "id"=1582

17:23:46.4360.7 msINSERTINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\ErpSalesOrders', 1582, 'a:0:{}', '', 5064, '114.246.239.150')

17:23:46.4370.2 msSELECTSELECT * FROM "a57be577deb434"."tbl_sales_contracts" WHERE 0=1

17:23:46.4381.0 msINSERTINSERT INTO "global"."tbl_api_log" ("code", "schema", "user_id", "device_type", "url", "request", "response", "php_error", "time") VALUES (200, 'a57be577deb434', 5064, 5, 'vue/project/save-edit', '{"Projects":{"id":"3878","payment_collection_remind_ahead":"1 day","salesContractPaymentCollectionRemindReceivers":["5449"],"salesContractPaymentCollectionRemindDates":"","client_name":"\u4e2d\u56fd\u4e2d\u7164\u80fd\u6e90\u96c6\u56e2\u6709\u9650\u516c\u53f8","client_id":"3369","project_status":"3","project_progress":"3","profit":"44","profit_pct":"9.90","bargain_date":"2025-09-10","project_title":"\u201c\u4e24\u5730\u4e09\u4e2d\u5fc3\u201d\u707e\u5907\u4f53\u7cfb\u5316\u5efa\u8bbe","from_contact_name":"","from_contact":"","salesForecast":"181","purchaseType":"129","opportunityFrom":"","contract_type":"1","comment":"","projectRemindReceivers":["1005"],"project_product_version_id":"","projectProductRels":"","projectContactPoints":"","projectContactPointRels":"","projectUsedClient":{"used_client":"","budget":"","profit":"","profit_pct":"","projectUsedClientPaymentCollectionRemindReceivers":"","projectUsedClientPaymentCollectionRemindDates":"","remind_ahead":"","projectUsedClientPayments":"","projectUsedClientInvoices":""},"projectProductTypes":{"2":{"budget":"444","profit":"44","pct":"9.90"}},"projectArchitects":""},"web_access_token":"PttbaCnZaaLmhnM1e3oMXrL5SyzH60ao"}', '{"code":2000,"result":"","status":1,"msg":[{"name":"success","success":"\u5546\u673a\u5df2\u88ab\u6210\u529f\u4fee\u6539","error":""}],"mod":0}', FALSE, '2025-09-10 17:23:46') RETURNING "id"