16:00:33.922 | 2.2 ms | SELECT | SELECT * FROM "global"."vw_user_login" WHERE "id"=1001 |
16:00:33.925 | 1.5 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
16:00:33.930 | 1.3 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_erp_purchase_inbounds" WHERE ("created_at" >= '2025-08-27 00:00:00') AND ("created_at" <= '2025-08-27 23:59:59') AND ("serial_no" ILIKE '%CGRK-20250827-%') AND (LENGTH(serial_no) = 19) ORDER BY "serial_no" DESC |
16:00:33.932 | 0.7 ms | SELECT | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_erp_purchase_inbounds" WHERE "serial_no"='CGRK-20250827-00005') |
16:00:33.933 | 0.4 ms | SELECT | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_erp_purchase_orders" WHERE "id"='2010') |
16:00:33.933 | 0.2 ms | SELECT | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"='1001') |
16:00:33.934 | 0.4 ms | SELECT | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_suppliers" WHERE "id"='431') |
16:00:33.934 | 0.4 ms | SELECT | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_purchase_contracts" WHERE "id"='4085') |
16:00:33.935 | 0.3 ms | SELECT | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_erp_stores" WHERE "id"='1') |
16:00:33.935 | 0.2 ms | SELECT | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001) |
16:00:33.936 | 0.5 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_erp_purchase_order_products" WHERE "id"=5 |
16:00:33.936 | 1.6 ms | INSERT | INSERT INTO "a57be577deb434"."tbl_erp_purchase_inbounds" ("supplier_id", "handler", "purchase_contract_id", "wrote_date", "serial_no", "abstract", "description", "erp_store_id", "erp_purchase_order_id", "verify_type", "created_by", "created_at", "status", "is_resubmitted", "is_used") VALUES (431, 1001, 4085, '2025-08-27', 'CGRK-20250827-00005', '', '', 1, 2010, 1, 1001, 'now()', 1, FALSE, FALSE) RETURNING "id" |
16:00:33.938 | 1.2 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\ErpPurchaseInbounds', 11, 'a:30:{s:2:"id";i:11;s:9:"serial_no";s:19:"CGRK-20250827-00005";s:9:"from_date";N;s:10:"wrote_date";s:10:"2025-08-27";s:7:"handler";s:4:"1001";s:21:"erp_purchase_order_id";s:4:"2010";s:11:"supplier_id";s:3:"431";s:20:"purchase_contract_id";s:4:"4085";s:12:"erp_store_id";s:1:"1";s:6:"status";i:1;s:8:"abstract";s:0:"";s:11:"description";s:0:"";s:11:"verify_type";s:1:"1";s:16:"next_verify_user";N;s:21:"next_stop_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";b:0;s:6:"number";N;s:6:"amount";N;s:13:"cancel_number";N;s:13:"cancel_amount";N;s:10:"created_by";i:1001;s:16:"stop_description";N;s:7:"is_used";b:0;s:9:"is_settle";N;s:10:"created_at";s:19:"1970-01-01 08:00:00";s:10:"updated_at";N;}', '', 1001, '221.194.148.30') |
16:00:33.940 | 1.9 ms | DELETE | DELETE FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=20004) AND ("object_id"=11) |
16:00:33.942 | 0.3 ms | DELETE | DELETE FROM "a57be577deb434"."tbl_erp_purchase_inbound_verify_rels" WHERE "erp_purchase_inbound_id"=11 |
16:00:33.942 | 1.0 ms | INSERT | INSERT INTO "a57be577deb434"."tbl_erp_purchase_inbound_verify_rels" ("erp_purchase_inbound_id", "user_id", "status") VALUES (11, 1001, 0) |
16:00:33.943 | 0.2 ms | DELETE | DELETE FROM "a57be577deb434"."tbl_erp_purchase_inbound_projects" WHERE "erp_purchase_inbound_id"=11 |
16:00:33.944 | 1.5 ms | INSERT | INSERT INTO "a57be577deb434"."tbl_erp_purchase_inbound_products" ("erp_purchase_inbound_id", "erp_purchase_order_id", "erp_purchase_order_product_id", "erp_store_id", "product_id", "amount", "total_amount", "number", "description") VALUES (11, 2010, 5, 1, 2049, '43243', '10378320', '240', '') RETURNING "id" |
16:00:33.946 | 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\ErpPurchaseInboundProducts', 17, 'a:19:{s:2:"id";i:17;s:23:"erp_purchase_inbound_id";i:11;s:21:"erp_purchase_order_id";s:4:"2010";s:29:"erp_purchase_order_product_id";s:1:"5";s:12:"erp_store_id";s:1:"1";s:10:"product_id";s:4:"2049";s:11:"description";s:0:"";s:6:"number";s:3:"240";s:8:"outbound";N;s:9:"inventory";N;s:6:"amount";s:5:"43243";s:12:"total_amount";s:8:"10378320";s:13:"cancel_number";N;s:13:"cancel_amount";N;s:19:"cancel_total_amount";N;s:13:"lost_outbound";N;s:20:"build_spent_outbound";N;s:14:"sales_outbound";N;s:19:"sales_gift_outbound";N;}', '', 1001, '221.194.148.30') |
16:00:33.947 | 0.3 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_erp_purchase_inbound_verify_rels" WHERE ("status"=0) AND ("erp_purchase_inbound_id"=11) ORDER BY "id" |
16:00:33.947 | 1.3 ms | UPDATE | UPDATE "a57be577deb434"."tbl_erp_purchase_inbounds" SET "amount"='10378320', "number"='240', "next_verify_user"=1001 WHERE "id"=11 |
16:00:33.949 | 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\ErpPurchaseInbounds', 11, 'a:2:{s:6:"number";i:240;s:6:"amount";i:10378320;}', '', 1001, '221.194.148.30') |
16:00:33.949 | 0.2 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_erp_purchase_inbounds" WHERE "id"=11 |
16:00:33.950 | 0.3 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
16:00:33.950 | 0.2 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_erp_purchase_inbound_verify_rels" WHERE ("status"=0) AND ("erp_purchase_inbound_id"=11) ORDER BY "id" |
16:00:33.951 | 0.3 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
16:00:33.951 | 1.0 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', 11, 20002, 1001, '2025-08-27 16:00:33', '{"id":11,"serial_no":"CGRK-20250827-00005","from_date":null,"wrote_date":"2025-08-27","handler":1001,"erp_purchase_order_id":2010,"supplier_id":431,"purchase_contract_id":4085,"erp_store_id":1,"status":1,"abstract":"","description":"","verify_type":1,"next_verify_user":1001,"next_stop_verify_user":null,"verify_at":null,"stop_at":null,"cancel_at":null,"refuse_description":null,"is_resubmitted":false,"number":"240","amount":"10378320","cancel_number":null,"cancel_amount":null,"created_by":1001,"stop_description":null,"is_used":false,"is_settle":false,"created_at":"2025-08-27 16:00:33","updated_at":"2025-08-27 16:00:33"}', '{"id":11,"serial_no":"CGRK-20250827-00005","from_date":null,"wrote_date":"2025-08-27","handler":1001,"erp_purchase_order_id":2010,"supplier_id":431,"purchase_contract_id":4085,"erp_store_id":1,"status":1,"abstract":"","description":"","verify_type":1,"next_verify_user":1001,"next_stop_verify_user":null,"verify_at":null,"stop_at":null,"cancel_at":null,"refuse_description":null,"is_resubmitted":false,"number":"240","amount":"10378320","cancel_number":null,"cancel_amount":null,"created_by":1001,"stop_description":null,"is_used":false,"is_settle":false,"created_at":"2025-08-27 16:00:33","updated_at":"2025-08-27 16:00:33"}', '{"d1":"\u5218\u4eba\u8bda","d2":"\u521b\u5efa\u4e86","d3":"\u91c7\u8d2d\u5165\u5e93\u5355\u7533\u8bf7","d4":[]}') RETURNING "id" |
16:00:33.953 | 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', 554298, 'a:13:{s:2:"id";i:554298;s:9:"object_id";i:11;s:11:"object_type";i:20002;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:625:"{"id":11,"serial_no":"CGRK-20250827-00005","from_date":null,"wrote_date":"2025-08-27","handler":1001,"erp_purchase_order_id":2010,"supplier_id":431,"purchase_contract_id":4085,"erp_store_id":1,"status":1,"abstract":"","description":"","verify_type":1,"next_verify_user":1001,"next_stop_verify_user":null,"verify_at":null,"stop_at":null,"cancel_at":null,"refuse_description":null,"is_resubmitted":false,"number":"240","amount":"10378320","cancel_number":null,"cancel_amount":null,"created_by":1001,"stop_description":null,"is_used":false,"is_settle":false,"created_at":"2025-08-27 16:00:33","updated_at":"2025-08-27 16:00:33"}";s:9:"new_value";s:625:"{"id":11,"serial_no":"CGRK-20250827-00005","from_date":null,"wrote_date":"2025-08-27","handler":1001,"erp_purchase_order_id":2010,"supplier_id":431,"purchase_contract_id":4085,"erp_store_id":1,"status":1,"abstract":"","description":"","verify_type":1,"next_verify_user":1001,"next_stop_verify_user":null,"verify_at":null,"stop_at":null,"cancel_at":null,"refuse_description":null,"is_resubmitted":false,"number":"240","amount":"10378320","cancel_number":null,"cancel_amount":null,"created_by":1001,"stop_description":null,"is_used":false,"is_settle":false,"created_at":"2025-08-27 16:00:33","updated_at":"2025-08-27 16:00:33"}";s:11:"description";s:111:"{"d1":"\u5218\u4eba\u8bda","d2":"\u521b\u5efa\u4e86","d3":"\u91c7\u8d2d\u5165\u5e93\u5355\u7533\u8bf7","d4":[]}";s:10:"created_by";i:1001;s:10:"created_at";s:19:"2025-08-27 16:00:33";s:9:"is_delete";N;}', '', 1001, '221.194.148.30') |
16:00:33.954 | 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\ErpPurchaseInbounds', 11, 'a:0:{}', '', 1001, '221.194.148.30') |
16:00:33.954 | 0.3 ms | DELETE | DELETE FROM "a57be577deb434"."tbl_erp_inventory_products" WHERE "erp_purchase_inbound_id"=11 |
16:00:33.955 | 0.4 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_erp_purchase_orders" WHERE "id"='2010' |
16:00:33.956 | 0.2 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_erp_purchase_order_products" WHERE "erp_purchase_order_id"=2010 |
16:00:33.956 | 0.3 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_erp_purchase_inbound_products" WHERE "erp_purchase_order_product_id"=5 |
16:00:33.956 | 0.2 ms | SELECT | SELECT * FROM "a57be577deb434"."tbl_erp_purchase_inbounds" WHERE "id" IN (9, 10, 11) |
16:00:33.957 | 0.7 ms | UPDATE | UPDATE "a57be577deb434"."tbl_erp_purchase_order_products" SET "into_inventory"='240' WHERE "id"=5 |
16:00:33.958 | 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\ErpPurchaseOrderProducts', 5, 'a:1:{s:14:"into_inventory";s:1:"0";}', '', 1001, '221.194.148.30') |
16:00:33.959 | 0.8 ms | UPDATE | UPDATE "a57be577deb434"."tbl_erp_purchase_orders" SET "is_used"=TRUE, "inventory_status"=TRUE WHERE "id"=2010 |
16:00:33.960 | 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\ErpPurchaseOrders', 2010, 'a:0:{}', '', 1001, '221.194.148.30') |
16:00:33.961 | 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', 1001, 5, 'vue/erp-purchase-inbound/save-new', '{"ErpPurchaseInbounds":{"id":"","supplier_id":"431","supplier_name":"\u5317\u4eac\u60e0\u8054\u8baf\u901a\u4fe1\u606f\u6280\u672f\u670d\u52a1\u6709\u9650\u516c\u53f8","handler":"1001","purchase_contract_id":"4085","wrote_date":"2025-08-27","serial_no":"CGRK-20250827-00005","erpPurchaseInboundVerifyRels":["1001"],"abstract":"","description":"","erp_store_id":"1","erp_store_name":"\u62d3\u5b9e\u4ed3\u5e93","erp_purchase_order_id":"2010","erpPurchaseInboundProducts":{"new":[{"product_id":"2049","number":"240","amount":"43243","total_amount":"10378320","erp_store_id":"1","description":"","erp_purchase_order_id":"2010","erp_purchase_order_product_id":"5","sns":""}]},"erpPurchaseInboundProjects":"","files":""},"web_access_token":"Li3IMhP-fEDlm-Uio7KRe04g8yEtq7zU"}', '{"code":2000,"result":{"id":11},"status":1,"msg":[{"name":"success","success":"\u65b0\u91c7\u8d2d\u5165\u5e93\u5355\u5df2\u521b\u5efa\u6210\u529f","error":""}],"mod":0}', FALSE, '2025-08-27 16:00:33') RETURNING "id" |