Total processing time: 144 ms; Peak memory: 5.933 MB. Show Profiling Timeline
| Time | Duration | Category | Info |
|---|---|---|---|
| 11:45:38.718 | 16.0 ms | yii\db\Command::query | 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_gift_verify_rels' and ns.nspname='a57be577deb434' order by fns.nspname, fc.relname, a.attnum |
| 11:45:38.760 | 13.1 ms | yii\db\Command::query | 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_gift_spent_products' and ns.nspname='a57be577deb434' order by fns.nspname, fc.relname, a.attnum |
| 11:45:38.740 | 13.0 ms | yii\db\Command::query | 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_gift_products' and ns.nspname='a57be577deb434' order by fns.nspname, fc.relname, a.attnum |
| 11:45:38.712 | 5.5 ms | yii\db\Command::query | 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_gift_verify_rels' and d.nspname = 'a57be577deb434' ORDER BY a.attnum; |
| 11:45:38.708 | 3.0 ms | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=20018) AND ("object_id"=133) |
| 11:45:38.737 | 2.9 ms | yii\db\Command::query | 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_gift_products' and d.nspname = 'a57be577deb434' ORDER BY a.attnum; |
| 11:45:38.757 | 2.8 ms | yii\db\Command::query | 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_gift_spent_products' and d.nspname = 'a57be577deb434' ORDER BY a.attnum; |
| 11:45:38.704 | 2.8 ms | yii\db\Command::query | INSERT 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.735 | 2.0 ms | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_erp_sales_gift_verify_rels" ("erp_sales_gift_id", "user_id", "status") VALUES (133, 1001, 0) |
| 11:45:38.773 | 1.7 ms | yii\db\Command::query | INSERT 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.754 | 1.5 ms | yii\db\Command::query | INSERT 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.697 | 1.4 ms | yii\db\Command::query | SELECT * 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.821 | 1.2 ms | yii\db\Command::query | INSERT 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.687 | 0.7 ms | yii\db\Command::query | SELECT * FROM "global"."vw_user_login" WHERE "id"=1001 |
| 11:45:38.685 | 0.7 ms | yii\db\Command::query | SELECT * FROM "global"."vw_user_login" WHERE "id"=1001 |
| 11:45:38.777 | 0.6 ms | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_sales_gifts" SET "amount"='0', "number"='1', "next_verify_user"=1001 WHERE "id"=133 |
| 11:45:38.792 | 0.6 ms | yii\db\Command::execute | INSERT 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.800 | 0.5 ms | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_purchase_inbounds" SET "is_used"=TRUE WHERE "id"=219 |
| 11:45:38.811 | 0.5 ms | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_purchase_inbounds" SET "is_used"=TRUE WHERE "id"=219 |
| 11:45:38.799 | 0.5 ms | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_purchase_inbound_products" SET "inventory"='94', "sales_outbound"='0', "sales_gift_outbound"='1' WHERE "id"=441 |
| 11:45:38.797 | 0.5 ms | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_inventory_products" SET "outbound"='5', "inventory"='94', "sales_outbound"='0', "sales_gift_outbound"='1' WHERE "id"=545 |
| 11:45:38.810 | 0.5 ms | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_purchase_inbound_products" SET "inventory"='94', "sales_outbound"='0' WHERE "id"=441 |
| 11:45:38.689 | 0.5 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
| 11:45:38.817 | 0.5 ms | yii\db\Command::query | 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', 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>\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>\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.804 | 0.5 ms | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_inventory_products" SET "actual_total_amount"='47000' WHERE "id"=545 |
| 11:45:38.701 | 0.4 ms | yii\db\Command::query | SELECT sum(inventory) as inventory FROM "a57be577deb434"."tbl_erp_inventory_products" WHERE ("product_id"='2261') AND ("erp_store_id"='1') |
| 11:45:38.818 | 0.4 ms | yii\db\Command::execute | INSERT 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>\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>\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.809 | 0.4 ms | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_inventory_products" SET "inventory"='94', "sales_outbound"='0' WHERE "id"=545 |
| 11:45:38.703 | 0.4 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_products" WHERE "id"=545 |
| 11:45:38.814 | 0.4 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
| 11:45:38.816 | 0.4 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
| 11:45:38.699 | 0.3 ms | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_erp_sales_gifts" WHERE "serial_no"='ZSD-20260715-00001') |
| 11:45:38.790 | 0.3 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_sales_gift_id"=133 |
| 11:45:38.778 | 0.3 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_products" WHERE "id"='545' |
| 11:45:38.775 | 0.3 ms | yii\db\Command::execute | INSERT 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.708 | 0.3 ms | yii\db\Command::execute | INSERT 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. 采购入库单>关联列表页追加产品出库的单据关联:拆装单、报损单、组装单、调拨单、销售出库单;及时了解产品的出库情况";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.779 | 0.3 ms | yii\db\Command::query | SELECT SUM(outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=545 |
| 11:45:38.699 | 0.3 ms | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"='5300') |
| 11:45:38.776 | 0.3 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_sales_gift_verify_rels" WHERE ("status"=0) AND ("erp_sales_gift_id"=133) ORDER BY "id" |
| 11:45:38.786 | 0.3 ms | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_purchase_inbounds" SET "is_used"=TRUE WHERE "id"=219 |
| 11:45:38.782 | 0.3 ms | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_inventory_products" SET "inventory"='95', "sales_outbound"='0', "sales_gift_outbound"='0' WHERE "id"=545 |
| 11:45:38.789 | 0.3 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_sales_gifts" WHERE "id"=133 |
| 11:45:38.700 | 0.3 ms | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"='3351') |
| 11:45:38.784 | 0.3 ms | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_purchase_inbound_products" SET "inventory"='95', "sales_outbound"='0', "sales_gift_outbound"='0' WHERE "id"=441 |
| 11:45:38.783 | 0.3 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_purchase_inbound_products" WHERE "id"=441 |
| 11:45:38.793 | 0.3 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_products" WHERE "id"=545 |
| 11:45:38.777 | 0.3 ms | yii\db\Command::execute | INSERT 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.791 | 0.3 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_products" WHERE "id"=545 |
| 11:45:38.685 | 0.3 ms | yii\db\Connection::open | Opening DB connection: pgsql:host=postgresql.server.local;port=5432;dbname=beta |
| 11:45:38.781 | 0.3 ms | yii\db\Command::query | SELECT SUM(disassemble_spent_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=545 |
| 11:45:38.756 | 0.3 ms | yii\db\Command::execute | INSERT 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.806 | 0.3 ms | yii\db\Command::query | SELECT SUM(outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=545 |
| 11:45:38.780 | 0.3 ms | yii\db\Command::query | SELECT SUM(lost_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=545 |
| 11:45:38.778 | 0.3 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_sales_gifts" WHERE "id"=133 |
| 11:45:38.702 | 0.3 ms | yii\db\Command::query | SELECT "name" FROM "a57be577deb434"."tbl_products" WHERE "id"='2261' |
| 11:45:38.793 | 0.3 ms | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_products" SET "updated_at"='now()', "in_out_at"='now()' WHERE "id"=2261 |
| 11:45:38.794 | 0.3 ms | yii\db\Command::query | SELECT SUM(lost_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=545 |
| 11:45:38.805 | 0.3 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_products" WHERE "id"='545' |
| 11:45:38.815 | 0.3 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_sales_gift_verify_rels" WHERE ("status"=0) AND ("erp_sales_gift_id"=133) ORDER BY "id" |
| 11:45:38.701 | 0.3 ms | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001) |
| 11:45:38.796 | 0.3 ms | yii\db\Command::query | SELECT SUM(transfer_spent_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=545 |
| 11:45:38.807 | 0.3 ms | yii\db\Command::query | SELECT SUM(transfer_spent_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=545 |
| 11:45:38.815 | 0.3 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_sales_gift_verify_rels" WHERE ("status"=0) AND ("erp_sales_gift_id"=133) ORDER BY "id" |
| 11:45:38.798 | 0.3 ms | yii\db\Command::execute | INSERT 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.781 | 0.3 ms | yii\db\Command::query | SELECT SUM(sales_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=545 |
| 11:45:38.807 | 0.3 ms | yii\db\Command::query | SELECT SUM(build_spent_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=545 |
| 11:45:38.781 | 0.3 ms | yii\db\Command::query | SELECT SUM(transfer_spent_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=545 |
| 11:45:38.794 | 0.3 ms | yii\db\Command::query | SELECT SUM(outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=545 |
| 11:45:38.796 | 0.3 ms | yii\db\Command::query | SELECT SUM(sales_gift_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=545 |
| 11:45:38.805 | 0.3 ms | yii\db\Command::execute | INSERT 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.780 | 0.3 ms | yii\db\Command::query | SELECT SUM(build_spent_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=545 |
| 11:45:38.795 | 0.3 ms | yii\db\Command::query | SELECT SUM(build_spent_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=545 |
| 11:45:38.799 | 0.3 ms | yii\db\Command::execute | INSERT 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.804 | 0.3 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_settings" WHERE "setting_key"='erp_decimal_point' |
| 11:45:38.809 | 0.3 ms | yii\db\Command::execute | INSERT 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.790 | 0.3 ms | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_sales_gift_id"=133 |
| 11:45:38.806 | 0.3 ms | yii\db\Command::query | SELECT SUM(lost_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=545 |
| 11:45:38.807 | 0.3 ms | yii\db\Command::query | SELECT SUM(disassemble_spent_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=545 |
| 11:45:38.803 | 0.3 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_settings" WHERE "setting_key"='erp_cost_type' |
| 11:45:38.795 | 0.3 ms | yii\db\Command::query | SELECT SUM(disassemble_spent_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=545 |
| 11:45:38.790 | 0.3 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_sales_gift_spent_products" WHERE "erp_sales_gift_id"=133 |
| 11:45:38.782 | 0.3 ms | yii\db\Command::query | SELECT SUM(sales_gift_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=545 |
| 11:45:38.808 | 0.3 ms | yii\db\Command::query | SELECT SUM(sales_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=545 |
| 11:45:38.808 | 0.3 ms | yii\db\Command::query | SELECT SUM(sales_gift_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=545 |
| 11:45:38.796 | 0.3 ms | yii\db\Command::query | SELECT SUM(sales_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=545 |
| 11:45:38.802 | 0.3 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_transfer_products" WHERE 0=1 |
| 11:45:38.798 | 0.3 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_purchase_inbound_products" WHERE "id"=441 |
| 11:45:38.702 | 0.3 ms | yii\db\Command::query | SELECT "title" FROM "a57be577deb434"."tbl_erp_stores" WHERE "id"='1' |
| 11:45:38.783 | 0.3 ms | yii\db\Command::execute | INSERT 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.810 | 0.2 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_purchase_inbound_products" WHERE "id"=441 |
| 11:45:38.811 | 0.2 ms | yii\db\Command::execute | INSERT 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.785 | 0.2 ms | yii\db\Command::execute | INSERT 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.789 | 0.2 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_transfer_products" WHERE 0=1 |
| 11:45:38.712 | 0.2 ms | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_erp_sales_gift_verify_rels" WHERE "erp_sales_gift_id"=133 |
| 11:45:38.788 | 0.2 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_purchase_gift_products" WHERE 0=1 |
| 11:45:38.700 | 0.2 ms | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_erp_stores" WHERE "id"='1') |
| 11:45:38.786 | 0.2 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_start_products" WHERE 0=1 |
| 11:45:38.788 | 0.2 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_overflow_products" WHERE 0=1 |
| 11:45:38.787 | 0.2 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_build_products" WHERE 0=1 |
| 11:45:38.800 | 0.2 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_start_products" WHERE 0=1 |
| 11:45:38.787 | 0.2 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_disassemble_products" WHERE 0=1 |
| 11:45:38.802 | 0.2 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_purchase_gift_products" WHERE 0=1 |
| 11:45:38.813 | 0.2 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_overflow_products" WHERE 0=1 |
| 11:45:38.812 | 0.2 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_build_products" WHERE 0=1 |
| 11:45:38.812 | 0.2 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_start_products" WHERE 0=1 |
| 11:45:38.814 | 0.2 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_transfer_products" WHERE 0=1 |
| 11:45:38.802 | 0.2 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_overflow_products" WHERE 0=1 |
| 11:45:38.813 | 0.2 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_purchase_gift_products" WHERE 0=1 |
| 11:45:38.801 | 0.2 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_build_products" WHERE 0=1 |
| 11:45:38.813 | 0.2 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_disassemble_products" WHERE 0=1 |
| 11:45:38.801 | 0.2 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_disassemble_products" WHERE 0=1 |