Total processing time: 172 ms; Peak memory: 5.026 MB. Show Profiling Timeline
Time | Duration | Category | Info |
---|---|---|---|
12:19:34.655 | 24.0 ms | yii\db\Command::query | SELECT "object_id", count(*) AS comment FROM "a57be577deb434"."tbl_comments" WHERE ("object_type"=7) AND ("object_id" IN (3836, 3844, 3835, 3364)) GROUP BY "object_id" |
12:19:34.737 | 22.7 ms | yii\db\Command::query | SELECT "object_id", count(*) AS unread FROM "a57be577deb434"."tbl_unread_comments" WHERE ("object_type"=7) AND (remind_user_id = 1000 AND is_read = false) AND ("object_id" IN (3836, 3844, 3835, 3364)) GROUP BY "object_id" |
12:19:34.629 | 11.0 ms | yii\db\Command::query | SELECT COUNT(*) FROM (SELECT c.*, abs(c.expire_date - current_date) AS b_date, CASE WHEN c.expire_date IS NULL THEN 1 ELSE 2 END AS passed FROM "a57be577deb434"."tbl_sales_contracts" "c" LEFT JOIN "a57be577deb434"."tbl_clients" "client" ON client.id = c.client_id LEFT JOIN "a57be577deb434"."tbl_projects" "p" ON p.id = c.from_project LEFT JOIN "a57be577deb434"."tbl_sales_group_relationships" "sgr" ON sgr.sales_id = client.sales_rep LEFT JOIN "a57be577deb434"."tbl_attachement_relationships" "cs" ON cs.object_id = c.id AND cs.object_type = 105 LEFT JOIN "a57be577deb434"."tbl_attachement_relationships" "rs" ON rs.object_id = c.id AND rs.object_type = 106 LEFT JOIN "a57be577deb434"."tbl_attachement_relationships" "vs" ON vs.object_id = c.id AND vs.object_type = 107 WHERE "client"."id"='3278' GROUP BY "c"."id" ORDER BY "c"."signed_at" DESC, "c"."created_at" DESC) "c" |
12:19:34.641 | 10.0 ms | yii\db\Command::query | SELECT c.*, abs(c.expire_date - current_date) AS b_date, CASE WHEN c.expire_date IS NULL THEN 1 ELSE 2 END AS passed FROM "a57be577deb434"."tbl_sales_contracts" "c" LEFT JOIN "a57be577deb434"."tbl_clients" "client" ON client.id = c.client_id LEFT JOIN "a57be577deb434"."tbl_projects" "p" ON p.id = c.from_project LEFT JOIN "a57be577deb434"."tbl_sales_group_relationships" "sgr" ON sgr.sales_id = client.sales_rep LEFT JOIN "a57be577deb434"."tbl_attachement_relationships" "cs" ON cs.object_id = c.id AND cs.object_type = 105 LEFT JOIN "a57be577deb434"."tbl_attachement_relationships" "rs" ON rs.object_id = c.id AND rs.object_type = 106 LEFT JOIN "a57be577deb434"."tbl_attachement_relationships" "vs" ON vs.object_id = c.id AND vs.object_type = 107 WHERE "client"."id"='3278' GROUP BY "c"."id" ORDER BY "c"."signed_at" DESC, "c"."created_at" DESC LIMIT 10 |
12:19:34.608 | 8.0 ms | yii\db\Connection::open | Opening DB connection: pgsql:host=postgresql.server.local;port=5432;dbname=beta |
12:19:34.616 | 3.9 ms | yii\db\Command::query | SELECT * FROM "global"."vw_user_login" WHERE "access_token"='rpAaho7HBg3VJ1vNP7yVtm0Uw5j2xu-u' |
12:19:34.686 | 3.0 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_project_product_rels" WHERE "project_id" IN (3577, 3801) |
12:19:34.682 | 2.8 ms | yii\db\Command::query | SELECT "id", "product_type_id", "product_type_id" AS "key", "name", "budget", "pct", "project_id", "profit" FROM "a57be577deb434"."tbl_project_product_types" WHERE "project_id" IN (3577, 3801) |
12:19:34.704 | 2.7 ms | yii\db\Command::query | SELECT "id", "project_id" FROM "a57be577deb434"."tbl_sales_order_items" WHERE ("is_system"=TRUE) AND ("project_id" IN (3577, 3801)) |
12:19:34.762 | 2.3 ms | yii\db\Command::query | INSERT INTO "global"."tbl_api_log" ("code", "schema", "user_id", "device_type", "version_code", "url", "request", "response", "php_error", "time") VALUES (200, 'a57be577deb434', 1000, 0, 262, 'v2/sales-contract/of-client', '{"access_token":"rpAaho7HBg3VJ1vNP7yVtm0Uw5j2xu-u","device_type":"0","version_code":"262","id":"3278","page":"1","token":"22e41003e84903887471782b8e90a499","posttime":"1751343574"}', '{"code":200,"data":{"list":[{"id":3836,"client_id":3278,"signed_at":"2025-05-08","amount":"22.00","handler":1001,"description":"","created_by":1001,"created_at":"2025-05-08 09:34:17","updated_at":"2025-06-11 13:37:48","contract_scan":null,"receipt_scan":null,"contract_type":1,"project_id":null,"valid_date":null,"expire_date":"2025-05-08","sla":"","remind_ahead":"","expire_remind_ahead":"","expire_reminded":false,"serial_no":"","payment_collection_remind_ahead":"","from_project":null,"receipt_date":null,"verify_date":null,"including_tax":true,"build_by_project":false,"need_analysis":true,"is_settle":false,"is_deliver":false,"is_outbound":false,"is_save_collection":false,"save_collection_at":null,"b_date":54,"passed":2,"client":{"id":3278,"key":3278,"name":"\u5317\u4eac\u521b\u5b89\u5149\u901a\u79d1\u6280\u53d1\u5c55\u6709\u9650\u516c\u53f8","logo":null,"sales_rep":1001,"salesRep":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda","avatar":{"id":2,"user_id":1001,"name":"\/files\/cdn\/a57be577deb434\/avatar\/9f73cfbd-bae6-3b50-b7ac-61b936c40727.png"}}},"contractScan":null,"receiptScan":null,"createdBy":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda","sex":"M","department_id":4,"avatar":{"id":2,"user_id":1001,"name":"\/files\/cdn\/a57be577deb434\/avatar\/9f73cfbd-bae6-3b50-b7ac-61b936c40727.png"},"department":{"id":4,"key":4,"name":"\u603b\u7ecf\u7406"}},"commentCount":null,"project":null,"fromProject":null,"salesSupplierRels":[],"contractType":{"id":1,"key":1,"name":"\u4ea7\u54c1\u9500\u552e"},"handleBy":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda","sex":"M","department_id":4,"avatar":{"id":2,"user_id":1001,"name":"\/files\/cdn\/a57be577deb434\/avatar\/9f73cfbd-bae6-3b50-b7ac-61b936c40727.png"}},"remindDate":null,"serviceContractRemindDates":[],"salesContractRemindReceivers":[],"serviceContractRemindReceivers":[],"salesContractPaymentCollectionRemindReceivers":[],"salesContractPaymentCollectionRemindDates":[],"salesContractPayments":[{"id":2157,"key":2157,"contract_id":3836,"value":"22","created_by":1000,"created_at":"2025-05-12 10:22:45","description":null,"collected_date":"2025-05-12","amount":"22","createdBy":{"id":1000,"key":1000,"name":"\u66f9\u6c38\u751f","sex":"F","department_id":10},"files":[],"pct":100}],"salesContractInvoices":[],"contractScans":[],"receiptScans":[],"verifyScans":[],"unreadComments":null,"collected_plan":0,"projectProductTotalAmount":0,"projectProductAllAmount":true,"projectProductTotalCost":0,"projectProductAllCost":true,"projectProductTotalCount":0,"invoiced":0,"un_invoiced":22,"collected":22,"un_collected":0,"is_collected":true,"handlerPerson":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda","avatar":{"id":2,"user_id":1001,"name":"\/files\/cdn\/a57be577deb434\/avatar\/9f73cfbd-bae6-3b50-b7ac-61b936c40727.png"}},"remind_date":"","remind_ahead_display":"\u65e0","expire_remind_ahead_display":"\u65e0","payment_collection_remind_ahead_display":"\u65e0","can_update":true,"can_delete":true,"unread":0,"bgcolor":"#89c541","can_view_product":true,"can_progress":true},{"id":3844,"client_id":3278,"signed_at":"2025-04-09","amount":"8000","handler":1001,"description":"\u6d4b\u8bd5","created_by":1001,"created_at":"2025-06-11 11:14:46","updated_at":"2025-06-11 11:14:46","contract_scan":null,"receipt_scan":null,"contract_type":1,"project_id":3801,"valid_date":null,"expire_date":null,"sla":null,"remind_ahead":null,"expire_remind_ahead":null,"expire_reminded":false,"serial_no":null,"payment_collection_remind_ahead":null,"from_project":3801,"receipt_date":null,"verify_date":null,"including_tax":true,"build_by_project":true,"need_analysis":true,"is_settle":false,"is_deliver":false,"is_outbound":false,"is_save_collection":true,"save_collection_at":"2025-06-11 15:29:06.898793+08","b_date":null,"passed":1,"client":{"id":3278,"key":3278,"name":"\u5317\u4eac\u521b\u5b89\u5149\u901a\u79d1\u6280\u53d1\u5c55\u6709\u9650\u516c\u53f8","logo":null,"sales_rep":1001,"salesRep":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda","avatar":{"id":2,"user_id":1001,"name":"\/files\/cdn\/a57be577deb434\/avatar\/9f73cfbd-bae6-3b50-b7ac-61b936c40727.png"}}},"contractScan":null,"receiptScan":null,"createdBy":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda","sex":"M","department_id":4,"avatar":{"id":2,"user_id":1001,"name":"\/files\/cdn\/a57be577deb434\/avatar\/9f73cfbd-bae6-3b50-b7ac-61b936c40727.png"},"department":{"id":4,"key":4,"name":"\u603b\u7ecf\u7406"}},"commentCount":{"object_id":3844,"comment":1},"project":{"id":3801,"key":3801,"name":"\u8d1f\u6570\u95ee\u9898"},"fromProject":{"id":3801,"key":3801,"name":"\u8d1f\u6570\u95ee\u9898","description":"\u6d4b\u8bd5","total_contact_point":null,"paid_contact_point":null,"is_sales_order_ready":false,"project_product_version_id":808,"bargain_date":"2025-04-09","collected":"1","profit_pct":"93.75","budget":"8000","projectProductTypes":[{"id":6254,"product_type_id":7,"key":7,"name":"\u8f6f\u4ef6","budget":"8000","pct":"93.75","project_id":3801,"profit":"7500"}],"projectProductRels":[{"id":9110,"project_id":3801,"product_id":1956,"amount":"8000.00","number":1,"cost":"500.00","description":"","supplier_id":null,"hardware_from":null,"software_from":null,"maintenance_from":null,"hardware_to":null,"software_to":null,"maintenance_to":null,"total_amount":"8000","total_cost":"500","supplier":null,"product":{"id":1956,"name":"\u6df1\u4fe1\u670d\u7aef\u70b9\u5b89\u5168\u8f6f\u4ef6V6.0\uff08PC\u5168\u91cf\u7248\uff09","product_type":7,"product_component":41,"product_brand":12,"product_serie":1610,"product_misc":null,"product_qa":null,"pn":"","description":"\u6df1\u4fe1\u670d\u7edf\u4e00\u7aef\u70b9\u5b89\u5168\u7ba1\u7406\u7cfb\u7edfV6.0\uff08aES\uff09","created_by":1013,"created_at":"2025-03-10 09:19:22","updated_at":"2025-03-10 09:19:22","pinyin_shortcut":"sxfddaqrjV60PCqlb","product_unit":2,"is_renew":false,"productType":{"id":7,"key":7,"name":"\u8f6f\u4ef6"},"productComponent":{"id":41,"key":41,"name":"\u5b89\u5168\u8f6f\u4ef6"},"productBrand":{"id":12,"key":12,"name":"\u6df1\u4fe1\u670d"},"productSerie":{"id":1610,"key":1610,"name":"\u6df1\u4fe1\u670d\u7aef\u70b9\u5b89\u5168\u8f6f\u4ef6"},"productUnit":{"id":2,"key":2,"name":"\u5957"}}}],"projectContactPoints":[],"buildSalesOrderItems":[],"reimbursementAmountSum":null,"profit":7500,"contact_points_status_display":"\u672a\u8bbe\u7f6e"},"salesSupplierRels":[{"id":2534,"contract_id":3844,"supplier_id":431,"purchase_id":3834,"supplier":{"id":431,"key":431,"name":"\u5317\u4eac\u60e0\u8054\u8baf\u901a\u4fe1\u606f\u6280\u672f\u670d\u52a1\u6709\u9650\u516c\u53f8"},"purchase":{"id":3834,"key":3834,"serial_no":"\u6d4b\u8bd5\u9500\u552e\u5408\u540c\u5173\u8054\u91c7\u8d2d\u5408\u540c\u95ee\u9898"}}],"contractType":{"id":1,"key":1,"name":"\u4ea7\u54c1\u9500\u552e"},"handleBy":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda","sex":"M","department_id":4,"avatar":{"id":2,"user_id":1001,"name":"\/files\/cdn\/a57be577deb434\/avatar\/9f73cfbd-bae6-3b50-b7ac-61b936c40727.png"}},"remindDate":null,"serviceContractRemindDates":[],"salesContractRemindReceivers":[],"serviceContractRemindReceivers":[],"salesContractPaymentCollectionRemindReceivers":[{"id":8221,"user_id":1005,"key":1005,"contract_id":3844,"user":{"id":1005,"key":1005,"name":"\u8d75\u6657\u7131","sex":"F","avatar":{"id":16,"user_id":1005,"name":"\/files\/cdn\/a57be577deb434\/avatar\/56876dde-37eb-39fc-853a-47eaef6510e5.png"}}},{"id":8222,"user_id":1001,"key":1001,"contract_id":3844,"user":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda","sex":"M","avatar":{"id":2,"user_id":1001,"name":"\/files\/cdn\/a57be577deb434\/avatar\/9f73cfbd-bae6-3b50-b7ac-61b936c40727.png"}}}],"salesContractPaymentCollectionRemindDates":[{"id":2426,"key":2426,"contract_id":3844,"name":"2025-06-11","value":"4000","overdue_days":null,"pct":50,"collect_status":"\u903e\u671f20\u5929"},{"id":2427,"key":2427,"contract_id":3844,"name":"2025-06-19","value":"3000","overdue_days":null,"pct":37.5,"collect_status":"\u903e\u671f12\u5929"},{"id":2428,"key":2428,"contract_id":3844,"name":"2025-06-20","value":"1000","overdue_days":null,"pct":12.5,"collect_status":"\u903e\u671f11\u5929"}],"salesContractPayments":[{"id":2163,"key":2163,"contract_id":3844,"value":"1","created_by":1001,"created_at":"2025-06-11 13:43:46","description":"\u6d4b\u8bd5","collected_date":"2025-06-11","amount":"1","createdBy":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda","sex":"M","department_id":4},"files":[{"id":33121,"object_type":109,"object_id":2163,"attachment_id":24746,"attachment":{"id":24746,"key":24746,"name":"6047ab03-bbe2-3563-8790-7bcd0044febd","extension":"txt","path":"\/v2\/attachment\/view\/rpAaho7HBg3VJ1vNP7yVtm0Uw5j2xu-u\/6047ab03-bbe2-3563-8790-7bcd0044febd\/2024-01-16.txt","orig_name":"2024-01-16.txt"}}],"pct":0.01}],"salesContractInvoices":[],"contractScans":[],"receiptScans":[],"verifyScans":[],"unreadComments":null,"collected_plan":8000,"projectProductTotalAmount":8000,"projectProductAllAmount":true,"projectProductTotalCost":500,"projectProductAllCost":true,"projectProductTotalCount":1,"invoiced":0,"un_invoiced":8000,"collected":1,"un_collected":7999,"is_collected":false,"handlerPerson":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda","avatar":{"id":2,"user_id":1001,"name":"\/files\/cdn\/a57be577deb434\/avatar\/9f73cfbd-bae6-3b50-b7ac-61b936c40727.png"}},"remind_date":"","remind_ahead_display":"\u65e0","expire_remind_ahead_display":"\u65e0","payment_collection_remind_ahead_display":"\u65e0","can_update":true,"can_delete":false,"unread":0,"bgcolor":"#89c541","can_view_product":true,"can_progress":true},{"id":3835,"client_id":3278,"signed_at":"2025-04-09","amount":"9000000000000.00","handler":1001,"description":"","created_by":1001,"created_at":"2025-04-14 14:27:41","updated_at":"2025-06-11 13:38:40","contract_scan":null,"receipt_scan":null,"contract_type":1,"project_id":3801,"valid_date":null,"expire_date":null,"sla":"","remind_ahead":"","expire_remind_ahead":"","expire_reminded":false,"serial_no":"\u8d1f\u6570\u95ee\u9898","payment_collection_remind_ahead":"1 day","from_project":null,"receipt_date":null,"verify_date":null,"including_tax":true,"build_by_project":true,"need_analysis":false,"is_settle":false,"is_deliver":false,"is_outbound":false,"is_save_collection":true,"save_collection_at":"2025-05-07 15:18:03.216496+08","b_date":null,"passed":1,"client":{"id":3278,"key":3278,"name":"\u5317\u4eac\u521b\u5b89\u5149\u901a\u79d1\u6280\u53d1\u5c55\u6709\u9650\u516c\u53f8","logo":null,"sales_rep":1001,"salesRep":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda","avatar":{"id":2,"user_id":1001,"name":"\/files\/cdn\/a57be577deb434\/avatar\/9f73cfbd-bae6-3b50-b7ac-61b936c40727.png"}}},"contractScan":null,"receiptScan":null,"createdBy":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda","sex":"M","department_id":4,"avatar":{"id":2,"user_id":1001,"name":"\/files\/cdn\/a57be577deb434\/avatar\/9f73cfbd-bae6-3b50-b7ac-61b936c40727.png"},"department":{"id":4,"key":4,"name":"\u603b\u7ecf\u7406"}},"commentCount":{"object_id":3835,"comment":7},"project":{"id":3801,"key":3801,"name":"\u8d1f\u6570\u95ee\u9898"},"fromProject":null,"salesSupplierRels":[],"contractType":{"id":1,"key":1,"name":"\u4ea7\u54c1\u9500\u552e"},"handleBy":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda","sex":"M","department_id":4,"avatar":{"id":2,"user_id":1001,"name":"\/files\/cdn\/a57be577deb434\/avatar\/9f73cfbd-bae6-3b50-b7ac-61b936c40727.png"}},"remindDate":null,"serviceContractRemindDates":[],"salesContractRemindReceivers":[],"serviceContractRemindReceivers":[],"salesContractPaymentCollectionRemindReceivers":[{"id":8211,"user_id":1001,"key":1001,"contract_id":3835,"user":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda","sex":"M","avatar":{"id":2,"user_id":1001,"name":"\/files\/cdn\/a57be577deb434\/avatar\/9f73cfbd-bae6-3b50-b7ac-61b936c40727.png"}}},{"id":8212,"user_id":1011,"key":1011,"contract_id":3835,"user":{"id":1011,"key":1011,"name":"\u97e9\u96c5\u82b3","sex":"F","avatar":{"id":17,"user_id":1011,"name":"\/files\/cdn\/a57be577deb434\/avatar\/b54747f4-248d-380e-93bc-0f62f769e70d.png"}}}],"salesContractPaymentCollectionRemindDates":[],"salesContractPayments":[{"id":2138,"key":2138,"contract_id":3835,"value":"1","created_by":1001,"created_at":"2025-04-29 15:51:50","description":"","collected_date":"2025-04-14","amount":"1","createdBy":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda","sex":"M","department_id":4},"files":[],"pct":0},{"id":2139,"key":2139,"contract_id":3835,"value":"20000","created_by":1001,"created_at":"2025-04-29 16:11:45","description":"","collected_date":"2025-04-29","amount":"20000","createdBy":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda","sex":"M","department_id":4},"files":[],"pct":0},{"id":2154,"key":2154,"contract_id":3835,"value":"-1","created_by":1001,"created_at":"2025-05-07 15:09:00","description":"","collected_date":"2025-05-07","amount":"-1","createdBy":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda","sex":"M","department_id":4},"files":[],"pct":-0}],"salesContractInvoices":[],"contractScans":[],"receiptScans":[],"verifyScans":[],"unreadComments":null,"collected_plan":0,"projectProductTotalAmount":0,"projectProductAllAmount":true,"projectProductTotalCost":0,"projectProductAllCost":true,"projectProductTotalCount":0,"invoiced":0,"un_invoiced":9000000000000,"collected":20000,"un_collected":-20000,"is_collected":false,"handlerPerson":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda","avatar":{"id":2,"user_id":1001,"name":"\/files\/cdn\/a57be577deb434\/avatar\/9f73cfbd-bae6-3b50-b7ac-61b936c40727.png"}},"remind_date":"","remind_ahead_display":"\u65e0","expire_remind_ahead_display":"\u65e0","payment_collection_remind_ahead_display":"\u63d0\u524d1\u5929","can_update":true,"can_delete":true,"unread":0,"bgcolor":"#89c541","can_view_product":true,"can_progress":true},{"id":3364,"client_id":3278,"signed_at":"2024-06-25","amount":"198354","handler":1001,"description":"","created_by":1001,"created_at":"2024-06-26 10:50:35","updated_at":"2025-06-11 13:37:54","contract_scan":null,"receipt_scan":null,"contract_type":1,"project_id":3577,"valid_date":null,"expire_date":null,"sla":"","remind_ahead":"","expire_remind_ahead":"","expire_reminded":false,"serial_no":"TS-HYF-2024062501","payment_collection_remind_ahead":"7 days","from_project":3577,"receipt_date":null,"verify_date":null,"including_tax":true,"build_by_project":true,"need_analysis":true,"is_settle":true,"is_deliver":true,"is_outbound":true,"is_save_collection":true,"save_collection_at":"2025-06-11 11:28:58.105281+08","b_date":null,"passed":1,"client":{"id":3278,"key":3278,"name":"\u5317\u4eac\u521b\u5b89\u5149\u901a\u79d1\u6280\u53d1\u5c55\u6709\u9650\u516c\u53f8","logo":null,"sales_rep":1001,"salesRep":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda","avatar":{"id":2,"user_id":1001,"name":"\/files\/cdn\/a57be577deb434\/avatar\/9f73cfbd-bae6-3b50-b7ac-61b936c40727.png"}}},"contractScan":null,"receiptScan":null,"createdBy":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda","sex":"M","department_id":4,"avatar":{"id":2,"user_id":1001,"name":"\/files\/cdn\/a57be577deb434\/avatar\/9f73cfbd-bae6-3b50-b7ac-61b936c40727.png"},"department":{"id":4,"key":4,"name":"\u603b\u7ecf\u7406"}},"commentCount":{"object_id":3364,"comment":8},"project":{"id":3577,"key":3577,"name":"PA1410\u9632\u706b\u58992\u5957\u65b0\u8d2d\u9879\u76ee"},"fromProject":{"id":3577,"key":3577,"name":"PA1410\u9632\u706b\u58992\u5957\u65b0\u8d2d\u9879\u76ee","description":"","total_contact_point":"26476","paid_contact_point":"26476","is_sales_order_ready":true,"project_product_version_id":523,"bargain_date":"2024-06-25","collected":"198354","profit_pct":"-0.71","budget":"198354","projectProductTypes":[{"id":6252,"product_type_id":87,"key":87,"name":"\u5b89\u5168","budget":"198354.00","pct":"-0.71","project_id":3577,"profit":"-1408.3134"}],"projectProductRels":[{"id":9107,"project_id":3577,"product_id":969,"amount":"47830","number":2,"cost":"35000","description":"","supplier_id":90,"hardware_from":"2025-07-31","software_from":null,"maintenance_from":null,"hardware_to":"2025-07-31","software_to":null,"maintenance_to":null,"total_amount":"95660","total_cost":"70000","supplier":{"id":90,"key":90,"name":"\u7d2b\u5149\u6653\u901a\u79d1\u6280\u6709\u9650\u516c\u53f8"},"product":{"id":969,"name":"PAN-PA-1410","product_type":5,"product_component":26,"product_brand":8,"product_serie":607,"product_misc":null,"product_qa":null,"pn":"","description":"Palo Alto Networks PA-1410","created_by":1013,"created_at":"2023-08-04 15:49:28","updated_at":"2024-01-12 15:43:25","pinyin_shortcut":"PANPA1410","product_unit":1,"is_renew":false,"productType":{"id":5,"key":5,"name":"\u5b89\u5168\u8bbe\u5907"},"productComponent":{"id":26,"key":26,"name":"\u9632\u706b\u5899\u4e3b\u673a"},"productBrand":{"id":8,"key":8,"name":"Paloalto"},"productSerie":{"id":607,"key":607,"name":"PA-1410\u9632\u706b\u5899\u4e3b\u673a"},"productUnit":{"id":1,"key":1,"name":"\u53f0"}}},{"id":9108,"project_id":3577,"product_id":1586,"amount":"11868","number":2,"cost":"15203.5","description":"","supplier_id":90,"hardware_from":"2025-07-31","software_from":null,"maintenance_from":null,"hardware_to":"2025-07-31","software_to":null,"maintenance_to":null,"total_amount":"23736","total_cost":"30407.0","supplier":{"id":90,"key":90,"name":"\u7d2b\u5149\u6653\u901a\u79d1\u6280\u6709\u9650\u516c\u53f8"},"product":{"id":1586,"name":"PAN-SVC-BKLN-1410","product_type":5,"product_component":35,"product_brand":8,"product_serie":1359,"product_misc":null,"product_qa":null,"pn":"","description":"PA-1410, Partner enabled premium support, 1 year (12 months) term.","created_by":1013,"created_at":"2024-04-26 09:35:29","updated_at":"2024-06-26 13:07:03","pinyin_shortcut":"PANSVCBKLN1410","product_unit":2,"is_renew":false,"productType":{"id":5,"key":5,"name":"\u5b89\u5168\u8bbe\u5907"},"productComponent":{"id":35,"key":35,"name":"\u9632\u706b\u5899\u8f6f\u4ef6"},"productBrand":{"id":8,"key":8,"name":"Paloalto"},"productSerie":{"id":1359,"key":1359,"name":"PA-1410\u4e00\u5e74\u670d\u52a1"},"productUnit":{"id":2,"key":2,"name":"\u5957"}}},{"id":9109,"project_id":3577,"product_id":1657,"amount":"39479","number":2,"cost":"30000","description":"","supplier_id":90,"hardware_from":null,"software_from":"2024-08-01","maintenance_from":null,"hardware_to":null,"software_to":"2025-07-31","maintenance_to":null,"total_amount":"78958","total_cost":"60000","supplier":{"id":90,"key":90,"name":"\u7d2b\u5149\u6653\u901a\u79d1\u6280\u6709\u9650\u516c\u53f8"},"product":{"id":1657,"name":"PAN-PA-1410-BND-CORESEC","product_type":5,"product_component":36,"product_brand":8,"product_serie":1243,"product_misc":null,"product_qa":null,"pn":"","description":"PA-1410, Core Security Subscription Bundle (Advanced Threat Prevention, Advanced URL Filtering, Advanced Wildfire, DNS Security and SD-WAN ), 1 years (12 months) term\n","created_by":1013,"created_at":"2024-06-26 10:53:31","updated_at":"2024-06-26 10:53:31","pinyin_shortcut":"PANPA1410BNDCORESEC","product_unit":2,"is_renew":false,"productType":{"id":5,"key":5,"name":"\u5b89\u5168\u8bbe\u5907"},"productComponent":{"id":36,"key":36,"name":"PA\u8bb8\u53ef\u8bc1"},"productBrand":{"id":8,"key":8,"name":"Paloalto"},"productSerie":{"id":1243,"key":1243,"name":"PA1410\u8f6f\u4ef6\u6388\u6743"},"productUnit":{"id":2,"key":2,"name":"\u5957"}}}],"projectContactPoints":[{"id":923,"project_id":3577,"contact_id":1262,"point":"26476.00","paid_point":"26476","contact":{"id":1262,"key":1262,"name":"\u5218\u70b3\u5764","client_id":null,"supplier_id":100,"client":null,"supplier":{"id":100,"key":100,"name":"\u6d3e\u62d3\u7f51\u7edc(\u4e0a\u6d77)\u6709\u9650\u8d23\u4efb\u516c\u53f8\u5317\u4eac\u5206\u516c\u53f8"}},"projectContactPointRels":[{"id":138,"project_id":3577,"contact_id":1262,"point":"26476.00","day_at":"2024-12-16","description":"","created_at":"2024-12-16 10:10:44"}],"status_display":"\u5df2\u6838\u9500"}],"buildSalesOrderItems":[{"id":9587,"project_id":3577},{"id":9589,"project_id":3577},{"id":9588,"project_id":3577},{"id":11245,"project_id":3577},{"id":11246,"project_id":3577},{"id":11247,"project_id":3577}],"reimbursementAmountSum":null,"profit":-1408.3134,"contact_points_status_display":"\u5df2\u6838\u9500"},"salesSupplierRels":[{"id":2535,"contract_id":3364,"supplier_id":90,"purchase_id":3365,"supplier":{"id":90,"key":90,"name":"\u7d2b\u5149\u6653\u901a\u79d1\u6280\u6709\u9650\u516c\u53f8"},"purchase":{"id":3365,"key":3365,"serial_no":"X_2024SBQ15876"}}],"contractType":{"id":1,"key":1,"name":"\u4ea7\u54c1\u9500\u552e"},"handleBy":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda","sex":"M","department_id":4,"avatar":{"id":2,"user_id":1001,"name":"\/files\/cdn\/a57be577deb434\/avatar\/9f73cfbd-bae6-3b50-b7ac-61b936c40727.png"}},"remindDate":null,"serviceContractRemindDates":[],"salesContractRemindReceivers":[],"serviceContractRemindReceivers":[],"salesContractPaymentCollectionRemindReceivers":[{"id":8209,"user_id":5388,"key":5388,"contract_id":3364,"user":{"id":5388,"key":5388,"name":"\u6768\u71d5\u971e","sex":"F","avatar":{"id":156,"user_id":5388,"name":"\/files\/cdn\/a57be577deb434\/avatar\/b8d4f68f-e736-3c38-9e2f-1ab47885b3d8.png"}}},{"id":8210,"user_id":1001,"key":1001,"contract_id":3364,"user":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda","sex":"M","avatar":{"id":2,"user_id":1001,"name":"\/files\/cdn\/a57be577deb434\/avatar\/9f73cfbd-bae6-3b50-b7ac-61b936c40727.png"}}}],"salesContractPaymentCollectionRemindDates":[{"id":2403,"key":2403,"contract_id":3364,"name":"2024-09-19","value":"198354","overdue_days":5,"pct":100,"collect_status":"\u5df2\u5b8c\u6210"}],"salesContractPayments":[{"id":1973,"key":1973,"contract_id":3364,"value":"198354","created_by":1013,"created_at":"2024-09-24 13:35:39","description":"","collected_date":"2024-09-24","amount":"198354","createdBy":{"id":1013,"key":1013,"name":"\u7fc1\u5bb6\u6210","sex":"M","department_id":7},"files":[{"id":28926,"object_type":109,"object_id":1973,"attachment_id":21679,"attachment":{"id":21679,"key":21679,"name":"496430bd-1d20-394f-8426-39e85ffc316d","extension":"png","path":"\/v2\/attachment\/view\/rpAaho7HBg3VJ1vNP7yVtm0Uw5j2xu-u\/496430bd-1d20-394f-8426-39e85ffc316d\/image.png","orig_name":"image.png"}}],"pct":100}],"salesContractInvoices":[{"id":1740,"key":1740,"contract_id":3364,"value":"198354.00","attachment_id":null,"from_date":"2024-08-05","description":"","is_draft":false,"attachment":null,"attachmentRelationships":[],"files":[{"id":28224,"object_type":102,"object_id":1740,"attachment_id":20711,"attachment":{"id":20711,"key":20711,"name":"d44661e9-76b4-39f7-8e83-f5e7e8888499","extension":"pdf","path":"\/v2\/attachment\/view\/rpAaho7HBg3VJ1vNP7yVtm0Uw5j2xu-u\/d44661e9-76b4-39f7-8e83-f5e7e8888499\/dzfp_24112000000099567263_\u5317\u4eac\u521b\u5b89\u5149\u901a\u79d1\u6280\u53d1\u5c55\u6709\u9650\u516c\u53f8_20240805172059.pdf","orig_name":"dzfp_24112000000099567263_\u5317\u4eac\u521b\u5b89\u5149\u901a\u79d1\u6280\u53d1\u5c55\u6709\u9650\u516c\u53f8_20240805172059.pdf"}}]}],"contractScans":[{"id":33120,"object_type":105,"object_id":3364,"attachment_id":19980,"attachment":{"id":19980,"key":19980,"name":"3f4fb0c6-72d6-34ed-ade6-f90f9c306016","extension":"pdf","path":"\/v2\/attachment\/preview\/rpAaho7HBg3VJ1vNP7yVtm0Uw5j2xu-u\/3f4fb0c6-72d6-34ed-ade6-f90f9c306016\/\u521b\u5b89\u5149\u901a.pdf","orig_name":"\u521b\u5b89\u5149\u901a.pdf"}}],"receiptScans":[{"id":27594,"object_type":106,"object_id":3364,"attachment_id":20715,"attachment":{"id":20715,"key":20715,"name":"4626bfd6-f39b-38de-bc6e-d57b6a614c1b","extension":"jpeg","path":"\/v2\/attachment\/preview\/rpAaho7HBg3VJ1vNP7yVtm0Uw5j2xu-u\/4626bfd6-f39b-38de-bc6e-d57b6a614c1b\/WechatIMG180.jpeg","orig_name":"WechatIMG180.jpeg"}}],"verifyScans":[],"unreadComments":null,"collected_plan":198354,"projectProductTotalAmount":198354,"projectProductAllAmount":true,"projectProductTotalCost":160407,"projectProductAllCost":true,"projectProductTotalCount":6,"invoiced":198354,"un_invoiced":0,"collected":198354,"un_collected":0,"is_collected":true,"handlerPerson":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda","avatar":{"id":2,"user_id":1001,"name":"\/files\/cdn\/a57be577deb434\/avatar\/9f73cfbd-bae6-3b50-b7ac-61b936c40727.png"}},"remind_date":"","remind_ahead_display":"\u65e0","expire_remind_ahead_display":"\u65e0","payment_collection_remind_ahead_display":"\u63d0\u524d7\u5929","can_update":true,"can_delete":false,"unread":0,"bgcolor":"#89c541","can_view_product":true,"can_progress":true}],"pagenation":{"totalcount":4,"thispage":1,"pagesize":10}},"status":1,"msg":[{"name":"success","success":"\u6210\u529f\u83b7\u53d6\u6570\u636e","error":""}]}', FALSE, '2025-07-01 12:19:34') RETURNING "id" |
12:19:34.726 | 2.3 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=102) AND ("object_id"=1740) |
12:19:34.729 | 2.3 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=105) AND ("object_id" IN (3836, 3844, 3835, 3364)) |
12:19:34.732 | 2.3 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=106) AND ("object_id" IN (3836, 3844, 3835, 3364)) |
12:19:34.707 | 2.3 ms | yii\db\Command::query | SELECT "project_id", sum(amount) AS sum FROM "a57be577deb434"."tbl_reimbursements" WHERE ("status" IN (3, 2)) AND ("project_id" IN (3577, 3801)) GROUP BY "project_id" |
12:19:34.735 | 2.2 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=107) AND ("object_id" IN (3836, 3844, 3835, 3364)) |
12:19:34.724 | 2.0 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=20) AND ("object_id"=1740) |
12:19:34.719 | 2.0 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=109) AND ("object_id" IN (1973, 2138, 2139, 2154, 2157, 2163)) |
12:19:34.680 | 1.8 ms | yii\db\Command::query | SELECT "id", "id" AS "key", "project_title" AS "name", "description", "total_contact_point", "paid_contact_point", "is_sales_order_ready", "project_product_version_id", "bargain_date", "collected", "profit_pct", "budget" FROM "a57be577deb434"."tbl_projects" WHERE "id" IN (3801, 3577) |
12:19:34.721 | 1.8 ms | yii\db\Command::query | SELECT "id", "id" AS "key", "name", "extension", "path", "orig_name" FROM "a57be577deb434"."tbl_attachments" WHERE "id" IN (21679, 24746) |
12:19:34.621 | 1.7 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000 |
12:19:34.624 | 1.3 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE ("id"='3278') AND ("deleted"=FALSE) |
12:19:34.698 | 1.0 ms | yii\db\Command::query | SELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_product_series" WHERE "id" IN (1359, 1243, 607, 1610) |
12:19:34.694 | 1.0 ms | yii\db\Command::query | SELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_suppliers" WHERE "id"=90 |
12:19:34.723 | 0.8 ms | yii\db\Command::query | SELECT "id", "id" AS "key", "contract_id", "amount" AS "value", "attachment_id", "from_date", "description", "is_draft" FROM "a57be577deb434"."tbl_sales_contract_invoices" WHERE "contract_id" IN (3836, 3844, 3835, 3364) ORDER BY "id" |
12:19:34.718 | 0.7 ms | yii\db\Command::query | SELECT "id", "id" AS "key", "contract_id", "amount" AS "value", "created_by", "created_at", "description", "collected_date", "amount" FROM "a57be577deb434"."tbl_sales_contract_payments" WHERE "contract_id" IN (3836, 3844, 3835, 3364) ORDER BY "id" |
12:19:34.714 | 0.6 ms | yii\db\Command::query | SELECT "id", "user_id", "user_id" AS "key", "contract_id" FROM "a57be577deb434"."tbl_sales_contract_remind_receivers" WHERE "contract_id" IN (3836, 3844, 3835, 3364) |
12:19:34.695 | 0.6 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_products" WHERE "id" IN (969, 1586, 1657, 1956) |
12:19:34.709 | 0.6 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_sales_supplier_rels" WHERE "contract_id" IN (3836, 3844, 3835, 3364) |
12:19:34.717 | 0.6 ms | yii\db\Command::query | SELECT "id", "id" AS "key", "contract_id", "remind_date" AS "name", "amount" AS "value", "overdue_days" FROM "a57be577deb434"."tbl_sales_contract_payment_collection_remind_dates" WHERE "contract_id" IN (3836, 3844, 3835, 3364) ORDER BY "remind_date" |
12:19:34.715 | 0.6 ms | yii\db\Command::query | SELECT "id", "user_id", "user_id" AS "key", "contract_id" FROM "a57be577deb434"."tbl_sales_contract_payment_collection_remind_receivers" WHERE "contract_id" IN (3836, 3844, 3835, 3364) |
12:19:34.700 | 0.5 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_project_contact_points" WHERE "project_id" IN (3577, 3801) |
12:19:34.713 | 0.5 ms | yii\db\Command::query | SELECT "id", "id" AS "key", "contract_id", "remind_date" FROM "a57be577deb434"."tbl_service_contract_remind_dates" WHERE ("reminded"=FALSE) AND ("contract_id" IN (3836, 3844, 3835, 3364)) ORDER BY "remind_date" |
12:19:34.679 | 0.5 ms | yii\db\Command::query | SELECT "id", "id" AS "key", "project_title" AS "name" FROM "a57be577deb434"."tbl_projects" WHERE "id" IN (3801, 3577) |
12:19:34.700 | 0.5 ms | yii\db\Command::query | SELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_product_units" WHERE "id" IN (2, 1) |
12:19:34.702 | 0.5 ms | yii\db\Command::query | SELECT "id", "id" AS "key", "name", "client_id", "supplier_id" FROM "a57be577deb434"."tbl_contacts" WHERE "id"=1262 |
12:19:34.653 | 0.5 ms | yii\db\Command::query | SELECT "id", "user_id", "meta_value" AS "name" FROM "a57be577deb434"."tbl_user_meta" WHERE ("meta_key"='avatar') AND ("user_id"=1001) |
12:19:34.710 | 0.5 ms | yii\db\Command::query | SELECT "id", "id" AS "key", "serial_no" FROM "a57be577deb434"."tbl_purchase_contracts" WHERE "id" IN (3834, 3365) |
12:19:34.703 | 0.4 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_project_contact_point_rels" WHERE ("contact_id", "project_id") IN ((1262, 3577)) |
12:19:34.696 | 0.4 ms | yii\db\Command::query | SELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_product_components" WHERE "id" IN (35, 36, 26, 41) |
12:19:34.696 | 0.4 ms | yii\db\Command::query | SELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_product_types" WHERE "id" IN (5, 7) |
12:19:34.735 | 0.4 ms | yii\db\Command::query | SELECT "id", "id" AS "key", "name", "extension", "path", "orig_name" FROM "a57be577deb434"."tbl_attachments" WHERE "id"=20715 |
12:19:34.697 | 0.4 ms | yii\db\Command::query | SELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_product_brands" WHERE "id" IN (8, 12) |
12:19:34.714 | 0.4 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_service_contract_remind_receivers" WHERE "contract_id" IN (3836, 3844, 3835, 3364) |
12:19:34.711 | 0.4 ms | yii\db\Command::query | SELECT "id", "id" AS "key", "type" AS "name" FROM "a57be577deb434"."tbl_contract_types" WHERE "id"=1 |
12:19:34.652 | 0.3 ms | yii\db\Command::query | SELECT "id", "id" AS "key", "name", "logo", "sales_rep" FROM "a57be577deb434"."tbl_clients" WHERE "id"=3278 |
12:19:34.654 | 0.3 ms | yii\db\Command::query | SELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_departments" WHERE "id"=4 |
12:19:34.716 | 0.3 ms | yii\db\Command::query | SELECT "id", "user_id", "meta_value" AS "name" FROM "a57be577deb434"."tbl_user_meta" WHERE ("meta_key"='avatar') AND ("user_id" IN (1001, 1011, 1005, 5388)) |
12:19:34.718 | 0.3 ms | yii\db\Command::query | SELECT "id", "id" AS "key", "name", "sex", "department_id" FROM "a57be577deb434"."tbl_users" WHERE "id" IN (1013, 1001, 1000) |
12:19:34.716 | 0.3 ms | yii\db\Command::query | SELECT "id", "id" AS "key", "name", "sex" FROM "a57be577deb434"."tbl_users" WHERE "id" IN (5388, 1001, 1011, 1005) |
12:19:34.712 | 0.3 ms | yii\db\Command::query | SELECT "id", "id" AS "key", "name", "sex", "department_id" FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
12:19:34.729 | 0.3 ms | yii\db\Command::query | SELECT "id", "id" AS "key", "name", "extension", "path", "orig_name" FROM "a57be577deb434"."tbl_attachments" WHERE "id"=20711 |
12:19:34.713 | 0.3 ms | yii\db\Command::query | SELECT "id", "id" AS "key", "contract_id", "remind_date" AS "name" FROM "a57be577deb434"."tbl_service_contract_remind_dates" WHERE "contract_id" IN (3836, 3844, 3835, 3364) |
12:19:34.653 | 0.3 ms | yii\db\Command::query | SELECT "id", "id" AS "key", "name", "sex", "department_id" FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
12:19:34.710 | 0.3 ms | yii\db\Command::query | SELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_suppliers" WHERE "id" IN (431, 90) |
12:19:34.652 | 0.3 ms | yii\db\Command::query | SELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
12:19:34.712 | 0.3 ms | yii\db\Command::query | SELECT "id", "user_id", "meta_value" AS "name" FROM "a57be577deb434"."tbl_user_meta" WHERE ("meta_key"='avatar') AND ("user_id"=1001) |
12:19:34.654 | 0.3 ms | yii\db\Command::query | SELECT "id", "user_id", "meta_value" AS "name" FROM "a57be577deb434"."tbl_user_meta" WHERE ("meta_key"='avatar') AND ("user_id"=1001) |
12:19:34.703 | 0.2 ms | yii\db\Command::query | SELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_suppliers" WHERE "id"=100 |
12:19:34.732 | 0.2 ms | yii\db\Command::query | SELECT "id", "id" AS "key", "name", "extension", "path", "orig_name" FROM "a57be577deb434"."tbl_attachments" WHERE "id"=19980 |