Performance Profiling

Total processing time: 234 ms; Peak memory: 5.330 MB. Show Profiling Timeline

总计59条数据
TimeDurationCategoryInfo
  
16:43:21.49733.2 msyii\db\Command::querySELECT "object_id", count(*) AS comment FROM "a57be577deb434"."tbl_comments" WHERE ("object_type"=7) AND ("object_id" IN (3843, 3841, 3840, 3703, 3550)) GROUP BY "object_id"
16:43:21.53528.7 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_products" WHERE "id" IN (1340, 849, 1471, 1787, 1788, 1789, 1107, 1895, 1896, 1897, 1956, 1954)
16:43:21.63222.8 msyii\db\Command::querySELECT "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 (3843, 3841, 3840, 3703, 3550)) GROUP BY "object_id"
16:43:21.46410.7 msyii\db\Command::querySELECT 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"='3304' GROUP BY "c"."id" ORDER BY "c"."signed_at" DESC, "c"."created_at" DESC) "c"
16:43:21.6579.2 msyii\db\Command::queryINSERT INTO "global"."tbl_api_log" ("code", "schema", "user_id", "device_type", "version_code", "url", "request", "response", "php_error", "time") VALUES (200, 'a57be577deb434', 1000, 6, 166, 'v2/sales-contract/of-client', '{"id":"3304","page":"1","pagesize":"10","posttime":"1751359401","access_token":"rpAaho7HBg3VJ1vNP7yVtm0Uw5j2xu-u","device_type":"6","version_code":"166","token":"bcbfb50433119b9a08a4502b9e21c48b"}', '{"code":200,"data":{"list":[{"id":3843,"client_id":3304,"signed_at":"2025-06-11","amount":"1","handler":1001,"description":"","created_by":1001,"created_at":"2025-06-11 11:06:41","updated_at":"2025-06-27 14:39:20","contract_scan":null,"receipt_scan":null,"contract_type":1,"project_id":3809,"valid_date":null,"expire_date":null,"sla":"","remind_ahead":"","expire_remind_ahead":"","expire_reminded":false,"serial_no":"TS-LRC-20250611001","payment_collection_remind_ahead":"1 day","from_project":3809,"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 11:10:21.568929+08","b_date":null,"passed":1,"client":{"id":3304,"key":3304,"name":"\u5317\u4eac\u6708\u521d\u79d1\u6280\u6709\u9650\u516c\u53f8\uff08\u8fc7\u5355\uff09","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":3843,"comment":1},"project":{"id":3809,"key":3809,"name":"\u6d4b\u8bd5\u9ed8\u8ba4\u9009\u4e2d\u660e\u786e\u9700\u6c42"},"fromProject":{"id":3809,"key":3809,"name":"\u6d4b\u8bd5\u9ed8\u8ba4\u9009\u4e2d\u660e\u786e\u9700\u6c42","description":"","total_contact_point":null,"paid_contact_point":null,"is_sales_order_ready":true,"project_product_version_id":null,"bargain_date":"2025-06-11","collected":"0","profit_pct":"100","budget":"1","projectProductTypes":[{"id":6260,"product_type_id":2,"key":2,"name":"\u670d\u52a1\u5668","budget":"1","pct":"100","project_id":3809,"profit":"1"}],"projectProductRels":[],"projectContactPoints":[],"buildSalesOrderItems":[],"reimbursementAmountSum":null,"profit":1,"contact_points_status_display":"\u672a\u8bbe\u7f6e"},"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":8223,"user_id":1005,"key":1005,"contract_id":3843,"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":8224,"user_id":1001,"key":1001,"contract_id":3843,"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":2382,"key":2382,"contract_id":3843,"name":"2025-06-11","value":"3000","overdue_days":null,"pct":300000,"collect_status":"\u903e\u671f20\u5929"}],"salesContractPayments":[],"salesContractInvoices":[],"contractScans":[{"id":33154,"object_type":105,"object_id":3843,"attachment_id":24777,"attachment":{"id":24777,"key":24777,"name":"36dc6b1c-8a09-3bd7-9444-1382484072e9","extension":"pdf","path":"\/v2\/attachment\/preview\/rpAaho7HBg3VJ1vNP7yVtm0Uw5j2xu-u\/36dc6b1c-8a09-3bd7-9444-1382484072e9\/InvSqrt.pdf","orig_name":"InvSqrt.pdf"}}],"receiptScans":[],"verifyScans":[],"unreadComments":null,"collected_plan":3000,"projectProductTotalAmount":0,"projectProductAllAmount":true,"projectProductTotalCost":0,"projectProductAllCost":true,"projectProductTotalCount":0,"invoiced":0,"un_invoiced":1,"collected":0,"un_collected":1,"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":false,"unread":0,"bgcolor":"#89c541","can_view_product":true,"can_progress":true},{"id":3841,"client_id":3304,"signed_at":"2025-06-10","amount":"0","handler":1001,"description":"","created_by":1001,"created_at":"2025-06-10 16:16:49","updated_at":"2025-06-10 16:22:13","contract_scan":null,"receipt_scan":null,"contract_type":1,"project_id":3808,"valid_date":null,"expire_date":null,"sla":"","remind_ahead":"","expire_remind_ahead":"","expire_reminded":false,"serial_no":"","payment_collection_remind_ahead":"1 day","from_project":3808,"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 11:03:55.970013+08","b_date":null,"passed":1,"client":{"id":3304,"key":3304,"name":"\u5317\u4eac\u6708\u521d\u79d1\u6280\u6709\u9650\u516c\u53f8\uff08\u8fc7\u5355\uff09","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":{"id":3808,"key":3808,"name":"\u7684\u662f\u5426\u5730\u65b9\u6492"},"fromProject":{"id":3808,"key":3808,"name":"\u7684\u662f\u5426\u5730\u65b9\u6492","description":"","total_contact_point":null,"paid_contact_point":null,"is_sales_order_ready":false,"project_product_version_id":811,"bargain_date":"2025-06-10","collected":"0","profit_pct":"0","budget":"0","projectProductTypes":[],"projectProductRels":[{"id":9091,"project_id":3808,"product_id":1956,"amount":"333.33","number":3,"cost":"1.66","description":"","supplier_id":null,"hardware_from":null,"software_from":null,"maintenance_from":null,"hardware_to":null,"software_to":null,"maintenance_to":null,"total_amount":"1000.00","total_cost":"5.00","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"}}},{"id":9092,"project_id":3808,"product_id":1954,"amount":"333.33","number":3,"cost":"1.66","description":"","supplier_id":null,"hardware_from":null,"software_from":null,"maintenance_from":null,"hardware_to":null,"software_to":null,"maintenance_to":null,"total_amount":"1000.00","total_cost":"5.00","supplier":null,"product":{"id":1954,"name":"114-00087+C0","product_type":3,"product_component":39,"product_brand":6,"product_serie":1608,"product_misc":null,"product_qa":null,"pn":"","description":"NetApp FAS2XXX 750W\u7535\u6e90","created_by":1013,"created_at":"2025-03-06 10:01:07","updated_at":"2025-03-07 17:56:13","pinyin_shortcut":"11400087C0","product_unit":3,"is_renew":false,"productType":{"id":3,"key":3,"name":"\u5b58\u50a8\u8bbe\u5907"},"productComponent":{"id":39,"key":39,"name":"\u5b58\u50a8\u914d\u4ef6"},"productBrand":{"id":6,"key":6,"name":"NetAPP"},"productSerie":{"id":1608,"key":1608,"name":"NetApp FAS\u7cfb\u5217\u7535\u6e90"},"productUnit":{"id":3,"key":3,"name":"\u4e2a"}}}],"projectContactPoints":[],"buildSalesOrderItems":[],"reimbursementAmountSum":null,"profit":0,"contact_points_status_display":"\u672a\u8bbe\u7f6e"},"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":8148,"user_id":1005,"key":1005,"contract_id":3841,"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":8149,"user_id":1001,"key":1001,"contract_id":3841,"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":2378,"key":2378,"contract_id":3841,"name":"2025-06-11","value":"2000","overdue_days":null,"pct":"","collect_status":"\u903e\u671f20\u5929"}],"salesContractPayments":[],"salesContractInvoices":[],"contractScans":[],"receiptScans":[],"verifyScans":[],"unreadComments":null,"collected_plan":2000,"projectProductTotalAmount":2000,"projectProductAllAmount":true,"projectProductTotalCost":10,"projectProductAllCost":true,"projectProductTotalCount":6,"invoiced":0,"un_invoiced":0,"collected":0,"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\u524d1\u5929","can_update":true,"can_delete":false,"unread":0,"bgcolor":"#89c541","can_view_product":true,"can_progress":true},{"id":3840,"client_id":3304,"signed_at":"2025-06-09","amount":"34000","handler":1001,"description":"","created_by":1001,"created_at":"2025-06-09 17:26:40","updated_at":"2025-06-11 11:22:44","contract_scan":null,"receipt_scan":null,"contract_type":1,"project_id":3807,"valid_date":null,"expire_date":null,"sla":"","remind_ahead":"","expire_remind_ahead":"","expire_reminded":false,"serial_no":"","payment_collection_remind_ahead":"2 days","from_project":3807,"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 11:24:24.19598+08","b_date":null,"passed":1,"client":{"id":3304,"key":3304,"name":"\u5317\u4eac\u6708\u521d\u79d1\u6280\u6709\u9650\u516c\u53f8\uff08\u8fc7\u5355\uff09","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":3840,"comment":1},"project":{"id":3807,"key":3807,"name":"\u6d4b\u8bd5 \u4f3c\u61c2\u975e\u61c2\u8212\u670d\u8303\u5fb7\u8428\u4e0a"},"fromProject":{"id":3807,"key":3807,"name":"\u6d4b\u8bd5 \u4f3c\u61c2\u975e\u61c2\u8212\u670d\u8303\u5fb7\u8428\u4e0a","description":"","total_contact_point":null,"paid_contact_point":null,"is_sales_order_ready":false,"project_product_version_id":812,"bargain_date":"2025-06-09","collected":"34000","profit_pct":"80","budget":"34000","projectProductTypes":[{"id":6245,"product_type_id":2,"key":2,"name":"\u670d\u52a1\u5668","budget":"34000","pct":"80","project_id":3807,"profit":"27200"}],"projectProductRels":[{"id":9099,"project_id":3807,"product_id":1956,"amount":"434.00","number":1,"cost":"3.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":"434","total_cost":"3","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"}}},{"id":9100,"project_id":3807,"product_id":1954,"amount":"434.00","number":1,"cost":"3.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":"434","total_cost":"3","supplier":null,"product":{"id":1954,"name":"114-00087+C0","product_type":3,"product_component":39,"product_brand":6,"product_serie":1608,"product_misc":null,"product_qa":null,"pn":"","description":"NetApp FAS2XXX 750W\u7535\u6e90","created_by":1013,"created_at":"2025-03-06 10:01:07","updated_at":"2025-03-07 17:56:13","pinyin_shortcut":"11400087C0","product_unit":3,"is_renew":false,"productType":{"id":3,"key":3,"name":"\u5b58\u50a8\u8bbe\u5907"},"productComponent":{"id":39,"key":39,"name":"\u5b58\u50a8\u914d\u4ef6"},"productBrand":{"id":6,"key":6,"name":"NetAPP"},"productSerie":{"id":1608,"key":1608,"name":"NetApp FAS\u7cfb\u5217\u7535\u6e90"},"productUnit":{"id":3,"key":3,"name":"\u4e2a"}}}],"projectContactPoints":[],"buildSalesOrderItems":[],"reimbursementAmountSum":null,"profit":27200,"contact_points_status_display":"\u672a\u8bbe\u7f6e"},"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":8185,"user_id":1005,"key":1005,"contract_id":3840,"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":8186,"user_id":1001,"key":1001,"contract_id":3840,"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":2398,"key":2398,"contract_id":3840,"name":"2025-06-11","value":"222","overdue_days":null,"pct":0.65,"collect_status":"\u5df2\u5b8c\u6210"},{"id":2399,"key":2399,"contract_id":3840,"name":"2025-06-12","value":"4000","overdue_days":null,"pct":11.76,"collect_status":"\u5df2\u5b8c\u6210"}],"salesContractPayments":[{"id":2162,"key":2162,"contract_id":3840,"value":"34000","created_by":5250,"created_at":"2025-06-09 18:05:34","description":"sdf sdf sdf ","collected_date":"2025-06-09","amount":"34000","createdBy":{"id":5250,"key":5250,"name":"\u8463\u8363","sex":"M","department_id":10},"files":[{"id":33119,"object_type":109,"object_id":2162,"attachment_id":24740,"attachment":{"id":24740,"key":24740,"name":"f0474379-5e7d-3e07-ad94-9e4896bf87c8","extension":"docx","path":"\/v2\/attachment\/view\/rpAaho7HBg3VJ1vNP7yVtm0Uw5j2xu-u\/f0474379-5e7d-3e07-ad94-9e4896bf87c8\/05-05\u5f85\u5f00\u53d1.docx","orig_name":"05-05\u5f85\u5f00\u53d1.docx"}}],"pct":100}],"salesContractInvoices":[],"contractScans":[],"receiptScans":[],"verifyScans":[],"unreadComments":null,"collected_plan":4222,"projectProductTotalAmount":868,"projectProductAllAmount":true,"projectProductTotalCost":6,"projectProductAllCost":true,"projectProductTotalCount":2,"invoiced":0,"un_invoiced":34000,"collected":34000,"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\u524d2\u5929","can_update":true,"can_delete":false,"unread":0,"bgcolor":"#89c541","can_view_product":true,"can_progress":true},{"id":3703,"client_id":3304,"signed_at":"2024-12-11","amount":"319460.45","handler":1001,"description":"","created_by":1001,"created_at":"2024-12-11 10:33:14","updated_at":"2025-03-17 16:44:24","contract_scan":null,"receipt_scan":null,"contract_type":1,"project_id":3723,"valid_date":null,"expire_date":null,"sla":"","remind_ahead":"","expire_remind_ahead":"","expire_reminded":false,"serial_no":"TS-LRC-20241211001","payment_collection_remind_ahead":"2 days","from_project":3723,"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-01-08 15:44:27.669239+08","b_date":null,"passed":1,"client":{"id":3304,"key":3304,"name":"\u5317\u4eac\u6708\u521d\u79d1\u6280\u6709\u9650\u516c\u53f8\uff08\u8fc7\u5355\uff09","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":3703,"comment":10},"project":{"id":3723,"key":3723,"name":"PAN-M-300\u8bbe\u5907\u91c7\u8d2d\u9879\u76ee"},"fromProject":{"id":3723,"key":3723,"name":"PAN-M-300\u8bbe\u5907\u91c7\u8d2d\u9879\u76ee","description":"","total_contact_point":"14351","paid_contact_point":"14351","is_sales_order_ready":true,"project_product_version_id":703,"bargain_date":"2024-12-11","collected":"319460.45","profit_pct":"0.36","budget":"319460.45","projectProductTypes":[{"id":6109,"product_type_id":5,"key":5,"name":"\u5b89\u5168\u8bbe\u5907","budget":"319460.45","pct":"0.36","project_id":3723,"profit":"1150.05762"}],"projectProductRels":[{"id":9008,"project_id":3723,"product_id":1895,"amount":"142435.17","number":1,"cost":"100000.00","description":"","supplier_id":90,"hardware_from":null,"software_from":null,"maintenance_from":null,"hardware_to":null,"software_to":null,"maintenance_to":null,"total_amount":"142435.17","total_cost":"100000","supplier":{"id":90,"key":90,"name":"\u7d2b\u5149\u6653\u901a\u79d1\u6280\u6709\u9650\u516c\u53f8"},"product":{"id":1895,"name":"PAN-M-300","product_type":5,"product_component":26,"product_brand":8,"product_serie":1579,"product_misc":null,"product_qa":null,"pn":"","description":"Palo Alto Networks M-300, 16TB RAID storage (4 8TB RAID certified drives preinstalled). Rack mount rails included.","created_by":1013,"created_at":"2024-12-11 10:53:38","updated_at":"2024-12-11 10:53:38","pinyin_shortcut":"PANM300","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":1579,"key":1579,"name":"PAN-M-300\u9632\u706b\u5899\u4e3b\u673a"},"productUnit":{"id":1,"key":1,"name":"\u53f0"}}},{"id":9009,"project_id":3723,"product_id":1896,"amount":"40695.76","number":1,"cost":"41807.00","description":"","supplier_id":90,"hardware_from":null,"software_from":null,"maintenance_from":null,"hardware_to":null,"software_to":null,"maintenance_to":null,"total_amount":"40695.76","total_cost":"41807","supplier":{"id":90,"key":90,"name":"\u7d2b\u5149\u6653\u901a\u79d1\u6280\u6709\u9650\u516c\u53f8"},"product":{"id":1896,"name":"PAN-M-300-P-25","product_type":5,"product_component":36,"product_brand":8,"product_serie":1580,"product_misc":null,"product_qa":null,"pn":"","description":"Panorama central management software license, 25 devices or log collector for the M-300","created_by":1013,"created_at":"2024-12-11 10:55:06","updated_at":"2024-12-11 10:55:06","pinyin_shortcut":"PANM300P25","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":1580,"key":1580,"name":"PAN-M-300\u8f6f\u4ef6\u6388\u6743\u8bb8\u53ef"},"productUnit":{"id":2,"key":2,"name":"\u5957"}}},{"id":9010,"project_id":3723,"product_id":1897,"amount":"136329.52","number":1,"cost":"150000.00","description":"","supplier_id":90,"hardware_from":null,"software_from":null,"maintenance_from":null,"hardware_to":null,"software_to":null,"maintenance_to":null,"total_amount":"136329.52","total_cost":"150000","supplier":{"id":90,"key":90,"name":"\u7d2b\u5149\u6653\u901a\u79d1\u6280\u6709\u9650\u516c\u53f8"},"product":{"id":1897,"name":"PAN-SVC-BKLN-M-300-P-25-3Y","product_type":5,"product_component":36,"product_brand":8,"product_serie":1580,"product_misc":null,"product_qa":null,"pn":"","description":"Partner enabled premium support 3-year term, Panorama M-300 25 devices or log collector 36\u4e2a\u6708\u8ba2\u9605\u5f0f","created_by":1013,"created_at":"2024-12-11 10:55:48","updated_at":"2024-12-11 10:55:48","pinyin_shortcut":"PANSVCBKLNM300P253Y","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":1580,"key":1580,"name":"PAN-M-300\u8f6f\u4ef6\u6388\u6743\u8bb8\u53ef"},"productUnit":{"id":2,"key":2,"name":"\u5957"}}}],"projectContactPoints":[{"id":916,"project_id":3723,"contact_id":1262,"point":"14351.00","paid_point":"14351","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":176,"project_id":3723,"contact_id":1262,"point":"14351.00","day_at":"2025-03-17","description":"","created_at":"2025-03-17 16:44:24"}],"status_display":"\u5df2\u6838\u9500"}],"buildSalesOrderItems":[{"id":12404,"project_id":3723},{"id":12405,"project_id":3723},{"id":12403,"project_id":3723}],"reimbursementAmountSum":null,"profit":1150.05762,"contact_points_status_display":"\u5df2\u6838\u9500"},"salesSupplierRels":[{"id":2510,"contract_id":3703,"supplier_id":90,"purchase_id":3704,"supplier":{"id":90,"key":90,"name":"\u7d2b\u5149\u6653\u901a\u79d1\u6280\u6709\u9650\u516c\u53f8"},"purchase":{"id":3704,"key":3704,"serial_no":"X_2024SBQ32972"}}],"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":8057,"user_id":1001,"key":1001,"contract_id":3703,"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":8058,"user_id":5388,"key":5388,"contract_id":3703,"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"}}}],"salesContractPaymentCollectionRemindDates":[{"id":2301,"key":2301,"contract_id":3703,"name":"2025-02-22","value":"319460.45","overdue_days":null,"pct":100,"collect_status":"\u5df2\u5b8c\u6210"}],"salesContractPayments":[{"id":2114,"key":2114,"contract_id":3703,"value":"319460.45","created_by":1013,"created_at":"2025-02-24 10:15:41","description":"","collected_date":"2025-02-20","amount":"319460.45","createdBy":{"id":1013,"key":1013,"name":"\u7fc1\u5bb6\u6210","sex":"M","department_id":7},"files":[{"id":32479,"object_type":109,"object_id":2114,"attachment_id":24262,"attachment":{"id":24262,"key":24262,"name":"4b9a994e-e402-3f7b-b1e8-3944421caa0e","extension":"png","path":"\/v2\/attachment\/view\/rpAaho7HBg3VJ1vNP7yVtm0Uw5j2xu-u\/4b9a994e-e402-3f7b-b1e8-3944421caa0e\/image.png","orig_name":"image.png"}}],"pct":100}],"salesContractInvoices":[{"id":1942,"key":1942,"contract_id":3703,"value":"319460.45","attachment_id":null,"from_date":"2025-01-17","description":"","is_draft":false,"attachment":null,"attachmentRelationships":[],"files":[{"id":31909,"object_type":102,"object_id":1942,"attachment_id":23800,"attachment":{"id":23800,"key":23800,"name":"3bec5ef4-a6cc-303b-b3d8-ac17e5b9209e","extension":"pdf","path":"\/v2\/attachment\/view\/rpAaho7HBg3VJ1vNP7yVtm0Uw5j2xu-u\/3bec5ef4-a6cc-303b-b3d8-ac17e5b9209e\/dzfp_25112000000014350374_\u5317\u4eac\u6708\u521d\u79d1\u6280\u6709\u9650\u516c\u53f8_20250117153611.pdf","orig_name":"dzfp_25112000000014350374_\u5317\u4eac\u6708\u521d\u79d1\u6280\u6709\u9650\u516c\u53f8_20250117153611.pdf"}}]}],"contractScans":[{"id":32995,"object_type":105,"object_id":3703,"attachment_id":23131,"attachment":{"id":23131,"key":23131,"name":"b8de52a8-dac7-3039-9f15-cb2e96646d45","extension":"pdf","path":"\/v2\/attachment\/preview\/rpAaho7HBg3VJ1vNP7yVtm0Uw5j2xu-u\/b8de52a8-dac7-3039-9f15-cb2e96646d45\/2024_12_12_09_19_57.pdf","orig_name":"2024_12_12_09_19_57.pdf"}}],"receiptScans":[{"id":31635,"object_type":106,"object_id":3703,"attachment_id":23594,"attachment":{"id":23594,"key":23594,"name":"0f2e2b61-0062-3af4-a515-c0bf17237292","extension":"pdf","path":"\/v2\/attachment\/preview\/rpAaho7HBg3VJ1vNP7yVtm0Uw5j2xu-u\/0f2e2b61-0062-3af4-a515-c0bf17237292\/\u6708\u521d\u7b7e\u6536\u5355.pdf","orig_name":"\u6708\u521d\u7b7e\u6536\u5355.pdf"}}],"verifyScans":[],"unreadComments":null,"collected_plan":319460.45,"projectProductTotalAmount":319460.45,"projectProductAllAmount":true,"projectProductTotalCost":291807,"projectProductAllCost":true,"projectProductTotalCount":3,"invoiced":319460.45,"un_invoiced":0,"collected":319460.45,"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\u524d2\u5929","can_update":true,"can_delete":false,"unread":0,"bgcolor":"#89c541","can_view_product":true,"can_progress":true},{"id":3550,"client_id":3304,"signed_at":"2024-09-19","amount":"160023.44","handler":1001,"description":"","created_by":1001,"created_at":"2024-09-19 15:36:45","updated_at":"2024-12-16 10:06:46","contract_scan":null,"receipt_scan":null,"contract_type":1,"project_id":3661,"valid_date":null,"expire_date":null,"sla":"","remind_ahead":"","expire_remind_ahead":"","expire_reminded":false,"serial_no":"TS-LRC-20240919002","payment_collection_remind_ahead":"2 days","from_project":3661,"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":"2024-10-21 14:54:53.380601+08","b_date":null,"passed":1,"client":{"id":3304,"key":3304,"name":"\u5317\u4eac\u6708\u521d\u79d1\u6280\u6709\u9650\u516c\u53f8\uff08\u8fc7\u5355\uff09","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":3550,"comment":8},"project":{"id":3661,"key":3661,"name":"4\u53f0 PA440\u5957\u5305\u4ea7\u54c1\u91c7\u8d2d\u9879\u76ee"},"fromProject":{"id":3661,"key":3661,"name":"4\u53f0 PA440\u5957\u5305\u4ea7\u54c1\u91c7\u8d2d\u9879\u76ee","description":"","total_contact_point":"17577","paid_contact_point":"17577","is_sales_order_ready":true,"project_product_version_id":589,"bargain_date":"2024-09-19","collected":"160023.44","profit_pct":"0.43","budget":"160023.44","projectProductTypes":[{"id":5700,"product_type_id":87,"key":87,"name":"\u5b89\u5168","budget":"160023.44","pct":"0.43","project_id":3661,"profit":"688.100792"}],"projectProductRels":[{"id":7934,"project_id":3661,"product_id":1340,"amount":"759.65","number":4,"cost":"780","description":"","supplier_id":46,"hardware_from":null,"software_from":null,"maintenance_from":null,"hardware_to":null,"software_to":null,"maintenance_to":null,"total_amount":"3038.60","total_cost":"3120","supplier":{"id":46,"key":46,"name":"\u795e\u5dde\u6570\u7801(\u4e2d\u56fd)\u6709\u9650\u516c\u53f8"},"product":{"id":1340,"name":"PAN-PWR-50W-AC","product_type":5,"product_component":157,"product_brand":8,"product_serie":1012,"product_misc":null,"product_qa":null,"pn":"","description":"50W AC power adapter for PA-440 PA-450 and PA-460","created_by":1013,"created_at":"2024-01-25 09:26:04","updated_at":"2024-01-25 09:26:04","pinyin_shortcut":"PANPWR50WAC","product_unit":3,"is_renew":false,"productType":{"id":5,"key":5,"name":"\u5b89\u5168\u8bbe\u5907"},"productComponent":{"id":157,"key":157,"name":"\u9632\u706b\u5899\u914d\u4ef6"},"productBrand":{"id":8,"key":8,"name":"Paloalto"},"productSerie":{"id":1012,"key":1012,"name":"PA-440\/450\/460\u7535\u6e90"},"productUnit":{"id":3,"key":3,"name":"\u4e2a"}}},{"id":7935,"project_id":3661,"product_id":849,"amount":"7705.06","number":4,"cost":"5838","description":"","supplier_id":46,"hardware_from":null,"software_from":null,"maintenance_from":null,"hardware_to":null,"software_to":null,"maintenance_to":null,"total_amount":"30820.24","total_cost":"23352","supplier":{"id":46,"key":46,"name":"\u795e\u5dde\u6570\u7801(\u4e2d\u56fd)\u6709\u9650\u516c\u53f8"},"product":{"id":849,"name":"PAN-PA-440","product_type":5,"product_component":26,"product_brand":8,"product_serie":801,"product_misc":null,"product_qa":null,"pn":"","description":"Palo Alto Networks PA-440","created_by":1013,"created_at":"2022-07-25 15:54:45","updated_at":"2024-01-12 15:21:09","pinyin_shortcut":"PANPA440","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":801,"key":801,"name":"PA-440\u9632\u706b\u5899\u4e3b\u673a"},"productUnit":{"id":1,"key":1,"name":"\u53f0"}}},{"id":7936,"project_id":3661,"product_id":1471,"amount":"11883.16","number":4,"cost":"9744","description":"","supplier_id":46,"hardware_from":null,"software_from":null,"maintenance_from":null,"hardware_to":null,"software_to":null,"maintenance_to":null,"total_amount":"47532.64","total_cost":"38976","supplier":{"id":46,"key":46,"name":"\u795e\u5dde\u6570\u7801(\u4e2d\u56fd)\u6709\u9650\u516c\u53f8"},"product":{"id":1471,"name":"PAN-PA-440-BND-CORESEC-3YR","product_type":5,"product_component":36,"product_brand":8,"product_serie":999,"product_misc":null,"product_qa":null,"pn":"","description":"PA-440, Core Security Subscription Bundle\n(Advanced Threat Prevention, Advanced URL Filtering, Advanced Wildfire, DNS Security and SD-WAN), 3 years (36 months)term","created_by":1013,"created_at":"2024-03-01 17:41:36","updated_at":"2024-03-01 17:41:52","pinyin_shortcut":"PANPA440BNDCORESEC3YR","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":999,"key":999,"name":"PA440\u8f6f\u4ef6\u6388\u6743"},"productUnit":{"id":2,"key":2,"name":"\u5957"}}},{"id":7937,"project_id":3661,"product_id":1787,"amount":"7162.45","number":4,"cost":"7356","description":"","supplier_id":46,"hardware_from":null,"software_from":null,"maintenance_from":null,"hardware_to":null,"software_to":null,"maintenance_to":null,"total_amount":"28649.80","total_cost":"29424","supplier":{"id":46,"key":46,"name":"\u795e\u5dde\u6570\u7801(\u4e2d\u56fd)\u6709\u9650\u516c\u53f8"},"product":{"id":1787,"name":"PAN-PA-440-DLP-3YR","product_type":5,"product_component":36,"product_brand":8,"product_serie":999,"product_misc":null,"product_qa":null,"pn":"","description":"PA-440, DLP subscription, 3 years (36 months), term.\n36\u4e2a\u6708\u8ba2\u9605\u5f0f","created_by":1013,"created_at":"2024-09-23 11:33:55","updated_at":"2024-09-23 11:33:55","pinyin_shortcut":"PANPA440DLP3YR","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":999,"key":999,"name":"PA440\u8f6f\u4ef6\u6388\u6743"},"productUnit":{"id":2,"key":2,"name":"\u5957"}}},{"id":7938,"project_id":3661,"product_id":1788,"amount":"4232.36","number":4,"cost":"4347","description":"","supplier_id":46,"hardware_from":null,"software_from":null,"maintenance_from":null,"hardware_to":null,"software_to":null,"maintenance_to":null,"total_amount":"16929.44","total_cost":"17388","supplier":{"id":46,"key":46,"name":"\u795e\u5dde\u6570\u7801(\u4e2d\u56fd)\u6709\u9650\u516c\u53f8"},"product":{"id":1788,"name":"PAN-PA-440-GP-3YR","product_type":5,"product_component":36,"product_brand":8,"product_serie":999,"product_misc":null,"product_qa":null,"pn":"","description":"PA-440, GlobalProtect subscription, 3 years (36 months), term. 36\u4e2a\u6708\u8ba2\u9605\u5f0f","created_by":1013,"created_at":"2024-09-23 11:34:27","updated_at":"2024-09-23 11:34:27","pinyin_shortcut":"PANPA440GP3YR","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":999,"key":999,"name":"PA440\u8f6f\u4ef6\u6388\u6743"},"productUnit":{"id":2,"key":2,"name":"\u5957"}}},{"id":7939,"project_id":3661,"product_id":1789,"amount":"4178.1","number":4,"cost":"682","description":"","supplier_id":46,"hardware_from":null,"software_from":null,"maintenance_from":null,"hardware_to":null,"software_to":null,"maintenance_to":null,"total_amount":"16712.4","total_cost":"2728","supplier":{"id":46,"key":46,"name":"\u795e\u5dde\u6570\u7801(\u4e2d\u56fd)\u6709\u9650\u516c\u53f8"},"product":{"id":1789,"name":"PAN-PA-440-IOT-ENT-3YR","product_type":5,"product_component":36,"product_brand":8,"product_serie":999,"product_misc":null,"product_qa":null,"pn":"","description":"PA-440, Enterprise IoT subscription, 3 years (36 months) term. 36\u4e2a\u6708\u8ba2\u9605\u5f0f","created_by":1013,"created_at":"2024-09-23 11:34:58","updated_at":"2024-09-23 11:34:58","pinyin_shortcut":"PANPA440IOTENT3YR","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":999,"key":999,"name":"PA440\u8f6f\u4ef6\u6388\u6743"},"productUnit":{"id":2,"key":2,"name":"\u5957"}}},{"id":7940,"project_id":3661,"product_id":1107,"amount":"4085.08","number":4,"cost":"4333","description":"","supplier_id":46,"hardware_from":null,"software_from":null,"maintenance_from":null,"hardware_to":null,"software_to":null,"maintenance_to":null,"total_amount":"16340.32","total_cost":"17332","supplier":{"id":46,"key":46,"name":"\u795e\u5dde\u6570\u7801(\u4e2d\u56fd)\u6709\u9650\u516c\u53f8"},"product":{"id":1107,"name":"PAN-SVC-BKLN-440-3YR","product_type":5,"product_component":35,"product_brand":8,"product_serie":784,"product_misc":null,"product_qa":null,"pn":"","description":"PA-440, Premium support, 3 years (36 months), term.","created_by":1013,"created_at":"2023-11-29 13:34:57","updated_at":"2024-01-12 14:10:04","pinyin_shortcut":"PANSVCBKLN4403YR","product_unit":8,"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":784,"key":784,"name":"PA440\u4e09\u5e74\u670d\u52a1"},"productUnit":{"id":8,"key":8,"name":"\u5e74"}}}],"projectContactPoints":[{"id":769,"project_id":3661,"contact_id":1262,"point":"17577.00","paid_point":"17577","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":133,"project_id":3661,"contact_id":1262,"point":"17577.00","day_at":"2024-12-16","description":"","created_at":"2024-12-16 10:06:46"}],"status_display":"\u5df2\u6838\u9500"}],"buildSalesOrderItems":[{"id":11921,"project_id":3661},{"id":11918,"project_id":3661},{"id":11922,"project_id":3661},{"id":11915,"project_id":3661},{"id":11895,"project_id":3661},{"id":11896,"project_id":3661},{"id":11897,"project_id":3661},{"id":11898,"project_id":3661},{"id":11899,"project_id":3661},{"id":11900,"project_id":3661},{"id":11901,"project_id":3661},{"id":11902,"project_id":3661},{"id":11903,"project_id":3661},{"id":11904,"project_id":3661},{"id":11905,"project_id":3661},{"id":11906,"project_id":3661},{"id":11907,"project_id":3661},{"id":11908,"project_id":3661},{"id":11909,"project_id":3661},{"id":11910,"project_id":3661},{"id":11911,"project_id":3661},{"id":11912,"project_id":3661},{"id":11913,"project_id":3661},{"id":11914,"project_id":3661},{"id":11920,"project_id":3661},{"id":11919,"project_id":3661},{"id":11917,"project_id":3661},{"id":11916,"project_id":3661}],"reimbursementAmountSum":null,"profit":688.100792,"contact_points_status_display":"\u5df2\u6838\u9500"},"salesSupplierRels":[{"id":2194,"contract_id":3550,"supplier_id":46,"purchase_id":3610,"supplier":{"id":46,"key":46,"name":"\u795e\u5dde\u6570\u7801(\u4e2d\u56fd)\u6709\u9650\u516c\u53f8"},"purchase":{"id":3610,"key":3610,"serial_no":"DZ202409201129580"}}],"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":7311,"user_id":5388,"key":5388,"contract_id":3550,"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":7312,"user_id":1001,"key":1001,"contract_id":3550,"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":7313,"user_id":1011,"key":1011,"contract_id":3550,"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":[{"id":2089,"key":2089,"contract_id":3550,"name":"2024-12-09","value":"160023.44","overdue_days":null,"pct":100,"collect_status":"\u5df2\u5b8c\u6210"}],"salesContractPayments":[{"id":2031,"key":2031,"contract_id":3550,"value":"160023.44","created_by":1013,"created_at":"2024-12-05 09:15:32","description":"","collected_date":"2024-12-05","amount":"160023.44","createdBy":{"id":1013,"key":1013,"name":"\u7fc1\u5bb6\u6210","sex":"M","department_id":7},"files":[{"id":30903,"object_type":109,"object_id":2031,"attachment_id":23052,"attachment":{"id":23052,"key":23052,"name":"3f224d8e-8f7a-3e81-aaf4-4b4255a4a5dc","extension":"png","path":"\/v2\/attachment\/view\/rpAaho7HBg3VJ1vNP7yVtm0Uw5j2xu-u\/3f224d8e-8f7a-3e81-aaf4-4b4255a4a5dc\/image.png","orig_name":"image.png"}}],"pct":100}],"salesContractInvoices":[{"id":1849,"key":1849,"contract_id":3550,"value":"160023.44","attachment_id":null,"from_date":"2024-11-04","description":"","is_draft":false,"attachment":null,"attachmentRelationships":[],"files":[{"id":29983,"object_type":102,"object_id":1849,"attachment_id":22449,"attachment":{"id":22449,"key":22449,"name":"4456fae4-18f0-374a-b6bd-fecdef65c1ef","extension":"pdf","path":"\/v2\/attachment\/view\/rpAaho7HBg3VJ1vNP7yVtm0Uw5j2xu-u\/4456fae4-18f0-374a-b6bd-fecdef65c1ef\/dzfp_24112000000170966881_\u5317\u4eac\u6708\u521d\u79d1\u6280\u6709\u9650\u516c\u53f8_20241104113144.pdf","orig_name":"dzfp_24112000000170966881_\u5317\u4eac\u6708\u521d\u79d1\u6280\u6709\u9650\u516c\u53f8_20241104113144.pdf"}}]}],"contractScans":[{"id":31065,"object_type":105,"object_id":3550,"attachment_id":21688,"attachment":{"id":21688,"key":21688,"name":"e65c0c68-46c6-3f07-9255-25f7ccbd39bd","extension":"pdf","path":"\/v2\/attachment\/preview\/rpAaho7HBg3VJ1vNP7yVtm0Uw5j2xu-u\/e65c0c68-46c6-3f07-9255-25f7ccbd39bd\/\u6708\u521d.pdf","orig_name":"\u6708\u521d.pdf"}}],"receiptScans":[{"id":29550,"object_type":106,"object_id":3550,"attachment_id":22187,"attachment":{"id":22187,"key":22187,"name":"643e3e6e-8871-38f6-99ee-41cd1622828e","extension":"pdf","path":"\/v2\/attachment\/preview\/rpAaho7HBg3VJ1vNP7yVtm0Uw5j2xu-u\/643e3e6e-8871-38f6-99ee-41cd1622828e\/\u7b7e\u6536\u5355.pdf","orig_name":"\u7b7e\u6536\u5355.pdf"}}],"verifyScans":[],"unreadComments":null,"collected_plan":160023.44,"projectProductTotalAmount":160023.44,"projectProductAllAmount":true,"projectProductTotalCost":132320,"projectProductAllCost":true,"projectProductTotalCount":28,"invoiced":160023.44,"un_invoiced":0,"collected":160023.44,"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\u524d2\u5929","can_update":true,"can_delete":false,"unread":0,"bgcolor":"#89c541","can_view_product":true,"can_progress":true}],"pagenation":{"totalcount":5,"thispage":1,"pagesize":10}},"status":1,"msg":[{"name":"success","success":"\u6210\u529f\u83b7\u53d6\u6570\u636e","error":""}]}', FALSE, '2025-07-01 16:43:21') RETURNING "id"
16:43:21.6127.4 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=102) AND ("object_id" IN (1849, 1942))
16:43:21.4757.1 msyii\db\Command::querySELECT 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"='3304' GROUP BY "c"."id" ORDER BY "c"."signed_at" DESC, "c"."created_at" DESC LIMIT 10
16:43:21.6007.1 msyii\db\Command::querySELECT "id", "id" AS "key", "name", "extension", "path", "orig_name" FROM "a57be577deb434"."tbl_attachments" WHERE "id" IN (23052, 24262, 24740)
16:43:21.5664.0 msyii\db\Command::querySELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_product_series" WHERE "id" IN (999, 1579, 1580, 1608, 1610, 801, 784, 1012)
16:43:21.4454.0 msyii\db\Command::querySELECT * FROM "global"."vw_user_login" WHERE "access_token"='rpAaho7HBg3VJ1vNP7yVtm0Uw5j2xu-u'
16:43:21.5753.6 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_project_contact_point_rels" WHERE ("contact_id", "project_id") IN ((1262, 3723), (1262, 3661))
16:43:21.4913.4 msyii\db\Command::querySELECT "id", "id" AS "key", "name", "logo", "sales_rep" FROM "a57be577deb434"."tbl_clients" WHERE "id"=3304
16:43:21.5793.3 msyii\db\Command::querySELECT "id", "project_id" FROM "a57be577deb434"."tbl_sales_order_items" WHERE ("is_system"=TRUE) AND ("project_id" IN (3661, 3723, 3807, 3808, 3809))
16:43:21.4413.0 msyii\db\Connection::openOpening DB connection: pgsql:host=postgresql.server.local;port=5432;dbname=beta
16:43:21.6092.8 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=20) AND ("object_id" IN (1849, 1942))
16:43:21.6262.5 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=106) AND ("object_id" IN (3843, 3841, 3840, 3703, 3550))
16:43:21.6292.4 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=107) AND ("object_id" IN (3843, 3841, 3840, 3703, 3550))
16:43:21.4532.2 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000
16:43:21.5822.2 msyii\db\Command::querySELECT "project_id", sum(amount) AS sum FROM "a57be577deb434"."tbl_reimbursements" WHERE ("status" IN (3, 2)) AND ("project_id" IN (3661, 3723, 3807, 3808, 3809)) GROUP BY "project_id"
16:43:21.6202.1 msyii\db\Command::querySELECT "id", "id" AS "key", "name", "extension", "path", "orig_name" FROM "a57be577deb434"."tbl_attachments" WHERE "id" IN (22449, 23800)
16:43:21.6242.0 msyii\db\Command::querySELECT "id", "id" AS "key", "name", "extension", "path", "orig_name" FROM "a57be577deb434"."tbl_attachments" WHERE "id" IN (21688, 23131, 24777)
16:43:21.6221.6 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=105) AND ("object_id" IN (3843, 3841, 3840, 3703, 3550))
16:43:21.5971.5 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=109) AND ("object_id" IN (2031, 2114, 2162))
16:43:21.4571.3 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_clients" WHERE ("id"='3304') AND ("deleted"=FALSE)
16:43:21.5321.0 msyii\db\Command::querySELECT "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 (3661, 3723, 3807, 3808, 3809)
16:43:21.5920.9 msyii\db\Command::querySELECT "id", "user_id", "user_id" AS "key", "contract_id" FROM "a57be577deb434"."tbl_sales_contract_payment_collection_remind_receivers" WHERE "contract_id" IN (3843, 3841, 3840, 3703, 3550)
16:43:21.5900.9 msyii\db\Command::querySELECT "id", "user_id", "user_id" AS "key", "contract_id" FROM "a57be577deb434"."tbl_sales_contract_remind_receivers" WHERE "contract_id" IN (3843, 3841, 3840, 3703, 3550)
16:43:21.5950.9 msyii\db\Command::querySELECT "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 (3843, 3841, 3840, 3703, 3550) ORDER BY "id"
16:43:21.5330.9 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_project_product_rels" WHERE "project_id" IN (3661, 3723, 3807, 3808, 3809)
16:43:21.6070.8 msyii\db\Command::querySELECT "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 (3843, 3841, 3840, 3703, 3550) ORDER BY "id"
16:43:21.5740.8 msyii\db\Command::querySELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_suppliers" WHERE "id"=100
16:43:21.5700.7 msyii\db\Command::querySELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_product_units" WHERE "id" IN (2, 1, 3, 8)
16:43:21.5940.6 msyii\db\Command::querySELECT "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 (3843, 3841, 3840, 3703, 3550) ORDER BY "remind_date"
16:43:21.5850.6 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_sales_supplier_rels" WHERE "contract_id" IN (3843, 3841, 3840, 3703, 3550)
16:43:21.5910.6 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_service_contract_remind_receivers" WHERE "contract_id" IN (3843, 3841, 3840, 3703, 3550)
16:43:21.5710.6 msyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_project_contact_points" WHERE "project_id" IN (3661, 3723, 3807, 3808, 3809)
16:43:21.5880.6 msyii\db\Command::querySELECT "id", "id" AS "key", "contract_id", "remind_date" FROM "a57be577deb434"."tbl_service_contract_remind_dates" WHERE ("reminded"=FALSE) AND ("contract_id" IN (3843, 3841, 3840, 3703, 3550)) ORDER BY "remind_date"
16:43:21.5640.5 msyii\db\Command::querySELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_product_types" WHERE "id" IN (5, 3, 7)
16:43:21.5930.5 msyii\db\Command::querySELECT "id", "user_id", "meta_value" AS "name" FROM "a57be577deb434"."tbl_user_meta" WHERE ("meta_key"='avatar') AND ("user_id" IN (1001, 1011, 1005, 5388))
16:43:21.5860.5 msyii\db\Command::querySELECT "id", "id" AS "key", "serial_no" FROM "a57be577deb434"."tbl_purchase_contracts" WHERE "id" IN (3704, 3610)
16:43:21.5730.5 msyii\db\Command::querySELECT "id", "id" AS "key", "name", "client_id", "supplier_id" FROM "a57be577deb434"."tbl_contacts" WHERE "id"=1262
16:43:21.5310.5 msyii\db\Command::querySELECT "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 (3809, 3808, 3807, 3723, 3661)
16:43:21.5650.5 msyii\db\Command::querySELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_product_components" WHERE "id" IN (36, 26, 39, 41, 35, 157)
16:43:21.5340.5 msyii\db\Command::querySELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_suppliers" WHERE "id" IN (46, 90)
16:43:21.4950.4 msyii\db\Command::querySELECT "id", "user_id", "meta_value" AS "name" FROM "a57be577deb434"."tbl_user_meta" WHERE ("meta_key"='avatar') AND ("user_id"=1001)
16:43:21.5960.4 msyii\db\Command::querySELECT "id", "id" AS "key", "name", "sex", "department_id" FROM "a57be577deb434"."tbl_users" WHERE "id" IN (1013, 5250)
16:43:21.5650.4 msyii\db\Command::querySELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_product_brands" WHERE "id" IN (8, 6, 12)
16:43:21.5870.4 msyii\db\Command::querySELECT "id", "id" AS "key", "type" AS "name" FROM "a57be577deb434"."tbl_contract_types" WHERE "id"=1
16:43:21.5300.4 msyii\db\Command::querySELECT "id", "id" AS "key", "project_title" AS "name" FROM "a57be577deb434"."tbl_projects" WHERE "id" IN (3809, 3808, 3807, 3723, 3661)
16:43:21.4960.4 msyii\db\Command::querySELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_departments" WHERE "id"=4
16:43:21.5880.3 msyii\db\Command::querySELECT "id", "user_id", "meta_value" AS "name" FROM "a57be577deb434"."tbl_user_meta" WHERE ("meta_key"='avatar') AND ("user_id"=1001)
16:43:21.5930.3 msyii\db\Command::querySELECT "id", "id" AS "key", "name", "sex" FROM "a57be577deb434"."tbl_users" WHERE "id" IN (1001, 5388, 1011, 1005)
16:43:21.5860.3 msyii\db\Command::querySELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_suppliers" WHERE "id" IN (90, 46)
16:43:21.5890.3 msyii\db\Command::querySELECT "id", "id" AS "key", "contract_id", "remind_date" AS "name" FROM "a57be577deb434"."tbl_service_contract_remind_dates" WHERE "contract_id" IN (3843, 3841, 3840, 3703, 3550)
16:43:21.4940.3 msyii\db\Command::querySELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_users" WHERE "id"=1001
16:43:21.4950.3 msyii\db\Command::querySELECT "id", "id" AS "key", "name", "sex", "department_id" FROM "a57be577deb434"."tbl_users" WHERE "id"=1001
16:43:21.6290.3 msyii\db\Command::querySELECT "id", "id" AS "key", "name", "extension", "path", "orig_name" FROM "a57be577deb434"."tbl_attachments" WHERE "id" IN (22187, 23594)
16:43:21.4960.3 msyii\db\Command::querySELECT "id", "user_id", "meta_value" AS "name" FROM "a57be577deb434"."tbl_user_meta" WHERE ("meta_key"='avatar') AND ("user_id"=1001)
16:43:21.5870.2 msyii\db\Command::querySELECT "id", "id" AS "key", "name", "sex", "department_id" FROM "a57be577deb434"."tbl_users" WHERE "id"=1001