Performance Profiling

Total processing time: 144 ms; Peak memory: 5.933 MB. Show Profiling Timeline

总计111条数据
TimeDurationCategoryInfo
  
11:45:38.71816.0 msyii\db\Command::queryselect 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_gift_verify_rels' and ns.nspname='a57be577deb434' order by fns.nspname, fc.relname, a.attnum
11:45:38.76013.1 msyii\db\Command::queryselect 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_gift_spent_products' and ns.nspname='a57be577deb434' order by fns.nspname, fc.relname, a.attnum
11:45:38.74013.0 msyii\db\Command::queryselect 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_gift_products' and ns.nspname='a57be577deb434' order by fns.nspname, fc.relname, a.attnum
11:45:38.7125.5 msyii\db\Command::querySELECT 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_gift_verify_rels' and d.nspname = 'a57be577deb434' ORDER BY a.attnum;
11:45:38.7083.0 msyii\db\Command::executeDELETE FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=20018) AND ("object_id"=133)
11:45:38.7372.9 msyii\db\Command::querySELECT 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_gift_products' and d.nspname = 'a57be577deb434' ORDER BY a.attnum;
11:45:38.7572.8 msyii\db\Command::querySELECT 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_gift_spent_products' and d.nspname = 'a57be577deb434' ORDER BY a.attnum;
11:45:38.7042.8 msyii\db\Command::queryINSERT INTO "a57be577deb434"."tbl_erp_sales_gifts" ("erp_send_type_id", "need_handler", "handler", "project_id", "wrote_date", "serial_no", "abstract", "description", "erp_store_id", "erp_sales_order_id", "client_id", "supplier_id", "created_by", "created_at", "verify_type", "status", "is_resubmitted", "outbound_status") VALUES (NULL, TRUE, 5300, NULL, '2026-07-15', 'ZSD-20260715-00001', NULL, '2. 采购入库单>关联列表页追加产品出库的单据关联:拆装单、报损单、组装单、调拨单、销售出库单;及时了解产品的出库情况', 1, NULL, 3351, NULL, 1001, 'now()', 2, 1, FALSE, FALSE) RETURNING "id"
11:45:38.7352.0 msyii\db\Command::executeINSERT INTO "a57be577deb434"."tbl_erp_sales_gift_verify_rels" ("erp_sales_gift_id", "user_id", "status") VALUES (133, 1001, 0)
11:45:38.7731.7 msyii\db\Command::queryINSERT INTO "a57be577deb434"."tbl_erp_sales_gift_spent_products" ("erp_sales_gift_id", "erp_sales_gift_product_id", "erp_inventory_product_id", "product_id", "number", "amount", "total_amount") VALUES (133, 162, 545, 2261, '1', '0', '0') RETURNING "id"
11:45:38.7541.5 msyii\db\Command::queryINSERT INTO "a57be577deb434"."tbl_erp_sales_gift_products" ("erp_sales_gift_id", "erp_store_id", "product_id", "number", "amount", "total_amount", "description", "hardware_from", "hardware_to", "software_from", "software_to", "maintenance_from", "maintenance_to") VALUES (133, 1, 2261, '1', '0', '0', '', NULL, NULL, NULL, NULL, NULL, NULL) RETURNING "id"
11:45:38.6971.4 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_sales_gifts" WHERE ("created_at" >= '2026-07-15 00:00:00') AND ("created_at" <= '2026-07-15 23:59:59') AND ("serial_no" ILIKE '%ZSD-20260715-%') AND (LENGTH(serial_no) = 18) ORDER BY "serial_no" DESC
11:45:38.8211.2 msyii\db\Command::queryINSERT INTO "global"."tbl_api_log" ("code", "schema", "user_id", "device_type", "url", "request", "response", "php_error", "time", "duration") VALUES (200, 'a57be577deb434', 1001, 5, 'vue/erp-sales-gift/save-new', '{"ErpSalesGifts":{"id":"","auto_id":"3351","auto_name":"\u4e2d\u56fd\u8239\u8236\u96c6\u56e2\u98ce\u7535\u53d1\u5c55\u6709\u9650\u516c\u53f8\uff08\u8fc7\u5355\uff09","auto_type":"client","erp_send_type_id":"","need_handler":"1","handler":"5300","project_id":"","wrote_date":"2026-07-15","serial_no":"ZSD-20260715-00001","erpSalesGiftVerifyRels":["1001"],"abstract":"","description":"2. \u91c7\u8d2d\u5165\u5e93\u5355>\u5173\u8054\u5217\u8868\u9875\u8ffd\u52a0\u4ea7\u54c1\u51fa\u5e93\u7684\u5355\u636e\u5173\u8054\uff1a\u62c6\u88c5\u5355\u3001\u62a5\u635f\u5355\u3001\u7ec4\u88c5\u5355\u3001\u8c03\u62e8\u5355\u3001\u9500\u552e\u51fa\u5e93\u5355\uff1b\u53ca\u65f6\u4e86\u89e3\u4ea7\u54c1\u7684\u51fa\u5e93\u60c5\u51b5","erp_store_id":"1","erp_store_name":"\u62d3\u5b9e\u4ed3\u5e93","erp_sales_order_id":"","client_id":"3351","client_name":"\u4e2d\u56fd\u8239\u8236\u96c6\u56e2\u98ce\u7535\u53d1\u5c55\u6709\u9650\u516c\u53f8\uff08\u8fc7\u5355\uff09","supplier_id":"","supplier_name":"","erpSalesGiftProducts":{"new":[{"product_id":"2261","number":"1","amount":"0","total_amount":"0","description":"","hardware_from":"","software_from":"","maintenance_from":"","hardware_to":"","software_to":"","maintenance_to":"","erp_store_id":"1","is_check":"0","erpSalesGiftSpentProducts":[{"erp_inventory_product_id":"545","number":"1"}]}]},"files":""},"web_access_token":"wDahkMIsEuHhAvKCnlYJe0vzWaI3UM9g"}', '{"code":2000,"result":{"id":133},"status":1,"msg":[{"name":"success","success":"\u65b0\u8d60\u9001\u5355\u5df2\u521b\u5efa\u6210\u529f","error":""}],"mod":0,"ip":"114.244.130.61","ua":"Mozilla\/5.0 (Macintosh; Intel Mac OS X 10.15; rv:152.0) Gecko\/20100101 Firefox\/152.0"}', FALSE, '2026-07-15 11:45:38', 138082816) RETURNING "id"
11:45:38.6870.7 msyii\db\Command::querySELECT * FROM "global"."vw_user_login" WHERE "id"=1001
11:45:38.6850.7 msyii\db\Command::querySELECT * FROM "global"."vw_user_login" WHERE "id"=1001
11:45:38.7770.6 msyii\db\Command::executeUPDATE "a57be577deb434"."tbl_erp_sales_gifts" SET "amount"='0', "number"='1', "next_verify_user"=1001 WHERE "id"=133
11:45:38.7920.6 msyii\db\Command::executeINSERT INTO "a57be577deb434"."tbl_erp_inventory_product_spents" ("erp_sales_gift_id", "wrote_date", "erp_sales_gift_spent_product_id", "erp_inventory_product_id", "outbound", "amount", "total_amount", "sales_gift_outbound", "actual_amount", "actual_total_amount") VALUES (133, '2026-07-15', 198, 545, '1', '0', '0', '1', '500', '500')
11:45:38.8000.5 msyii\db\Command::executeUPDATE "a57be577deb434"."tbl_erp_purchase_inbounds" SET "is_used"=TRUE WHERE "id"=219
11:45:38.8110.5 msyii\db\Command::executeUPDATE "a57be577deb434"."tbl_erp_purchase_inbounds" SET "is_used"=TRUE WHERE "id"=219
11:45:38.7990.5 msyii\db\Command::executeUPDATE "a57be577deb434"."tbl_erp_purchase_inbound_products" SET "inventory"='94', "sales_outbound"='0', "sales_gift_outbound"='1' WHERE "id"=441
11:45:38.7970.5 msyii\db\Command::executeUPDATE "a57be577deb434"."tbl_erp_inventory_products" SET "outbound"='5', "inventory"='94', "sales_outbound"='0', "sales_gift_outbound"='1' WHERE "id"=545
11:45:38.8100.5 msyii\db\Command::executeUPDATE "a57be577deb434"."tbl_erp_purchase_inbound_products" SET "inventory"='94', "sales_outbound"='0' WHERE "id"=441
11:45:38.6890.5 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001
11:45:38.8170.5 msyii\db\Command::queryINSERT INTO "a57be577deb434"."tbl_object_change_logs" ("act", "attribute", "object_id", "object_type", "created_by", "created_at", "new_value", "old_value", "description") VALUES (1, 'create', 133, 20011, 1001, '2026-07-15 11:45:38', '{"id":133,"serial_no":"ZSD-20260715-00001","from_date":null,"wrote_date":"2026-07-15","handler":5300,"erp_sales_order_id":null,"supplier_id":null,"client_id":3351,"project_id":null,"erp_store_id":1,"status":1,"erp_send_type_id":null,"abstract":null,"description":"2. \u91c7\u8d2d\u5165\u5e93\u5355&gt;\u5173\u8054\u5217\u8868\u9875\u8ffd\u52a0\u4ea7\u54c1\u51fa\u5e93\u7684\u5355\u636e\u5173\u8054\uff1a\u62c6\u88c5\u5355\u3001\u62a5\u635f\u5355\u3001\u7ec4\u88c5\u5355\u3001\u8c03\u62e8\u5355\u3001\u9500\u552e\u51fa\u5e93\u5355\uff1b\u53ca\u65f6\u4e86\u89e3\u4ea7\u54c1\u7684\u51fa\u5e93\u60c5\u51b5","verify_type":2,"next_verify_user":1001,"next_stop_verify_user":null,"verify_at":null,"stop_at":null,"refuse_description":null,"is_resubmitted":false,"number":"1","amount":"0","created_by":1001,"stop_description":null,"outbound_status":false,"is_settle":false,"created_at":"2026-07-15 11:45:38","updated_at":"2026-07-15 11:45:38","print_times":null,"is_sales_order_ready":false,"need_handler":true}', '{"id":133,"serial_no":"ZSD-20260715-00001","from_date":null,"wrote_date":"2026-07-15","handler":5300,"erp_sales_order_id":null,"supplier_id":null,"client_id":3351,"project_id":null,"erp_store_id":1,"status":1,"erp_send_type_id":null,"abstract":null,"description":"2. \u91c7\u8d2d\u5165\u5e93\u5355&gt;\u5173\u8054\u5217\u8868\u9875\u8ffd\u52a0\u4ea7\u54c1\u51fa\u5e93\u7684\u5355\u636e\u5173\u8054\uff1a\u62c6\u88c5\u5355\u3001\u62a5\u635f\u5355\u3001\u7ec4\u88c5\u5355\u3001\u8c03\u62e8\u5355\u3001\u9500\u552e\u51fa\u5e93\u5355\uff1b\u53ca\u65f6\u4e86\u89e3\u4ea7\u54c1\u7684\u51fa\u5e93\u60c5\u51b5","verify_type":2,"next_verify_user":1001,"next_stop_verify_user":null,"verify_at":null,"stop_at":null,"refuse_description":null,"is_resubmitted":false,"number":"1","amount":"0","created_by":1001,"stop_description":null,"outbound_status":false,"is_settle":false,"created_at":"2026-07-15 11:45:38","updated_at":"2026-07-15 11:45:38","print_times":null,"is_sales_order_ready":false,"need_handler":true}', '{"d1":"\u5218\u4eba\u8bda","d2":"\u521b\u5efa\u4e86","d3":"\u8d60\u9001\u5355\u7533\u8bf7","d4":[]}') RETURNING "id"
11:45:38.8040.5 msyii\db\Command::executeUPDATE "a57be577deb434"."tbl_erp_inventory_products" SET "actual_total_amount"='47000' WHERE "id"=545
11:45:38.7010.4 msyii\db\Command::querySELECT sum(inventory) as inventory FROM "a57be577deb434"."tbl_erp_inventory_products" WHERE ("product_id"='2261') AND ("erp_store_id"='1')
11:45:38.8180.4 msyii\db\Command::executeINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\ObjectChangeLogs', 643370, 'a:13:{s:2:"id";i:643370;s:9:"object_id";i:133;s:11:"object_type";i:20011;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:1001:"{"id":133,"serial_no":"ZSD-20260715-00001","from_date":null,"wrote_date":"2026-07-15","handler":5300,"erp_sales_order_id":null,"supplier_id":null,"client_id":3351,"project_id":null,"erp_store_id":1,"status":1,"erp_send_type_id":null,"abstract":null,"description":"2. \u91c7\u8d2d\u5165\u5e93\u5355&gt;\u5173\u8054\u5217\u8868\u9875\u8ffd\u52a0\u4ea7\u54c1\u51fa\u5e93\u7684\u5355\u636e\u5173\u8054\uff1a\u62c6\u88c5\u5355\u3001\u62a5\u635f\u5355\u3001\u7ec4\u88c5\u5355\u3001\u8c03\u62e8\u5355\u3001\u9500\u552e\u51fa\u5e93\u5355\uff1b\u53ca\u65f6\u4e86\u89e3\u4ea7\u54c1\u7684\u51fa\u5e93\u60c5\u51b5","verify_type":2,"next_verify_user":1001,"next_stop_verify_user":null,"verify_at":null,"stop_at":null,"refuse_description":null,"is_resubmitted":false,"number":"1","amount":"0","created_by":1001,"stop_description":null,"outbound_status":false,"is_settle":false,"created_at":"2026-07-15 11:45:38","updated_at":"2026-07-15 11:45:38","print_times":null,"is_sales_order_ready":false,"need_handler":true}";s:9:"new_value";s:1001:"{"id":133,"serial_no":"ZSD-20260715-00001","from_date":null,"wrote_date":"2026-07-15","handler":5300,"erp_sales_order_id":null,"supplier_id":null,"client_id":3351,"project_id":null,"erp_store_id":1,"status":1,"erp_send_type_id":null,"abstract":null,"description":"2. \u91c7\u8d2d\u5165\u5e93\u5355&gt;\u5173\u8054\u5217\u8868\u9875\u8ffd\u52a0\u4ea7\u54c1\u51fa\u5e93\u7684\u5355\u636e\u5173\u8054\uff1a\u62c6\u88c5\u5355\u3001\u62a5\u635f\u5355\u3001\u7ec4\u88c5\u5355\u3001\u8c03\u62e8\u5355\u3001\u9500\u552e\u51fa\u5e93\u5355\uff1b\u53ca\u65f6\u4e86\u89e3\u4ea7\u54c1\u7684\u51fa\u5e93\u60c5\u51b5","verify_type":2,"next_verify_user":1001,"next_stop_verify_user":null,"verify_at":null,"stop_at":null,"refuse_description":null,"is_resubmitted":false,"number":"1","amount":"0","created_by":1001,"stop_description":null,"outbound_status":false,"is_settle":false,"created_at":"2026-07-15 11:45:38","updated_at":"2026-07-15 11:45:38","print_times":null,"is_sales_order_ready":false,"need_handler":true}";s:11:"description";s:99:"{"d1":"\u5218\u4eba\u8bda","d2":"\u521b\u5efa\u4e86","d3":"\u8d60\u9001\u5355\u7533\u8bf7","d4":[]}";s:10:"created_by";i:1001;s:10:"created_at";s:19:"2026-07-15 11:45:38";s:9:"is_delete";N;}', '', 1001, '114.244.130.61')
11:45:38.8090.4 msyii\db\Command::executeUPDATE "a57be577deb434"."tbl_erp_inventory_products" SET "inventory"='94', "sales_outbound"='0' WHERE "id"=545
11:45:38.7030.4 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_inventory_products" WHERE "id"=545
11:45:38.8140.4 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001
11:45:38.8160.4 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001
11:45:38.6990.3 msyii\db\Command::querySELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_erp_sales_gifts" WHERE "serial_no"='ZSD-20260715-00001')
11:45:38.7900.3 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_sales_gift_id"=133
11:45:38.7780.3 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_inventory_products" WHERE "id"='545'
11:45:38.7750.3 msyii\db\Command::executeINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\ErpSalesGiftSpentProducts', 198, 'a:12:{s:2:"id";i:198;s:17:"erp_sales_gift_id";i:133;s:25:"erp_sales_gift_product_id";i:162;s:24:"erp_inventory_product_id";s:3:"545";s:10:"product_id";s:4:"2261";s:11:"description";N;s:6:"number";s:1:"1";s:6:"amount";s:1:"0";s:12:"total_amount";d:0;s:13:"cancel_number";N;s:13:"cancel_amount";N;s:19:"cancel_total_amount";N;}', '', 1001, '114.244.130.61')
11:45:38.7080.3 msyii\db\Command::executeINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\ErpSalesGifts', 133, 'a:32:{s:2:"id";i:133;s:9:"serial_no";s:18:"ZSD-20260715-00001";s:9:"from_date";N;s:10:"wrote_date";s:10:"2026-07-15";s:7:"handler";s:4:"5300";s:18:"erp_sales_order_id";s:0:"";s:11:"supplier_id";s:0:"";s:9:"client_id";s:4:"3351";s:10:"project_id";s:0:"";s:12:"erp_store_id";s:1:"1";s:6:"status";i:1;s:16:"erp_send_type_id";s:0:"";s:8:"abstract";N;s:11:"description";s:172:"2. 采购入库单&gt;关联列表页追加产品出库的单据关联:拆装单、报损单、组装单、调拨单、销售出库单;及时了解产品的出库情况";s:11:"verify_type";s:1:"2";s:16:"next_verify_user";N;s:21:"next_stop_verify_user";N;s:9:"verify_at";N;s:7:"stop_at";N;s:18:"refuse_description";N;s:14:"is_resubmitted";b:0;s:6:"number";N;s:6:"amount";N;s:10:"created_by";i:1001;s:16:"stop_description";N;s:15:"outbound_status";b:0;s:9:"is_settle";N;s:10:"created_at";s:19:"1970-01-01 08:00:00";s:10:"updated_at";N;s:11:"print_times";N;s:20:"is_sales_order_ready";N;s:12:"need_handler";s:1:"1";}', '', 1001, '114.244.130.61')
11:45:38.7790.3 msyii\db\Command::querySELECT SUM(outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=545
11:45:38.6990.3 msyii\db\Command::querySELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"='5300')
11:45:38.7760.3 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_sales_gift_verify_rels" WHERE ("status"=0) AND ("erp_sales_gift_id"=133) ORDER BY "id"
11:45:38.7860.3 msyii\db\Command::executeUPDATE "a57be577deb434"."tbl_erp_purchase_inbounds" SET "is_used"=TRUE WHERE "id"=219
11:45:38.7820.3 msyii\db\Command::executeUPDATE "a57be577deb434"."tbl_erp_inventory_products" SET "inventory"='95', "sales_outbound"='0', "sales_gift_outbound"='0' WHERE "id"=545
11:45:38.7890.3 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_sales_gifts" WHERE "id"=133
11:45:38.7000.3 msyii\db\Command::querySELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"='3351')
11:45:38.7840.3 msyii\db\Command::executeUPDATE "a57be577deb434"."tbl_erp_purchase_inbound_products" SET "inventory"='95', "sales_outbound"='0', "sales_gift_outbound"='0' WHERE "id"=441
11:45:38.7830.3 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_purchase_inbound_products" WHERE "id"=441
11:45:38.7930.3 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_inventory_products" WHERE "id"=545
11:45:38.7770.3 msyii\db\Command::executeINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\ErpSalesGifts', 133, 'a:1:{s:6:"amount";i:0;}', '', 1001, '114.244.130.61')
11:45:38.7910.3 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_inventory_products" WHERE "id"=545
11:45:38.6850.3 msyii\db\Connection::openOpening DB connection: pgsql:host=postgresql.server.local;port=5432;dbname=beta
11:45:38.7810.3 msyii\db\Command::querySELECT SUM(disassemble_spent_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=545
11:45:38.7560.3 msyii\db\Command::executeINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\ErpSalesGiftProducts', 162, 'a:15:{s:2:"id";i:162;s:17:"erp_sales_gift_id";i:133;s:12:"erp_store_id";s:1:"1";s:10:"product_id";s:4:"2261";s:11:"description";s:0:"";s:8:"outbound";N;s:6:"number";s:1:"1";s:6:"amount";s:1:"0";s:12:"total_amount";s:1:"0";s:13:"hardware_from";s:0:"";s:13:"software_from";s:0:"";s:16:"maintenance_from";s:0:"";s:11:"hardware_to";s:0:"";s:11:"software_to";s:0:"";s:14:"maintenance_to";s:0:"";}', '', 1001, '114.244.130.61')
11:45:38.8060.3 msyii\db\Command::querySELECT SUM(outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=545
11:45:38.7800.3 msyii\db\Command::querySELECT SUM(lost_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=545
11:45:38.7780.3 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_sales_gifts" WHERE "id"=133
11:45:38.7020.3 msyii\db\Command::querySELECT "name" FROM "a57be577deb434"."tbl_products" WHERE "id"='2261'
11:45:38.7930.3 msyii\db\Command::executeUPDATE "a57be577deb434"."tbl_products" SET "updated_at"='now()', "in_out_at"='now()' WHERE "id"=2261
11:45:38.7940.3 msyii\db\Command::querySELECT SUM(lost_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=545
11:45:38.8050.3 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_inventory_products" WHERE "id"='545'
11:45:38.8150.3 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_sales_gift_verify_rels" WHERE ("status"=0) AND ("erp_sales_gift_id"=133) ORDER BY "id"
11:45:38.7010.3 msyii\db\Command::querySELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001)
11:45:38.7960.3 msyii\db\Command::querySELECT SUM(transfer_spent_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=545
11:45:38.8070.3 msyii\db\Command::querySELECT SUM(transfer_spent_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=545
11:45:38.8150.3 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_sales_gift_verify_rels" WHERE ("status"=0) AND ("erp_sales_gift_id"=133) ORDER BY "id"
11:45:38.7980.3 msyii\db\Command::executeINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\ErpInventoryProducts', 545, 'a:2:{s:8:"outbound";s:1:"5";s:9:"inventory";d:94;}', '', 1001, '114.244.130.61')
11:45:38.7810.3 msyii\db\Command::querySELECT SUM(sales_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=545
11:45:38.8070.3 msyii\db\Command::querySELECT SUM(build_spent_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=545
11:45:38.7810.3 msyii\db\Command::querySELECT SUM(transfer_spent_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=545
11:45:38.7940.3 msyii\db\Command::querySELECT SUM(outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=545
11:45:38.7960.3 msyii\db\Command::querySELECT SUM(sales_gift_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=545
11:45:38.8050.3 msyii\db\Command::executeINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\ErpInventoryProducts', 545, 'a:1:{s:19:"actual_total_amount";d:47000;}', '', 1001, '114.244.130.61')
11:45:38.7800.3 msyii\db\Command::querySELECT SUM(build_spent_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=545
11:45:38.7950.3 msyii\db\Command::querySELECT SUM(build_spent_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=545
11:45:38.7990.3 msyii\db\Command::executeINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\ErpPurchaseInboundProducts', 441, 'a:1:{s:9:"inventory";d:94;}', '', 1001, '114.244.130.61')
11:45:38.8040.3 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_settings" WHERE "setting_key"='erp_decimal_point'
11:45:38.8090.3 msyii\db\Command::executeINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\ErpInventoryProducts', 545, 'a:0:{}', '', 1001, '114.244.130.61')
11:45:38.7900.3 msyii\db\Command::executeDELETE FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_sales_gift_id"=133
11:45:38.8060.3 msyii\db\Command::querySELECT SUM(lost_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=545
11:45:38.8070.3 msyii\db\Command::querySELECT SUM(disassemble_spent_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=545
11:45:38.8030.3 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_settings" WHERE "setting_key"='erp_cost_type'
11:45:38.7950.3 msyii\db\Command::querySELECT SUM(disassemble_spent_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=545
11:45:38.7900.3 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_sales_gift_spent_products" WHERE "erp_sales_gift_id"=133
11:45:38.7820.3 msyii\db\Command::querySELECT SUM(sales_gift_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=545
11:45:38.8080.3 msyii\db\Command::querySELECT SUM(sales_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=545
11:45:38.8080.3 msyii\db\Command::querySELECT SUM(sales_gift_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=545
11:45:38.7960.3 msyii\db\Command::querySELECT SUM(sales_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=545
11:45:38.8020.3 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_inventory_transfer_products" WHERE 0=1
11:45:38.7980.3 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_purchase_inbound_products" WHERE "id"=441
11:45:38.7020.3 msyii\db\Command::querySELECT "title" FROM "a57be577deb434"."tbl_erp_stores" WHERE "id"='1'
11:45:38.7830.3 msyii\db\Command::executeINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\ErpInventoryProducts', 545, 'a:0:{}', '', 1001, '114.244.130.61')
11:45:38.8100.2 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_purchase_inbound_products" WHERE "id"=441
11:45:38.8110.2 msyii\db\Command::executeINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\ErpPurchaseInboundProducts', 441, 'a:0:{}', '', 1001, '114.244.130.61')
11:45:38.7850.2 msyii\db\Command::executeINSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\ErpPurchaseInboundProducts', 441, 'a:0:{}', '', 1001, '114.244.130.61')
11:45:38.7890.2 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_inventory_transfer_products" WHERE 0=1
11:45:38.7120.2 msyii\db\Command::executeDELETE FROM "a57be577deb434"."tbl_erp_sales_gift_verify_rels" WHERE "erp_sales_gift_id"=133
11:45:38.7880.2 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_purchase_gift_products" WHERE 0=1
11:45:38.7000.2 msyii\db\Command::querySELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_erp_stores" WHERE "id"='1')
11:45:38.7860.2 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_inventory_start_products" WHERE 0=1
11:45:38.7880.2 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_inventory_overflow_products" WHERE 0=1
11:45:38.7870.2 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_inventory_build_products" WHERE 0=1
11:45:38.8000.2 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_inventory_start_products" WHERE 0=1
11:45:38.7870.2 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_inventory_disassemble_products" WHERE 0=1
11:45:38.8020.2 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_purchase_gift_products" WHERE 0=1
11:45:38.8130.2 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_inventory_overflow_products" WHERE 0=1
11:45:38.8120.2 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_inventory_build_products" WHERE 0=1
11:45:38.8120.2 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_inventory_start_products" WHERE 0=1
11:45:38.8140.2 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_inventory_transfer_products" WHERE 0=1
11:45:38.8020.2 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_inventory_overflow_products" WHERE 0=1
11:45:38.8130.2 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_purchase_gift_products" WHERE 0=1
11:45:38.8010.2 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_inventory_build_products" WHERE 0=1
11:45:38.8130.2 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_inventory_disassemble_products" WHERE 0=1
11:45:38.8010.2 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_erp_inventory_disassemble_products" WHERE 0=1