17:23:46.158 | 2.5 ms | SELECT | SELECT * FROM "global"."vw_user_login" WHERE "id"=5064 |
17:23:46.161 | 1.6 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=5064 |
17:23:46.164 | 0.8 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"='3878' |
17:23:46.167 | 0.4 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_term_taxonomy_relationships" WHERE "object_id"=3878 |
17:23:46.167 | 0.9 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_term_taxonomies" WHERE ("term_id"=13) AND ("id" IN (198, 202, 324, 356)) ORDER BY "sort" |
17:23:46.169 | 0.7 ms | SELECT | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_projects" WHERE ("client_id"='3369') AND ("project_title"='“两地三中心”灾备体系化建设') AND ("id" != 3878)) |
17:23:46.170 | 0.3 ms | SELECT | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_contract_types" WHERE "id"='1') |
17:23:46.170 | 0.6 ms | SELECT | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"='3369') |
17:23:46.171 | 0.3 ms | SELECT | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_project_progresses" WHERE "id"='3') |
17:23:46.171 | 0.2 ms | SELECT | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_project_statuses" WHERE "id"='3') |
17:23:46.172 | 0.2 ms | SELECT | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=5449) |
17:23:46.172 | 1.0 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_erp_sales_orders" WHERE ("status" IN (2, 5)) AND ("project_id"=3878) |
17:23:46.173 | 0.3 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=5064 |
17:23:46.174 | 0.5 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_project_product_types" WHERE "project_id"=3878 |
17:23:46.175 | 0.3 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_product_types" WHERE "id"=2 |
17:23:46.176 | 0.3 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=5064 |
17:23:46.176 | 4.7 ms | SELECT | SELECT
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.181 | 3.2 ms | SELECT | select
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.185 | 7.8 ms | INSERT | INSERT 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.193 | 0.6 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"='3369' |
17:23:46.194 | 0.3 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=5064 |
17:23:46.195 | 6.3 ms | INSERT | INSERT 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.202 | 0.8 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_sales_contracts" WHERE "from_project"=3878 |
17:23:46.202 | 0.3 ms | DELETE | DELETE FROM "a57be577deb434"."tbl_project_product_types" WHERE "project_id"=3878 |
17:23:46.203 | 0.2 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_product_types" WHERE "id"=2 |
17:23:46.203 | 4.3 ms | INSERT | INSERT 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.208 | 0.5 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_project_product_rels" WHERE "project_id"=3878 |
17:23:46.208 | 0.2 ms | SELECT | SELECT "id" FROM "a57be577deb434"."tbl_project_product_rels" WHERE "project_id"=3878 |
17:23:46.209 | 0.1 ms | DELETE | DELETE FROM "a57be577deb434"."tbl_project_product_rels" WHERE 0=1 |
17:23:46.209 | 0.4 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"=3878 |
17:23:46.209 | 0.2 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_project_product_rels" WHERE "project_id"=3878 |
17:23:46.237 | 5.5 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_project_change_logs" WHERE ("project_id"=3878) AND ("end_at" IS NULL) ORDER BY "id" DESC LIMIT 1 |
17:23:46.243 | 5.2 ms | SELECT | SELECT
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.248 | 4.3 ms | SELECT | select
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.253 | 7.4 ms | INSERT | INSERT 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.261 | 0.3 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=3369 |
17:23:46.261 | 0.2 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"=3878 |
17:23:46.262 | 0.3 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_project_product_rels" WHERE "project_id"=3878 |
17:23:46.264 | 8.1 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_sales_order_items" WHERE "project_id"=3878 |
17:23:46.272 | 1.3 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_project_change_logs" WHERE ("project_id"=3878) AND ("end_at" IS NULL) ORDER BY "id" DESC LIMIT 1 |
17:23:46.274 | 0.8 ms | INSERT | INSERT 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.275 | 0.3 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=3369 |
17:23:46.275 | 0.2 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"=3878 |
17:23:46.276 | 0.3 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_project_contact_points" WHERE "project_id"=3878 |
17:23:46.276 | 0.1 ms | DELETE | DELETE FROM "a57be577deb434"."tbl_project_contact_points" WHERE "project_id"=3878 |
17:23:46.276 | 0.3 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_project_contact_point_rels" WHERE "project_id"=3878 |
17:23:46.277 | 0.1 ms | SELECT | SELECT "id" FROM "a57be577deb434"."tbl_project_contact_point_rels" WHERE "project_id"=3878 |
17:23:46.277 | 0.1 ms | DELETE | DELETE FROM "a57be577deb434"."tbl_project_contact_point_rels" WHERE 0=1 |
17:23:46.277 | 0.3 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=5064 |
17:23:46.278 | 0.2 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_contract_types" WHERE "id"='1' |
17:23:46.278 | 0.9 ms | INSERT | INSERT 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.279 | 0.3 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=5064 |
17:23:46.280 | 0.2 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_contract_types" WHERE "id"='1' |
17:23:46.280 | 0.9 ms | INSERT | INSERT 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.282 | 1.7 ms | UPDATE | UPDATE "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.284 | 1.2 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_project_change_logs" WHERE ("project_id"=3878) AND ("end_at" IS NULL) ORDER BY "id" DESC LIMIT 1 |
17:23:46.285 | 1.3 ms | UPDATE | UPDATE "a57be577deb434"."tbl_project_change_logs" SET "end_at"='now()' WHERE "id"=16365 |
17:23:46.287 | 0.7 ms | INSERT | INSERT 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.288 | 3.4 ms | INSERT | INSERT 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.291 | 0.8 ms | INSERT | INSERT 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.292 | 0.9 ms | INSERT | INSERT 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.293 | 0.3 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"='3369' |
17:23:46.293 | 0.3 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=5064 |
17:23:46.294 | 0.4 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_project_architects" WHERE "project_id"=3878 |
17:23:46.294 | 0.2 ms | DELETE | DELETE FROM "a57be577deb434"."tbl_project_architects" WHERE "project_id"=3878 |
17:23:46.295 | 0.2 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_term_taxonomy_relationships" WHERE "object_id"=3878 |
17:23:46.295 | 0.2 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_term_taxonomies" WHERE ("term_id"=9) AND ("id" IN (198, 202, 324, 356)) ORDER BY "sort" |
17:23:46.296 | 0.2 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_term_taxonomies" WHERE "id"='129' |
17:23:46.296 | 0.3 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=5064 |
17:23:46.296 | 0.8 ms | INSERT | INSERT 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.297 | 0.3 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=5064 |
17:23:46.298 | 0.8 ms | INSERT | INSERT 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.299 | 0.2 ms | DELETE | DELETE FROM "a57be577deb434"."tbl_term_taxonomy_relationships" WHERE ("object_id"=3878) AND ("term_id"=9) |
17:23:46.299 | 5.2 ms | INSERT | INSERT INTO "a57be577deb434"."tbl_term_taxonomy_relationships" ("term_id", "taxonomy_id", "object_id") VALUES (9, 129, 3878) |
17:23:46.304 | 0.2 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_term_taxonomies" WHERE "id"='181' |
17:23:46.305 | 0.3 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=5064 |
17:23:46.305 | 0.7 ms | INSERT | INSERT 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.306 | 0.3 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=5064 |
17:23:46.306 | 0.7 ms | INSERT | INSERT 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.307 | 0.1 ms | DELETE | DELETE FROM "a57be577deb434"."tbl_term_taxonomy_relationships" WHERE ("object_id"=3878) AND ("term_id"=13) |
17:23:46.307 | 0.8 ms | INSERT | INSERT INTO "a57be577deb434"."tbl_term_taxonomy_relationships" ("term_id", "taxonomy_id", "object_id") VALUES (13, 181, 3878) |
17:23:46.308 | 0.3 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_project_remind_receivers" WHERE "project_id"=3878 |
17:23:46.309 | 0.7 ms | DELETE | DELETE FROM "a57be577deb434"."tbl_project_remind_receivers" WHERE "project_id"=3878 |
17:23:46.310 | 3.3 ms | INSERT | INSERT INTO "a57be577deb434"."tbl_project_remind_receivers" ("project_id", "user_id") VALUES (3878, 1005) RETURNING "id" |
17:23:46.313 | 0.8 ms | INSERT | INSERT 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.314 | 0.5 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_sales_contracts" WHERE "from_project"=3878 |
17:23:46.315 | 0.3 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_project_used_clients" WHERE "project_id"=3878 |
17:23:46.315 | 0.7 ms | UPDATE | UPDATE "a57be577deb434"."tbl_project_used_clients" SET "used_client"=NULL, "budget"=NULL, "profit"=NULL, "profit_pct"=NULL WHERE "id"=126 |
17:23:46.316 | 0.7 ms | INSERT | INSERT 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.317 | 0.9 ms | INSERT | INSERT 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.318 | 0.3 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_project_used_client_payment_collection_remind_receivers" WHERE "project_used_client_id"=126 |
17:23:46.318 | 0.1 ms | DELETE | DELETE FROM "a57be577deb434"."tbl_project_used_client_payment_collection_remind_receivers" WHERE "project_used_client_id"=126 |
17:23:46.319 | 0.3 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_project_used_client_payment_collection_remind_dates" WHERE "project_used_client_id"=126 |
17:23:46.319 | 0.1 ms | DELETE | DELETE FROM "a57be577deb434"."tbl_project_used_client_payment_collection_remind_dates" WHERE "project_used_client_id"=126 |
17:23:46.319 | 0.2 ms | SELECT | SELECT "id" FROM "a57be577deb434"."tbl_project_used_client_payments" WHERE "project_used_client_id"=126 |
17:23:46.320 | 0.1 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_project_used_client_payments" WHERE "project_used_client_id"=126 |
17:23:46.320 | 0.1 ms | DELETE | DELETE FROM "a57be577deb434"."tbl_project_used_client_payments" WHERE 0=1 |
17:23:46.320 | 0.2 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_project_used_clients" WHERE "id"=126 |
17:23:46.321 | 0.1 ms | UPDATE | UPDATE "a57be577deb434"."tbl_project_used_client_payments" SET "paid_amount"='0' WHERE "project_used_client_id"=126 |
17:23:46.321 | 0.2 ms | UPDATE | UPDATE "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.321 | 0.2 ms | SELECT | SELECT SUM(amount) FROM "a57be577deb434"."tbl_project_used_client_payment_collection_remind_dates" WHERE "project_used_client_id"=126 |
17:23:46.321 | 0.7 ms | INSERT | INSERT 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.322 | 0.4 ms | SELECT | SELECT * 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.323 | 0.3 ms | SELECT | SELECT "id" FROM "a57be577deb434"."tbl_project_used_client_invoices" WHERE "project_used_client_id"=126 |
17:23:46.323 | 0.1 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_project_used_client_invoices" WHERE "project_used_client_id"=126 |
17:23:46.323 | 0.1 ms | DELETE | DELETE FROM "a57be577deb434"."tbl_project_used_client_invoices" WHERE 0=1 |
17:23:46.324 | 0.3 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"='3369' |
17:23:46.325 | 1.1 ms | UPDATE | UPDATE "a57be577deb434"."tbl_clients" SET "updated_at"='now()' WHERE "id"=3369 |
17:23:46.327 | 17.8 ms | SELECT | SELECT * 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.345 | 5.4 ms | INSERT | INSERT 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.350 | 0.7 ms | INSERT | INSERT 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.351 | 0.8 ms | INSERT | INSERT 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.352 | 0.3 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=5064 |
17:23:46.353 | 0.8 ms | INSERT | INSERT 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.354 | 0.7 ms | INSERT | INSERT 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.355 | 0.3 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"='3369' |
17:23:46.355 | 0.3 ms | SELECT | SELECT 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.356 | 8.5 ms | SELECT | SELECT * 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.365 | 0.8 ms | INSERT | INSERT 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.366 | 0.7 ms | INSERT | INSERT 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.367 | 0.7 ms | INSERT | INSERT 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.380 | 0.5 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"=3878 |
17:23:46.381 | 0.5 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_erp_sales_orders" WHERE ("status" IN (2, 5)) AND ("project_id"=3878) |
17:23:46.382 | 0.8 ms | UPDATE | UPDATE "a57be577deb434"."tbl_projects" SET "is_verify"=TRUE WHERE "id"=3878 |
17:23:46.383 | 1.2 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_project_change_logs" WHERE ("project_id"=3878) AND ("end_at" IS NULL) ORDER BY "id" DESC LIMIT 1 |
17:23:46.385 | 0.7 ms | INSERT | INSERT 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.385 | 0.3 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=3369 |
17:23:46.386 | 0.5 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_sales_contracts" WHERE "from_project"=3878 |
17:23:46.387 | 3.2 ms | SELECT | SELECT * 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.390 | 3.3 ms | SELECT | SELECT
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.394 | 3.8 ms | SELECT | select
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.399 | 1.6 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_erp_verify_processes" WHERE "id"=6 |
17:23:46.400 | 0.4 ms | SELECT | SELECT "id" FROM "a57be577deb434"."tbl_users" WHERE ("id"='1001') AND ("user_status"='1') ORDER BY array_position(array[1001], id) |
17:23:46.401 | 5.6 ms | INSERT | INSERT 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.407 | 0.7 ms | INSERT | INSERT 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.408 | 0.2 ms | DELETE | DELETE FROM "a57be577deb434"."tbl_erp_sales_order_verify_rels" WHERE "erp_sales_order_id"=1582 |
17:23:46.408 | 2.4 ms | INSERT | INSERT INTO "a57be577deb434"."tbl_erp_sales_order_verify_rels" ("erp_sales_order_id", "user_id", "status") VALUES (1582, 1001, 0) |
17:23:46.411 | 0.2 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_erp_sales_order_verify_rels" WHERE ("status"=0) AND ("erp_sales_order_id"=1582) ORDER BY "id" |
17:23:46.411 | 0.9 ms | UPDATE | UPDATE "a57be577deb434"."tbl_erp_sales_orders" SET "amount"='0', "number"='0', "next_verify_user"=1001 WHERE "id"=1582 |
17:23:46.412 | 0.7 ms | INSERT | INSERT 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.413 | 0.3 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_erp_sales_orders" WHERE "id"=1582 |
17:23:46.413 | 0.3 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=5064 |
17:23:46.414 | 0.2 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_erp_sales_order_verify_rels" WHERE ("status"=0) AND ("erp_sales_order_id"=1582) ORDER BY "id" |
17:23:46.414 | 0.2 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_erp_sales_order_verify_rels" WHERE ("status"=0) AND ("erp_sales_order_id"=1582) ORDER BY "id" |
17:23:46.415 | 0.3 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_erp_sales_orders" WHERE "id"=1582 |
17:23:46.415 | 0.2 ms | SELECT | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=5064) |
17:23:46.416 | 3.3 ms | INSERT | INSERT 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.419 | 0.7 ms | INSERT | INSERT 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.420 | 4.2 ms | INSERT | INSERT INTO "a57be577deb434"."tbl_unread_comments" ("object_id", "object_type", "comment_id", "remind_user_id") VALUES (1582, '20007', 191167, 1001) |
17:23:46.424 | 0.2 ms | SELECT | SELECT "channel_id" FROM "global"."tbl_logins" WHERE ("id"=1001) AND ("id" != 5064) AND (channel_id IS NOT NULL) |
17:23:46.425 | 0.3 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=5064 |
17:23:46.427 | 0.4 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=3369 |
17:23:46.427 | 0.2 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"=3878 |
17:23:46.429 | 0.3 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=5064 |
17:23:46.429 | 0.7 ms | INSERT | INSERT 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.430 | 0.8 ms | INSERT | INSERT 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.431 | 0.3 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_project_product_rels" WHERE "project_id"=3878 |
17:23:46.432 | 0.7 ms | UPDATE | UPDATE "a57be577deb434"."tbl_erp_sales_orders" SET "amount"='444' WHERE "id"=1582 |
17:23:46.433 | 0.7 ms | INSERT | INSERT 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.433 | 1.8 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_erp_sales_order_products" WHERE "erp_sales_order_id"=1582 |
17:23:46.435 | 0.7 ms | UPDATE | UPDATE "a57be577deb434"."tbl_erp_sales_orders" SET "outbound_status"=TRUE, "is_used"=FALSE WHERE "id"=1582 |
17:23:46.436 | 0.7 ms | INSERT | INSERT 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.437 | 0.2 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_sales_contracts" WHERE 0=1 |
17:23:46.438 | 1.0 ms | INSERT | INSERT 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" |