Database Queries

总计74条数据
TimeDurationTypeQuery
  
23:12:57.8261.5 msSELECTSELECT * FROM "global"."vw_user_login" WHERE "access_token"='lLLCHpZSQkMu0_ceemp9PVo8_3HEKkFC'

23:12:57.8303.8 msSELECTSELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001

23:12:57.8360.9 msSELECTSELECT * FROM "a57be577deb434"."tbl_clients" WHERE ("id"='3009') AND ("deleted"=FALSE)

23:12:57.8548.6 msSELECTSELECT COUNT(*) FROM (SELECT p.*, (p.budget / 100 * p.profit_pct) as profits, now() - status_updated_at as remain, now() - progress_updated_at as progress_remain, now() - forecast_updated_at as forecast_remain, extract(epoch from (now() - max(sl.end_at))) / 86400 AS lost_contact_days, max(sl.end_at) as last_contact, extract(epoch from (now() - max(arrive.end_at))) / 86400 AS last_arrive_days, max(arrive.end_at) as last_arrive, case when p.end_at IS NOT NULL THEN p.end_at - p.created_at ELSE now() - p.created_at END as duration, (SELECT sum(amount) FROM a57be577deb434.tbl_invoices i WHERE i.project_id = p.id) as issued_invoices FROM "a57be577deb434"."tbl_projects" "p" LEFT JOIN "a57be577deb434"."tbl_project_remind_receivers" "prr" ON prr.project_id = p.id LEFT JOIN "a57be577deb434"."tbl_clients" "c" ON p.client_id = c.id LEFT JOIN "a57be577deb434"."tbl_clients" "usedclient" ON p.used_client = usedclient.id LEFT JOIN "a57be577deb434"."tbl_sales_group_relationships" "sgr" ON sgr.sales_id = c.sales_rep LEFT JOIN "a57be577deb434"."tbl_work_logs" "arrive" ON (arrive.project_id = p.id) AND ("arrive"."scenario_id"=1) AND ("arrive"."is_draft"=FALSE) AND ("arrive"."location_in_id" IS NOT NULL) AND ("arrive"."location_out_id" IS NOT NULL) AND ("arrive"."client_id" IS NOT NULL) LEFT JOIN "a57be577deb434"."tbl_work_logs" "sl" ON sl.project_id = p.id LEFT JOIN "a57be577deb434"."tbl_term_taxonomy_relationships" "ttr" ON ttr.object_id = p.id AND ttr.term_id = 10 LEFT JOIN "a57be577deb434"."tbl_term_taxonomy_relationships" "ttr2" ON ttr2.object_id = p.id AND ttr2.term_id = 13 LEFT JOIN "a57be577deb434"."tbl_project_architects" "pa" ON "pa"."project_id" = "p"."id" LEFT JOIN "a57be577deb434"."tbl_engineer_group_relationships" "egr" ON egr.engineer_id = pa.engineer_id WHERE ("c"."deleted"=FALSE) AND (c.id is not null) AND ((c.sales_rep IS NULL) OR ("c"."sales_rep" IN (1001, 5049, 5500, 5301, 5499, 5022, 5209, 5026, 5293, 5309, 5356, 5329, 5299, 5303, 5302, 5332, 5047, 1026, 5096, 5070, 5448, 5420, 1029, 5037, 5087, 1008, 5048, 5043, 5045, 5230, 5031, 5088, 5208, 1003, 5467, 5294, 5357, 5044, 1030, 5076, 5300, 5027, 5089, 5311, 5066, 5069, 5364, 1009, 5295, 1013, 5128, 5203, 1025, 5032, 5075, 5476, 1004, 5072, 5033, 5359, 5412, 5409, 5229, 1005, 5304, 5449, 5358, 1006, 5093)) OR ("prr"."user_id"=1001) OR ("c"."id" IN (SELECT "client_id" FROM "a57be577deb434"."tbl_user_visit_clients" WHERE "user_id"=1001))) AND ("p"."client_id"=3009) GROUP BY "p"."id" ORDER BY "bargain_date" DESC, "p"."created_at" DESC) "c"

23:12:57.8637.7 msSELECTSELECT p.*, (p.budget / 100 * p.profit_pct) as profits, now() - status_updated_at as remain, now() - progress_updated_at as progress_remain, now() - forecast_updated_at as forecast_remain, extract(epoch from (now() - max(sl.end_at))) / 86400 AS lost_contact_days, max(sl.end_at) as last_contact, extract(epoch from (now() - max(arrive.end_at))) / 86400 AS last_arrive_days, max(arrive.end_at) as last_arrive, case when p.end_at IS NOT NULL THEN p.end_at - p.created_at ELSE now() - p.created_at END as duration, (SELECT sum(amount) FROM a57be577deb434.tbl_invoices i WHERE i.project_id = p.id) as issued_invoices FROM "a57be577deb434"."tbl_projects" "p" LEFT JOIN "a57be577deb434"."tbl_project_remind_receivers" "prr" ON prr.project_id = p.id LEFT JOIN "a57be577deb434"."tbl_clients" "c" ON p.client_id = c.id LEFT JOIN "a57be577deb434"."tbl_clients" "usedclient" ON p.used_client = usedclient.id LEFT JOIN "a57be577deb434"."tbl_sales_group_relationships" "sgr" ON sgr.sales_id = c.sales_rep LEFT JOIN "a57be577deb434"."tbl_work_logs" "arrive" ON (arrive.project_id = p.id) AND ("arrive"."scenario_id"=1) AND ("arrive"."is_draft"=FALSE) AND ("arrive"."location_in_id" IS NOT NULL) AND ("arrive"."location_out_id" IS NOT NULL) AND ("arrive"."client_id" IS NOT NULL) LEFT JOIN "a57be577deb434"."tbl_work_logs" "sl" ON sl.project_id = p.id LEFT JOIN "a57be577deb434"."tbl_term_taxonomy_relationships" "ttr" ON ttr.object_id = p.id AND ttr.term_id = 10 LEFT JOIN "a57be577deb434"."tbl_term_taxonomy_relationships" "ttr2" ON ttr2.object_id = p.id AND ttr2.term_id = 13 LEFT JOIN "a57be577deb434"."tbl_project_architects" "pa" ON "pa"."project_id" = "p"."id" LEFT JOIN "a57be577deb434"."tbl_engineer_group_relationships" "egr" ON egr.engineer_id = pa.engineer_id WHERE ("c"."deleted"=FALSE) AND (c.id is not null) AND ((c.sales_rep IS NULL) OR ("c"."sales_rep" IN (1001, 5049, 5500, 5301, 5499, 5022, 5209, 5026, 5293, 5309, 5356, 5329, 5299, 5303, 5302, 5332, 5047, 1026, 5096, 5070, 5448, 5420, 1029, 5037, 5087, 1008, 5048, 5043, 5045, 5230, 5031, 5088, 5208, 1003, 5467, 5294, 5357, 5044, 1030, 5076, 5300, 5027, 5089, 5311, 5066, 5069, 5364, 1009, 5295, 1013, 5128, 5203, 1025, 5032, 5075, 5476, 1004, 5072, 5033, 5359, 5412, 5409, 5229, 1005, 5304, 5449, 5358, 1006, 5093)) OR ("prr"."user_id"=1001) OR ("c"."id" IN (SELECT "client_id" FROM "a57be577deb434"."tbl_user_visit_clients" WHERE "user_id"=1001))) AND ("p"."client_id"=3009) GROUP BY "p"."id" ORDER BY "bargain_date" DESC, "p"."created_at" DESC LIMIT 10

23:12:57.8740.4 msSELECTSELECT "id", "id" AS "key", "name", "logo", "client_type", "client_class", "client_industry", "sales_rep" FROM "a57be577deb434"."tbl_clients" WHERE "id"=3009

23:12:57.8740.4 msSELECTSELECT "id", "id" AS "key", "name", "sex" FROM "a57be577deb434"."tbl_users" WHERE "id"=1001

23:12:57.8750.3 msSELECTSELECT "id", "user_id", "meta_value" AS "name" FROM "a57be577deb434"."tbl_user_meta" WHERE ("meta_key"='avatar') AND ("user_id"=1001)

23:12:57.8760.3 msSELECTSELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_client_types" WHERE "id"=6

23:12:57.8760.3 msSELECTSELECT "id", "id" AS "key", "name", "notice_days", "color" FROM "a57be577deb434"."tbl_client_classes" WHERE "id"=43

23:12:57.8760.2 msSELECTSELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_client_industries" WHERE "id"=18

23:12:57.8770.4 msSELECTSELECT "id", "id" AS "key", "type" AS "name" FROM "a57be577deb434"."tbl_contract_types" WHERE "id"=1

23:12:57.8780.5 msSELECTSELECT "project_id", "contribution" AS "value", "engineer_id" AS "key", "u"."name" FROM "a57be577deb434"."tbl_project_architects" LEFT JOIN "a57be577deb434"."tbl_users" "u" ON engineer_id = u.id WHERE "a57be577deb434"."tbl_project_architects"."project_id" IN (4168, 3568, 3544) ORDER BY "contribution" DESC, "engineer_id"

23:12:57.8780.7 msSELECTSELECT "id", "id" AS "key", "project_status" AS "name", "color" FROM "a57be577deb434"."tbl_project_statuses" WHERE "id"=3

23:12:57.8790.4 msSELECTSELECT "id", "id" AS "key", "project_progress" AS "name", "description" FROM "a57be577deb434"."tbl_project_progresses" WHERE "id" IN (2, 9)

23:12:57.8801.1 msSELECTSELECT id, product_type_id, product_type_id as key, name, coalesce(budget, 0) as budget, coalesce(pct, 0) as pct, coalesce(profit, 0) as profit, project_id FROM "a57be577deb434"."tbl_project_product_types" WHERE "project_id" IN (4168, 3568, 3544)

23:12:57.8810.6 msSELECTSELECT * FROM "a57be577deb434"."tbl_term_taxonomy_relationships" WHERE "object_id" IN (4168, 3568, 3544)

23:12:57.8820.4 msSELECTSELECT "id", "id" AS "key", "name", "description" FROM "a57be577deb434"."tbl_term_taxonomies" WHERE ("term_id"=13) AND ("id" IN (2, 1, 165, 181, 307, 309, 366, 349, 5, 226, 184, 189)) ORDER BY "sort"

23:12:57.8820.3 msSELECTSELECT * FROM "a57be577deb434"."tbl_term_taxonomy_relationships" WHERE "object_id" IN (4168, 3568, 3544)

23:12:57.8831.4 msSELECTSELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_term_taxonomies" WHERE ("term_id"=10) AND ("id" IN (2, 1, 165, 181, 307, 309, 366, 349, 5, 226, 184, 189)) ORDER BY "sort"

23:12:57.8850.4 msSELECTSELECT * FROM "a57be577deb434"."tbl_term_taxonomy_relationships" WHERE "object_id" IN (4168, 3568, 3544)

23:12:57.8850.3 msSELECTSELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_term_taxonomies" WHERE ("term_id"=9) AND ("id" IN (2, 1, 165, 181, 307, 309, 366, 349, 5, 226, 184, 189)) ORDER BY "sort"

23:12:57.8860.3 msSELECTSELECT "id", "id" AS "key", "name", "sex", "department_id" FROM "a57be577deb434"."tbl_users" WHERE "id"=1001

23:12:57.8862.0 msSELECTSELECT "id", "user_id", "meta_value" AS "name" FROM "a57be577deb434"."tbl_user_meta" WHERE ("meta_key"='avatar') AND ("user_id"=1001)

23:12:57.8880.2 msSELECTSELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_departments" WHERE "id"=4

23:12:57.8890.4 msSELECTSELECT "id", "id" AS "key", "name", "sex", "department_id" FROM "a57be577deb434"."tbl_users" WHERE "id"=1001

23:12:57.8890.3 msSELECTSELECT "id", "user_id", "meta_value" AS "name" FROM "a57be577deb434"."tbl_user_meta" WHERE ("meta_key"='avatar') AND ("user_id"=1001)

23:12:57.8900.4 msSELECTSELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=3009

23:12:57.8900.2 msSELECTSELECT "id", "id" AS "key", "name", "sex" FROM "a57be577deb434"."tbl_users" WHERE "id"=1001

23:12:57.8910.3 msSELECTSELECT "id", "user_id", "meta_value" AS "name" FROM "a57be577deb434"."tbl_user_meta" WHERE ("meta_key"='avatar') AND ("user_id"=1001)

23:12:57.8914.3 msSELECTSELECT "c"."project_id", sum(ca.points) as points FROM "a57be577deb434"."tbl_cases" "c" LEFT JOIN (SELECT "case_id", sum(points) as points FROM "a57be577deb434"."tbl_case_assignments" GROUP BY "case_id") "ca" ON ca.case_id = c.id WHERE "c"."project_id" IN (4168, 3568, 3544) GROUP BY "c"."project_id"

23:12:57.8960.4 msSELECTSELECT "project_id", count(id) as count FROM "a57be577deb434"."tbl_work_logs" WHERE ("is_draft"=FALSE) AND ("project_id" IN (4168, 3568, 3544)) GROUP BY "project_id"

23:12:57.8961.6 msSELECTSELECT "project_id", count(id) as count FROM "a57be577deb434"."tbl_cases" WHERE "project_id" IN (4168, 3568, 3544) GROUP BY "project_id"

23:12:57.8980.5 msSELECTSELECT "project_id", EXTRACT(epoch FROM sum(end_at - start_at)) /3600 AS hours, count(id) as times FROM "a57be577deb434"."tbl_work_logs" WHERE ("is_draft"=FALSE) AND ("scenario_id"=1) AND (("location_in_id" IS NOT NULL) AND ("location_out_id" IS NOT NULL) AND ("client_id" IS NOT NULL)) AND ("project_id" IN (4168, 3568, 3544)) GROUP BY "project_id"

23:12:57.8991.8 msSELECTSELECT "c"."project_id", sum(hours), sum(times) as times FROM "a57be577deb434"."tbl_cases" "c" LEFT JOIN (SELECT "case_id", EXTRACT(epoch FROM sum(left_at - arrived_at)) /3600 AS hours, count(id) as times FROM "a57be577deb434"."tbl_implement_records" WHERE "is_draft"=FALSE GROUP BY "case_id") "i" ON i.case_id = c.id WHERE ("case_type"=2) AND ("c"."project_id" IN (4168, 3568, 3544)) GROUP BY "c"."project_id"

23:12:57.9011.5 msSELECTSELECT "c"."project_id", sum(hours), sum(times) as times FROM "a57be577deb434"."tbl_cases" "c" LEFT JOIN (SELECT "case_id", EXTRACT(epoch FROM sum(end_at - start_at)) /3600 AS hours, count(id) as times FROM "a57be577deb434"."tbl_pre_sales" WHERE "is_draft"=FALSE GROUP BY "case_id") "i" ON i.case_id = c.id WHERE ("case_type"=1) AND ("c"."project_id" IN (4168, 3568, 3544)) GROUP BY "c"."project_id"

23:12:57.9030.4 msSELECTSELECT "project_id", EXTRACT(epoch FROM sum(end_at - start_at)) /3600 AS hours, count(id) as times FROM "a57be577deb434"."tbl_work_logs" WHERE ("is_draft"=FALSE) AND ("scenario_id"=2) AND ("project_id" IN (4168, 3568, 3544)) GROUP BY "project_id"

23:12:57.9032.5 msSELECTSELECT "project_id", sum(amount) AS sum FROM "a57be577deb434"."tbl_reimbursements" WHERE ("status" IN (2, 3)) AND ("project_id" IN (4168, 3568, 3544)) GROUP BY "project_id"

23:12:57.9060.7 msSELECTSELECT "id", "from_project", "payment_collection_remind_ahead", "serial_no", "is_settle", "is_deliver", "is_outbound", "erp_settle_amount", "erp_un_settle_amount", "including_tax", "amount" FROM "a57be577deb434"."tbl_sales_contracts" WHERE "from_project" IN (4168, 3568, 3544)

23:12:57.9083.9 msSELECTSELECT * FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=105) AND ("object_id" IN (3300, 3348, 4494))

23:12:57.9122.1 msSELECTSELECT "id", "id" AS "key", "name", "extension", "path", "orig_name" FROM "a57be577deb434"."tbl_attachments" WHERE "id" IN (19273, 19680)

23:12:57.9155.0 msSELECTSELECT * FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=106) AND ("object_id" IN (3300, 3348, 4494))

23:12:57.9200.4 msSELECTSELECT "id", "id" AS "key", "name", "extension", "path", "orig_name" FROM "a57be577deb434"."tbl_attachments" WHERE "id" IN (20201, 20922)

23:12:57.9202.9 msSELECTSELECT * FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=107) AND ("object_id" IN (3300, 3348, 4494))

23:12:57.9241.3 msSELECTSELECT * FROM "a57be577deb434"."tbl_erp_collect_tickets" WHERE ("status"=2) AND ("sales_contract_id" IN (3300, 3348, 4494)) ORDER BY "id" DESC

23:12:57.9253.2 msSELECTSELECT "id", "id" AS "key", "contract_id", "amount" AS "value", "created_by", "collected_date" FROM (SELECT * FROM ((SELECT '1' || r.id::varchar as id, 1 as ticket_type, r.sales_contract_id as contract_id, r.amount as amount, t.wrote_date as collected_date, t.created_at, t.created_by, t.abstract as description FROM "a57be577deb434"."tbl_erp_collect_ticket_settles" "r" LEFT JOIN "a57be577deb434"."tbl_erp_collect_tickets" "t" ON r.erp_collect_ticket_id = t.id WHERE (r.sales_contract_id is not null) AND ("t"."status" IN (2, 5))) UNION ALL ( SELECT '2' || r.id::varchar as id, 2 as ticket_type, r.sales_contract_id as contract_id, r.amount as amount, t.created_at as collected_date, t.created_at, t.created_by, t.abstract as description FROM "a57be577deb434"."tbl_erp_cash_cost_ticket_sales_contract_settles" "r" LEFT JOIN "a57be577deb434"."tbl_erp_cash_cost_tickets" "t" ON r.erp_cash_cost_ticket_id = t.id WHERE (r.sales_contract_id is not null) AND ("t"."is_payment_settle"=TRUE) AND ("t"."status" IN (2, 5)) ) UNION ALL ( SELECT '3' || r.id::varchar as id, 3 as ticket_type, r.sales_contract_id as contract_id, 0 - r.amount as amount, t.created_at as collected_date, t.created_at, t.created_by, t.abstract as description FROM "a57be577deb434"."tbl_erp_payment_ticket_settles" "r" LEFT JOIN "a57be577deb434"."tbl_erp_payment_tickets" "t" ON r.erp_payment_ticket_id = t.id WHERE (r.sales_contract_id is not null) AND ("t"."is_payment_settle"=TRUE) AND ("t"."status" IN (2, 5)) )) "sub") "r" WHERE "contract_id" IN (3300, 3348, 4494) ORDER BY "id" DESC

23:12:57.9290.3 msSELECTSELECT "id", "id" AS "key", "name", "sex", "department_id" FROM "a57be577deb434"."tbl_users" WHERE "id"=1013

23:12:57.9291.8 msSELECTSELECT "id", "id" AS "key", "contract_id", "amount" AS "value", "attachment_id", "from_date" FROM "a57be577deb434"."tbl_sales_contract_invoices" WHERE "contract_id" IN (3300, 3348, 4494) ORDER BY "id"

23:12:57.9310.7 msSELECTSELECT "id", "id" AS "key", "contract_id", "remind_date" AS "name", "amount" AS "value", "overdue_days", "status", "remind_date" FROM "a57be577deb434"."tbl_sales_contract_payment_collection_remind_dates" WHERE "contract_id" IN (3300, 3348, 4494) ORDER BY "remind_date"

23:12:57.9320.6 msSELECTSELECT "id", "user_id", "user_id" AS "key", "contract_id" FROM "a57be577deb434"."tbl_sales_contract_payment_collection_remind_receivers" WHERE "contract_id" IN (3300, 3348, 4494)

23:12:57.9330.3 msSELECTSELECT "id", "id" AS "key", "name", "sex" FROM "a57be577deb434"."tbl_users" WHERE "id" IN (1001, 1011, 5087)

23:12:57.9330.3 msSELECTSELECT "id", "user_id", "meta_value" AS "name" FROM "a57be577deb434"."tbl_user_meta" WHERE ("meta_key"='avatar') AND ("user_id" IN (5087, 1011, 1001))

23:12:57.9340.6 msSELECTSELECT * FROM "a57be577deb434"."tbl_sales_supplier_rels" WHERE "contract_id" IN (3300, 3348, 4494)

23:12:57.9350.6 msSELECTSELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_suppliers" WHERE "id"=511

23:12:57.9360.6 msSELECTSELECT "id", "id" AS "key", "serial_no" FROM "a57be577deb434"."tbl_purchase_contracts" WHERE "id"=3359

23:12:57.9370.4 msSELECTSELECT "id", "user_id", "user_id" AS "key", "project_id" FROM "a57be577deb434"."tbl_project_remind_receivers" WHERE "project_id" IN (4168, 3568, 3544)

23:12:57.9370.3 msSELECTSELECT "id", "id" AS "key", "name", "sex" FROM "a57be577deb434"."tbl_users" WHERE "id"=1001

23:12:57.9380.3 msSELECTSELECT "id", "user_id", "meta_value" AS "name" FROM "a57be577deb434"."tbl_user_meta" WHERE ("meta_key"='avatar') AND ("user_id"=1001)

23:12:57.9380.9 msSELECTSELECT * FROM "a57be577deb434"."tbl_project_product_rels" WHERE "project_id" IN (4168, 3568, 3544) ORDER BY "id"

23:12:57.9400.3 msSELECTSELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_suppliers" WHERE "id"=511

23:12:57.9401.7 msSELECTSELECT * FROM "a57be577deb434"."tbl_products" WHERE "id" IN (1655, 2261)

23:12:57.9430.7 msSELECTSELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_product_types" WHERE "id" IN (3, 4)

23:12:57.9440.6 msSELECTSELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_product_components" WHERE "id" IN (14, 52)

23:12:57.9450.8 msSELECTSELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_product_brands" WHERE "id" IN (12, 4)

23:12:57.9460.6 msSELECTSELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_product_series" WHERE "id" IN (1408, 1769)

23:12:57.9460.4 msSELECTSELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_product_units" WHERE "id" IN (2, 3)

23:12:57.9471.7 msSELECTSELECT * FROM "a57be577deb434"."tbl_erp_sales_order_products" WHERE "id" IN (897, 965, 2240)

23:12:57.94957.5 msSELECTSELECT "object_id", count(*) as comment FROM "a57be577deb434"."tbl_comments" WHERE ("object_type"=1) AND ("object_id" IN (4168, 3568, 3544)) GROUP BY "object_id"

23:12:58.00736.5 msSELECTSELECT "object_id", count(*) AS unread FROM "a57be577deb434"."tbl_unread_comments" WHERE ("object_type"=1) AND (remind_user_id = 1001 AND is_read = false) AND ("object_id" IN (4168, 3568, 3544)) GROUP BY "object_id"

23:12:58.0440.8 msSELECTSELECT * FROM "a57be577deb434"."tbl_project_contact_points" WHERE "project_id" IN (4168, 3568, 3544)

23:12:58.0451.4 msSELECTSELECT * FROM "a57be577deb434"."tbl_erp_sales_orders" WHERE ("status" IN (2, 5)) AND ("project_id" IN (4168, 3568, 3544))

23:12:58.0480.6 msSELECTSELECT * FROM "a57be577deb434"."tbl_project_used_clients" WHERE "project_id" IN (4168, 3568, 3544)

23:12:58.0490.7 msSELECTSELECT * FROM "a57be577deb434"."tbl_erp_sales_orders" WHERE ("status"=1) AND ("project_id" IN (4168, 3568, 3544))

23:12:58.0593.0 msINSERTINSERT INTO "global"."tbl_api_log" ("code", "schema", "user_id", "device_type", "version_code", "url", "request", "response", "php_error", "time", "duration") VALUES (200, 'a57be577deb434', 1001, 0, 276, 'v2/project/of-client', '{"access_token":"lLLCHpZSQkMu0_ceemp9PVo8_3HEKkFC","device_type":"0","version_code":"276","id":"3009","page":"1","token":"ea77be4c3bccd4f10af149e06d81c561","posttime":"1783869178","pagesize":"10"}', '{"code":200,"data":{"list":[{"id":4168,"client_id":3009,"project_status":3,"project_progress":2,"budget":"900","profit_pct":"10","bargain_date":"2026-05-22","description":null,"created_by":1001,"created_at":"2026-05-22 16:49:10","updated_at":"2026-05-22 16:49:10","engineer_id":null,"project_title":"\u7a0e\u8d4b\u5927\u662f\u5927\u975e","collected":"0","status_updated_at":"2026-05-22 16:49:10.557499+08","success_rate":null,"comment":"","contract_type":1,"progress_updated_at":"2026-05-22 16:49:10.557499+08","forecast_updated_at":"2026-05-22 16:49:10.557499+08","end_at":"","pinyin_shortcut":"sfdsdf","creator":1001,"used_client":null,"from_contact":null,"total_contact_point":null,"paid_contact_point":null,"project_product_version_id":1366,"is_sales_order_ready":false,"collected_plan":0,"change_status_to":null,"is_verify":false,"profits":"90.0000000000000000","remain":"51 days 06:23:47.307756","progress_remain":"51 days 06:23:47.307756","forecast_remain":"51 days 06:23:47.307756","lost_contact_days":null,"last_contact":"","last_arrive_days":null,"last_arrive":null,"duration":"51 days 06:23:47.307756","issued_invoices":null,"client":{"id":3009,"key":3009,"name":"\u540c\u65b9\u77e5\u7f51(\u5317\u4eac)\u6280\u672f\u6709\u9650\u516c\u53f8\/\u540c\u65b9\u77e5\u7f51\u6570\u5b57\u51fa\u7248\u6280\u672f\u80a1\u4efd\u6709\u9650\u516c\u53f8\/\u300a\u4e2d\u56fd\u5b66\u672f\u671f\u520a(\u5149\u76d8\u7248)\u300b\u7535\u5b50\u6742\u5fd7\u793e\u6709\u9650\u516c\u53f8","logo":null,"client_type":6,"client_class":43,"client_industry":18,"sales_rep":1001,"salesRep":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda","sex":"M","avatar":{"id":2,"user_id":1001,"name":"\/files\/cdn\/\/avatar\/e868e40f-1256-329e-9b1c-74e095049622.png"}},"clientType":{"id":6,"key":6,"name":"\u836f\u54c1\u6279\u53d1\u4f01\u4e1a\uff08\u666e\u901a\uff09"},"clientClass":{"id":43,"key":43,"name":"\u6f5c\u529b\u5ba2\u6237","notice_days":60,"color":"#1EE6DC"},"clientIndustry":{"id":18,"key":18,"name":"\u5a92\u4f53"}},"usedClient":null,"contractType":{"id":1,"key":1,"name":"\u4ea7\u54c1\u9500\u552e"},"projectArchitects":[],"projectStatus":{"id":3,"key":3,"name":"\u5546\u673a\u6210\u4ea4","color":"#53cd02"},"projectProgress":{"id":2,"key":2,"name":"\u786e\u8ba4\u95ee\u9898","description":"\u5b9a\u4e49\uff1a\u786e\u8ba4\u5ba2\u6237\u5f53\u524d\u9047\u5230\u7684\u5b9e\u9645\u95ee\u9898\uff0c \u6216\u8005\u5f85\u529e\u4efb\u52a1\uff0c\u6216\u8005\u9762\u4e34\u54ea\u4e9b\u6311\u6218\uff1f\n \u65b9\u6cd5\uff1a\u7b2c\u4e00\u6b65\uff1a5why\u6cd5\u8be2\u95ee\u771f\u95ee\u9898 \u7b2c\u4e8c\u6b65\uff1a\u53cd\u95ee\u5982\u679c\u4e0d\u89e3\u51b3\u4f1a\u600e\u6837\uff1f"},"projectProductTypes":[{"id":4,"product_type_id":4,"key":4,"name":"\u7f51\u7edc\u8bbe\u5907 ","budget":"900","pct":"10","profit":"90","project_id":4168}],"salesForecast":{"id":181,"key":181,"name":"\u6211\u81ea\u5df1\u505a\u5e84","description":"\u5382\u5546\u542c\u6211\u652f\u914d\uff0c\u7ed9\u6211\u597d\u4ef7\u683c\u3002\n\u5ba2\u6237\u542c\u6211\u652f\u914d\uff0c\u6309\u7167\u6211\u7684\u65b9\u5f0f\u91c7\u8d2d\u3002"},"opportunityFrom":null,"purchaseType":{"id":165,"key":165,"name":"\u534f\u8bae\u4f9b\u8d27"},"createdBy":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda","sex":"M","department_id":4,"avatar":{"id":2,"user_id":1001,"name":"\/files\/cdn\/\/avatar\/e868e40f-1256-329e-9b1c-74e095049622.png"},"department":{"id":4,"key":4,"name":"\u603b\u7ecf\u7406"}},"projectCreator":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda","sex":"M","department_id":4,"avatar":{"id":2,"user_id":1001,"name":"\/files\/cdn\/\/avatar\/e868e40f-1256-329e-9b1c-74e095049622.png"}},"salesRep":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda","sex":"M","avatar":{"id":2,"user_id":1001,"name":"\/files\/cdn\/\/avatar\/e868e40f-1256-329e-9b1c-74e095049622.png"}},"casePoints":null,"workLogCount":null,"caseCount":null,"salesTimeCount":null,"implementTimeCount":null,"presalesTimeCount":null,"engineerTimeCount":null,"reimbursementAmountSum":null,"buildContract":{"id":4494,"from_project":4168,"payment_collection_remind_ahead":"1 day","serial_no":"2026-06-05-004","is_settle":false,"is_deliver":false,"is_outbound":false,"erp_settle_amount":"0","erp_un_settle_amount":"900","including_tax":true,"amount":"900","contractScans":[],"receiptScans":[],"verifyScans":[],"erpCollectTickets":[],"salesContractPayments":[],"salesContractInvoices":[],"salesContractPaymentCollectionRemindDates":[],"salesContractPaymentCollectionRemindReceivers":[{"id":10156,"user_id":1001,"key":1001,"contract_id":4494,"user":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda","sex":"M","avatar":{"id":2,"user_id":1001,"name":"\/files\/cdn\/\/avatar\/e868e40f-1256-329e-9b1c-74e095049622.png"}}},{"id":10157,"user_id":5087,"key":5087,"contract_id":4494,"user":{"id":5087,"key":5087,"name":"\u5218\u5fae","sex":"F","avatar":{"id":62,"user_id":5087,"name":"\/files\/cdn\/a57be577deb434\/avatar\/06f75b3a-7b6c-37a8-81c0-b2934104daa7.png"}}}],"salesSupplierRels":[],"payment_collection_remind_ahead_display":"\u63d0\u524d1\u5929","invoiced":0},"projectRemindReceivers":[],"projectProductRels":[{"id":12114,"project_id":4168,"product_id":2261,"amount":"900","number":1,"cost":null,"description":"","supplier_id":null,"hardware_from":null,"software_from":null,"maintenance_from":null,"hardware_to":null,"software_to":null,"maintenance_to":null,"total_amount":"900","total_cost":null,"erp_sales_order_product_id":2240,"supplier":null,"product":{"id":2261,"name":"MK-MC300","product_type":4,"product_component":52,"product_brand":4,"product_serie":1769,"product_misc":null,"product_qa":null,"pn":"","description":"MK-MC300\u62fe\u97f3\u9ea6\u514b\u98ce\uff0c\u542b5\u7c73\u7ebf","created_by":1013,"created_at":"2026-03-16 10:07:43","updated_at":"2026-07-10 11:35:44","pinyin_shortcut":"MKMC300","product_unit":3,"is_renew":false,"in_out_at":"2026-07-10 11:35:44.60456+08","productType":{"id":4,"key":4,"name":"\u7f51\u7edc\u8bbe\u5907 "},"productComponent":{"id":52,"key":52,"name":"\u534f\u4f5c"},"productBrand":{"id":4,"key":4,"name":"\u8054\u60f3"},"productSerie":{"id":1769,"key":1769,"name":"\u5168\u5411\u9ea6\u514b\u98ce"},"productUnit":{"id":3,"key":3,"name":"\u4e2a"}},"erpSalesOrderProduct":{"id":2240,"erp_sales_order_id":1703,"erp_store_id":null,"product_id":2261,"description":"","number":"1","outbound":"0","amount":"900","total_amount":"900","last_number":null,"last_amount":null,"last_total_amount":null,"cost":null,"total_cost":null,"supplier_id":null,"hardware_from":null,"software_from":null,"maintenance_from":null,"hardware_to":null,"software_to":null,"maintenance_to":null}}],"commentCount":{"object_id":4168,"comment":2},"unreadComments":null,"fromContact":null,"projectContactPoints":[],"erpSalesOrder":{"id":1703,"serial_no":"XSDD-20260522-00002","from_date":null,"wrote_date":"2026-05-22","handler":1001,"client_id":3009,"purchase_contract_id":null,"project_id":4168,"sales_contract_id":4494,"erp_store_id":null,"status":2,"erp_send_type_id":null,"abstract":null,"description":null,"verify_type":2,"next_verify_user":null,"next_stop_verify_user":null,"next_cancel_verify_user":null,"verify_at":"2026-06-05 11:12:59","stop_at":null,"cancel_at":null,"refuse_description":null,"is_resubmitted":false,"is_done":false,"number":"1","amount":"900","created_by":1001,"stop_description":null,"extra":"{\"payment_collection_remind_ahead\":\"1 day\",\"salesContractPaymentCollectionRemindReceivers\":[\"1001\",\"5087\"],\"salesContractPaymentCollectionRemindDates\":null}","outbound_status":false,"is_used":false,"is_cancel":false,"is_settle":false,"is_old":false,"created_at":"2026-05-22 16:49:10","updated_at":"2026-06-05 11:12:59","print_times":null},"projectUsedClient":null,"erpSalesOrderVerify":null,"remain_display":51,"progress_remain_display":51,"forecast_remain_display":51,"projectProductTotalAmount":900,"projectProductAllAmount":true,"projectProductTotalCost":0,"projectProductAllCost":false,"projectProductTotalNumber":1,"unissued_invoice":900,"is_exceeded":false,"can_update":true,"can_delete":true,"unread":0,"last_arrive_days_display":null,"project_status_display":"\u5546\u673a\u6210\u4ea4","is_collected":false,"bgcolor":"#53cd02","can_invoice":true,"can_payment":true,"duration_display":51,"contract_type_display":"\u4ea7\u54c1\u9500\u552e","can_change_status":true,"is_admin":true,"lost_contact_days_display":null,"can_view_product":true,"budget_display":"900","contact_points_status_display":"\u672a\u8bbe\u7f6e","total_contact_paid_point":0,"total_contact_un_paid_point":0,"verify_display":0,"un_collected":"900","un_invoiced":900,"object_type":1},{"id":3568,"client_id":3009,"project_status":3,"project_progress":9,"budget":"949200","profit_pct":"0.61","bargain_date":"2024-06-13","description":"","created_by":1001,"created_at":"2024-06-13 10:45:30","updated_at":"2025-01-20 16:02:12","engineer_id":null,"project_title":"\u6df1\u4fe1\u670d\u5206\u5e03\u5f0f\u5b58\u50a8\u91c7\u8d2d\u9879\u76ee","collected":"949200","status_updated_at":"2024-06-13 10:45:30.859303+08","success_rate":null,"comment":"","contract_type":1,"progress_updated_at":"2024-06-13 10:45:30.859303+08","forecast_updated_at":"2024-06-13 10:45:30.859303+08","end_at":"2024-09-19 16:29:39","pinyin_shortcut":"sxffbscccgxm","creator":1001,"used_client":null,"from_contact":null,"total_contact_point":null,"paid_contact_point":null,"project_product_version_id":449,"is_sales_order_ready":true,"collected_plan":949200,"change_status_to":null,"is_verify":false,"profits":"5790.120000000000000000","remain":"759 days 12:27:27.005952","progress_remain":"759 days 12:27:27.005952","forecast_remain":"759 days 12:27:27.005952","lost_contact_days":null,"last_contact":"","last_arrive_days":null,"last_arrive":null,"duration":"98 days 05:44:09.039528","issued_invoices":"949200.00","client":{"id":3009,"key":3009,"name":"\u540c\u65b9\u77e5\u7f51(\u5317\u4eac)\u6280\u672f\u6709\u9650\u516c\u53f8\/\u540c\u65b9\u77e5\u7f51\u6570\u5b57\u51fa\u7248\u6280\u672f\u80a1\u4efd\u6709\u9650\u516c\u53f8\/\u300a\u4e2d\u56fd\u5b66\u672f\u671f\u520a(\u5149\u76d8\u7248)\u300b\u7535\u5b50\u6742\u5fd7\u793e\u6709\u9650\u516c\u53f8","logo":null,"client_type":6,"client_class":43,"client_industry":18,"sales_rep":1001,"salesRep":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda","sex":"M","avatar":{"id":2,"user_id":1001,"name":"\/files\/cdn\/\/avatar\/e868e40f-1256-329e-9b1c-74e095049622.png"}},"clientType":{"id":6,"key":6,"name":"\u836f\u54c1\u6279\u53d1\u4f01\u4e1a\uff08\u666e\u901a\uff09"},"clientClass":{"id":43,"key":43,"name":"\u6f5c\u529b\u5ba2\u6237","notice_days":60,"color":"#1EE6DC"},"clientIndustry":{"id":18,"key":18,"name":"\u5a92\u4f53"}},"usedClient":null,"contractType":{"id":1,"key":1,"name":"\u4ea7\u54c1\u9500\u552e"},"projectArchitects":[],"projectStatus":{"id":3,"key":3,"name":"\u5546\u673a\u6210\u4ea4","color":"#53cd02"},"projectProgress":{"id":9,"key":9,"name":"\u7b7e\u8ba2\u5408\u540c","description":"\u5b9a\u4e49\uff1a\u786e\u8ba4\u4ea7\u54c1\u914d\u7f6e\uff0c\u4ea7\u54c1\u6570\u91cf\uff0c\u4ea7\u54c1\u4ef7\u683c\uff0c\u4ed8\u6b3e\u65b9\u5f0f\uff0c\u5230\u8d27\u65e5\u671f\uff0c\u8fdd\u7ea6\u6761\u6b3e\uff0c\u9a8c\u6536\u6807\u51c6\u3002 \n\u65b9\u6cd5\uff1a\u6309\u7167\u516c\u53f8\u5408\u540c\u8303\u672c\u6216\u6309\u7167\u5ba2\u6237\u8303\u672c\u7b7e\u8ba2\u5408\u540c\u3002"},"projectProductTypes":[{"id":3,"product_type_id":3,"key":3,"name":"\u5b58\u50a8\u8bbe\u5907","budget":"949200.00","pct":"0.61","profit":"5790.12","project_id":3568}],"salesForecast":{"id":181,"key":181,"name":"\u6211\u81ea\u5df1\u505a\u5e84","description":"\u5382\u5546\u542c\u6211\u652f\u914d\uff0c\u7ed9\u6211\u597d\u4ef7\u683c\u3002\n\u5ba2\u6237\u542c\u6211\u652f\u914d\uff0c\u6309\u7167\u6211\u7684\u65b9\u5f0f\u91c7\u8d2d\u3002"},"opportunityFrom":null,"purchaseType":{"id":165,"key":165,"name":"\u534f\u8bae\u4f9b\u8d27"},"createdBy":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda","sex":"M","department_id":4,"avatar":{"id":2,"user_id":1001,"name":"\/files\/cdn\/\/avatar\/e868e40f-1256-329e-9b1c-74e095049622.png"},"department":{"id":4,"key":4,"name":"\u603b\u7ecf\u7406"}},"projectCreator":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda","sex":"M","department_id":4,"avatar":{"id":2,"user_id":1001,"name":"\/files\/cdn\/\/avatar\/e868e40f-1256-329e-9b1c-74e095049622.png"}},"salesRep":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda","sex":"M","avatar":{"id":2,"user_id":1001,"name":"\/files\/cdn\/\/avatar\/e868e40f-1256-329e-9b1c-74e095049622.png"}},"casePoints":null,"workLogCount":null,"caseCount":null,"salesTimeCount":null,"implementTimeCount":null,"presalesTimeCount":null,"engineerTimeCount":null,"reimbursementAmountSum":null,"buildContract":{"id":3348,"from_project":3568,"payment_collection_remind_ahead":"7 days","serial_no":"2024SZCB-0795-220893","is_settle":true,"is_deliver":true,"is_outbound":true,"erp_settle_amount":"949200","erp_un_settle_amount":"0","including_tax":true,"amount":"949200","contractScans":[{"id":27877,"object_type":105,"object_id":3348,"attachment_id":19680,"attachment":{"id":19680,"key":19680,"name":"3049ca84-484d-3da7-96f3-dadc8a5de3f7","extension":"pdf","path":"\/v2\/attachment\/preview\/lLLCHpZSQkMu0_ceemp9PVo8_3HEKkFC\/3049ca84-484d-3da7-96f3-dadc8a5de3f7\/2024_06_07_11_03_12.pdf","orig_name":"2024_06_07_11_03_12.pdf"}}],"receiptScans":[{"id":27870,"object_type":106,"object_id":3348,"attachment_id":20922,"attachment":{"id":20922,"key":20922,"name":"fe74c1e8-84a6-3046-98e4-d8ff2e5ea5ed","extension":"pdf","path":"\/v2\/attachment\/preview\/lLLCHpZSQkMu0_ceemp9PVo8_3HEKkFC\/fe74c1e8-84a6-3046-98e4-d8ff2e5ea5ed\/\u8ba2\u5355\u7f16\u53f7220873 \u5b58\u50a8\u9a8c\u6536\u5355.pdf","orig_name":"\u8ba2\u5355\u7f16\u53f7220873 \u5b58\u50a8\u9a8c\u6536\u5355.pdf"}}],"verifyScans":[],"erpCollectTickets":[{"id":96,"serial_no":"SKD-20240919-00001","wrote_date":"2024-09-19","from_date":null,"handler":1001,"user_id":null,"client_id":3009,"sales_contract_id":3348,"supplier_id":null,"purchase_contract_id":null,"status":2,"abstract":null,"description":"","verify_type":1,"next_verify_user":null,"next_stop_verify_user":null,"verify_at":"2024-09-19 16:29:39","stop_at":null,"refuse_description":null,"is_resubmitted":false,"amount":"949200","settle_amount":"949200","created_by":1013,"stop_description":null,"is_settle":true,"is_old":true,"created_at":"2024-09-19 16:29:39","updated_at":"2024-09-19 16:29:39","paid_amount":null,"contact_id":null,"bank_settle_at":null,"print_times":null}],"salesContractPayments":[{"id":"196","key":"196","contract_id":3348,"value":"949200","created_by":1013,"collected_date":"2024-09-19 00:00:00","createdBy":{"id":1013,"key":1013,"name":"\u7fc1\u5bb6\u6210","sex":"M","department_id":7},"pct":100}],"salesContractInvoices":[{"id":1749,"key":1749,"contract_id":3348,"value":"949200.00","attachment_id":null,"from_date":"2024-08-14","attachment":null}],"salesContractPaymentCollectionRemindDates":[{"id":1919,"key":1919,"contract_id":3348,"name":"2024-09-28","value":"949200","overdue_days":null,"status":1,"remind_date":"2024-09-28","pct":100,"overdue_display":""}],"salesContractPaymentCollectionRemindReceivers":[{"id":6206,"user_id":1001,"key":1001,"contract_id":3348,"user":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda","sex":"M","avatar":{"id":2,"user_id":1001,"name":"\/files\/cdn\/\/avatar\/e868e40f-1256-329e-9b1c-74e095049622.png"}}}],"salesSupplierRels":[{"id":1657,"contract_id":3348,"supplier_id":511,"purchase_id":3359,"supplier":{"id":511,"key":511,"name":"\u5317\u4eac\u610f\u7545\u79d1\u6280\u80a1\u4efd\u6709\u9650\u516c\u53f8"},"purchase":{"id":3359,"key":3359,"serial_no":"TSKJ20240620-HYF-002"}}],"payment_collection_remind_ahead_display":"\u63d0\u524d7\u5929","invoiced":949200},"projectRemindReceivers":[{"id":1080,"user_id":1001,"key":1001,"project_id":3568,"user":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda","sex":"M","avatar":{"id":2,"user_id":1001,"name":"\/files\/cdn\/\/avatar\/e868e40f-1256-329e-9b1c-74e095049622.png"}}}],"projectProductRels":[{"id":5941,"project_id":3568,"product_id":1655,"amount":"949200","number":1,"cost":"920724","description":"","supplier_id":511,"hardware_from":"2024-06-25","software_from":null,"maintenance_from":null,"hardware_to":"2029-06-24","software_to":null,"maintenance_to":null,"total_amount":"949200","total_cost":"920724","erp_sales_order_product_id":965,"supplier":{"id":511,"key":511,"name":"\u5317\u4eac\u610f\u7545\u79d1\u6280\u80a1\u4efd\u6709\u9650\u516c\u53f8"},"product":{"id":1655,"name":"aStor-EDS3650-W","product_type":3,"product_component":14,"product_brand":12,"product_serie":1408,"product_misc":null,"product_qa":null,"pn":"","description":"\u6df1\u4fe1\u670d\u4f01\u4e1a\u7ea7\u5206\u5e03\u5b58\u50a8aStor-EDS3650-W\n\u603b\u5b9e\u9645\u53ef\u7528\u5bb9\u91cf500TB\u652f\u6301\u5168\u95ea\u6027\u80fd\u5149\u53e3\u5b58\u50a8\uff0c\u5355\u8bbe\u5907\u63a5\u53e3\u81f3\u5c11\u6ee1\u8db3\uff1a2\u5343\u5146\u7535\u53e3+2\u4e07\u5146\u5149\u53e3+2\u4e07\u5146\u5149\u53e3(mellanox 25G)\uff0c\u6ee1\u914d\u5149\u6a21\u5757\u548c\u5149\u7ea4\u7ebf\uff0c\u5e26\u75c5\u6bd2\u68c0\u67e5\u548c\u5904\u7f6e\u529f\u80fd\uff0c\u80fd\u591f\u63a5\u5165\u672c\u5730\u5b89\u5168\u8fd0\u8425\u4e2d\u5fc3\u8fdb\u884c\u6570\u636e\u5b89\u5168\u534f\u540c\u9632\u62a4\uff0c\u5305\u62ec\u96c6\u7fa4\u5185100Gb\u7f51\u7edc\u4e92\u8054\u548c\u5916\u8054100Gb\u7f51\u7edc\u4e92\u8054\u63a5\u53e3\u3001\u6a21\u5757\u3001\u7ebf\u7f06\u548c\u4e92\u8054\u8bbe\u65bd\uff0832\u53e3+\uff09\u3002\n2\u3001\u8f6f\u4ef6\u914d\u7f6e\u89c4\u683c\uff1a\u6574\u4f53\u96c6\u7fa4\u4e0d\u4f4e\u4e8e1PB\u8f6f\u4ef6\u88f8\u5bb9\u91cf\u6388\u6743\uff0c\u4e00\u4e2a\u96c6\u7fa4\u5e73\u53f0\u540c\u65f6\u652f\u6301\u5757\u3001\u6587\u4ef6\u3001\u5bf9\u8c61\u591a\u79cd\u5b58\u50a8\u670d\u52a1\uff0c\u5177\u4f53\u5404\u9879\u7c7b\u578b\u5b58\u50a8\u4f7f\u7528\u91cf\u53ef\u5728\u5b9e\u9645\u4f7f\u7528\u4e2d\u52a8\u6001\u7075\u6d3b\u8c03\u6574\uff1b\n3\u30015\u5e74\u4ea7\u54c1\u8d28\u4fdd\u53ca\u4e13\u5c5e\u5907\u4ef6\u5907\u673a\u670d\u52a1\uff1a\u63d0\u4f9b\u786c\u4ef6\u8bbe\u5907\u6545\u969c\u8fd4\u5382\u7ef4\u4fee\u670d\u52a1\uff1b5\u5e74\u8f6f\u4ef6\u5347\u7ea7\u670d\u52a1\uff1a\u5206\u5e03\u5f0f\u5b58\u50a8\u8f6f\u4ef6\u5168\u529f\u80fd\u7248\u672c\u5347\u7ea7\uff1b5\u5e74\u8bbe\u5907\u5de1\u68c0\u670d\u52a1\uff1a\u6bcf\u6708\u81f3\u5c11\u4e00\u6b21\u539f\u5382\u5de5\u7a0b\u5e08\u4e0a\u95e8\u6392\u67e5\u68c0\u4fee\u670d\u52a1\uff1b\u4ea7\u54c1\u64cd\u4f5c\u57f9\u8bad\u670d\u52a1\uff1a\u8bbe\u5907\u4e0a\u67b6\u521d\u671f2\u4e2a\u6708\u5185\u81f3\u5c11\u63d0\u4f9b15\u4eba\u5929\u7684\u539f\u5382\u9a7b\u573a\u57f9\u8bad\u64cd\u4f5c\u670d\u52a1\uff0c\u540e\u671f\u6bcf\u6708\u81f3\u5c11\u4e00\u6b21\u539f\u5382\u5de5\u7a0b\u5e08\u4e0a\u95e8\u57f9\u8bad\u64cd\u4f5c\u670d\u52a1\uff1b5\u5e74400\u6280\u672f\u652f\u6301\u670d\u52a1\uff1a7*24\u5c0f\u65f6\u7684\u7ebf\u4e0a\u4e13\u5c5e\u7ba1\u5bb6\u652f\u6301\u670d\u52a1\uff1b","created_by":1013,"created_at":"2024-06-21 14:17:08","updated_at":"2024-06-21 14:17:08","pinyin_shortcut":"aStorEDS3650W","product_unit":2,"is_renew":false,"in_out_at":null,"productType":{"id":3,"key":3,"name":"\u5b58\u50a8\u8bbe\u5907"},"productComponent":{"id":14,"key":14,"name":"\u5b58\u50a8\u4e3b\u673a"},"productBrand":{"id":12,"key":12,"name":"\u6df1\u4fe1\u670d"},"productSerie":{"id":1408,"key":1408,"name":"\u6df1\u4fe1\u670d\u4f01\u4e1a\u7ea7\u5206\u5e03\u5b58\u50a8aStor-EDS3650-W"},"productUnit":{"id":2,"key":2,"name":"\u5957"}},"erpSalesOrderProduct":{"id":965,"erp_sales_order_id":1267,"erp_store_id":null,"product_id":1655,"description":"","number":"1","outbound":"0","amount":"949200","total_amount":"949200","last_number":null,"last_amount":null,"last_total_amount":null,"cost":"920724","total_cost":"920724","supplier_id":511,"hardware_from":"2024-06-25","software_from":null,"maintenance_from":null,"hardware_to":"2029-06-24","software_to":null,"maintenance_to":null}}],"commentCount":{"object_id":3568,"comment":3},"unreadComments":null,"fromContact":null,"projectContactPoints":[],"erpSalesOrder":{"id":1267,"serial_no":"XSDD-20240613-00002","from_date":null,"wrote_date":"2024-06-13","handler":1001,"client_id":3009,"purchase_contract_id":null,"project_id":3568,"sales_contract_id":3348,"erp_store_id":null,"status":2,"erp_send_type_id":null,"abstract":null,"description":"","verify_type":1,"next_verify_user":null,"next_stop_verify_user":null,"next_cancel_verify_user":null,"verify_at":"2024-09-19 16:29:39","stop_at":null,"cancel_at":null,"refuse_description":null,"is_resubmitted":false,"is_done":true,"number":"1","amount":"949200","created_by":1001,"stop_description":null,"extra":null,"outbound_status":false,"is_used":false,"is_cancel":false,"is_settle":true,"is_old":true,"created_at":"2024-06-13 10:45:30","updated_at":"2024-09-19 16:29:39","print_times":null},"projectUsedClient":null,"erpSalesOrderVerify":null,"remain_display":759,"progress_remain_display":759,"forecast_remain_display":759,"projectProductTotalAmount":949200,"projectProductAllAmount":true,"projectProductTotalCost":920724,"projectProductAllCost":true,"projectProductTotalNumber":1,"unissued_invoice":0,"is_exceeded":false,"can_update":true,"can_delete":true,"unread":0,"last_arrive_days_display":null,"project_status_display":"\u6536\u6b3e\u5b8c\u6210","is_collected":true,"bgcolor":"#6200fe","can_invoice":true,"can_payment":true,"duration_display":98,"contract_type_display":"\u4ea7\u54c1\u9500\u552e","can_change_status":false,"is_admin":true,"lost_contact_days_display":null,"can_view_product":true,"budget_display":"94.92\u4e07","contact_points_status_display":"\u672a\u8bbe\u7f6e","total_contact_paid_point":0,"total_contact_un_paid_point":0,"verify_display":0,"un_collected":"0","un_invoiced":0,"object_type":1},{"id":3544,"client_id":3009,"project_status":3,"project_progress":9,"budget":"949200","profit_pct":"0.61","bargain_date":"2024-05-20","description":"","created_by":1001,"created_at":"2024-05-20 15:08:39","updated_at":"2024-09-04 16:32:11","engineer_id":null,"project_title":"\u6df1\u4fe1\u670d\u5206\u5e03\u5f0f\u5b58\u50a8\u9879\u76ee","collected":"949200","status_updated_at":"2024-05-20 15:08:39.595955+08","success_rate":null,"comment":"","contract_type":1,"progress_updated_at":"2024-05-20 15:08:39.595955+08","forecast_updated_at":"2024-05-27 14:55:17.45454+08","end_at":"2024-09-04 13:47:16","pinyin_shortcut":"sxffbsccxm","creator":1001,"used_client":null,"from_contact":null,"total_contact_point":null,"paid_contact_point":null,"project_product_version_id":450,"is_sales_order_ready":true,"collected_plan":949200,"change_status_to":null,"is_verify":false,"profits":"5790.120000000000000000","remain":"783 days 08:04:18.2693","progress_remain":"783 days 08:04:18.2693","forecast_remain":"776 days 08:17:40.410715","lost_contact_days":null,"last_contact":"","last_arrive_days":null,"last_arrive":null,"duration":"106 days 22:38:36.47482","issued_invoices":"949200.00","client":{"id":3009,"key":3009,"name":"\u540c\u65b9\u77e5\u7f51(\u5317\u4eac)\u6280\u672f\u6709\u9650\u516c\u53f8\/\u540c\u65b9\u77e5\u7f51\u6570\u5b57\u51fa\u7248\u6280\u672f\u80a1\u4efd\u6709\u9650\u516c\u53f8\/\u300a\u4e2d\u56fd\u5b66\u672f\u671f\u520a(\u5149\u76d8\u7248)\u300b\u7535\u5b50\u6742\u5fd7\u793e\u6709\u9650\u516c\u53f8","logo":null,"client_type":6,"client_class":43,"client_industry":18,"sales_rep":1001,"salesRep":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda","sex":"M","avatar":{"id":2,"user_id":1001,"name":"\/files\/cdn\/\/avatar\/e868e40f-1256-329e-9b1c-74e095049622.png"}},"clientType":{"id":6,"key":6,"name":"\u836f\u54c1\u6279\u53d1\u4f01\u4e1a\uff08\u666e\u901a\uff09"},"clientClass":{"id":43,"key":43,"name":"\u6f5c\u529b\u5ba2\u6237","notice_days":60,"color":"#1EE6DC"},"clientIndustry":{"id":18,"key":18,"name":"\u5a92\u4f53"}},"usedClient":null,"contractType":{"id":1,"key":1,"name":"\u4ea7\u54c1\u9500\u552e"},"projectArchitects":[],"projectStatus":{"id":3,"key":3,"name":"\u5546\u673a\u6210\u4ea4","color":"#53cd02"},"projectProgress":{"id":9,"key":9,"name":"\u7b7e\u8ba2\u5408\u540c","description":"\u5b9a\u4e49\uff1a\u786e\u8ba4\u4ea7\u54c1\u914d\u7f6e\uff0c\u4ea7\u54c1\u6570\u91cf\uff0c\u4ea7\u54c1\u4ef7\u683c\uff0c\u4ed8\u6b3e\u65b9\u5f0f\uff0c\u5230\u8d27\u65e5\u671f\uff0c\u8fdd\u7ea6\u6761\u6b3e\uff0c\u9a8c\u6536\u6807\u51c6\u3002 \n\u65b9\u6cd5\uff1a\u6309\u7167\u516c\u53f8\u5408\u540c\u8303\u672c\u6216\u6309\u7167\u5ba2\u6237\u8303\u672c\u7b7e\u8ba2\u5408\u540c\u3002"},"projectProductTypes":[{"id":3,"product_type_id":3,"key":3,"name":"\u5b58\u50a8\u8bbe\u5907","budget":"949200.00","pct":"0.61","profit":"5790.12","project_id":3544}],"salesForecast":{"id":181,"key":181,"name":"\u6211\u81ea\u5df1\u505a\u5e84","description":"\u5382\u5546\u542c\u6211\u652f\u914d\uff0c\u7ed9\u6211\u597d\u4ef7\u683c\u3002\n\u5ba2\u6237\u542c\u6211\u652f\u914d\uff0c\u6309\u7167\u6211\u7684\u65b9\u5f0f\u91c7\u8d2d\u3002"},"opportunityFrom":null,"purchaseType":{"id":165,"key":165,"name":"\u534f\u8bae\u4f9b\u8d27"},"createdBy":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda","sex":"M","department_id":4,"avatar":{"id":2,"user_id":1001,"name":"\/files\/cdn\/\/avatar\/e868e40f-1256-329e-9b1c-74e095049622.png"},"department":{"id":4,"key":4,"name":"\u603b\u7ecf\u7406"}},"projectCreator":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda","sex":"M","department_id":4,"avatar":{"id":2,"user_id":1001,"name":"\/files\/cdn\/\/avatar\/e868e40f-1256-329e-9b1c-74e095049622.png"}},"salesRep":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda","sex":"M","avatar":{"id":2,"user_id":1001,"name":"\/files\/cdn\/\/avatar\/e868e40f-1256-329e-9b1c-74e095049622.png"}},"casePoints":null,"workLogCount":null,"caseCount":null,"salesTimeCount":null,"implementTimeCount":null,"presalesTimeCount":null,"engineerTimeCount":null,"reimbursementAmountSum":null,"buildContract":{"id":3300,"from_project":3544,"payment_collection_remind_ahead":"7 days","serial_no":"2024SZCB-0795-220873","is_settle":true,"is_deliver":true,"is_outbound":true,"erp_settle_amount":"949200","erp_un_settle_amount":"0","including_tax":true,"amount":"949200","contractScans":[{"id":26740,"object_type":105,"object_id":3300,"attachment_id":19273,"attachment":{"id":19273,"key":19273,"name":"9ee68d14-2018-317b-bb38-3e8dee9ca3e0","extension":"pdf","path":"\/v2\/attachment\/preview\/lLLCHpZSQkMu0_ceemp9PVo8_3HEKkFC\/9ee68d14-2018-317b-bb38-3e8dee9ca3e0\/\u5408\u540c.pdf","orig_name":"\u5408\u540c.pdf"}}],"receiptScans":[{"id":26995,"object_type":106,"object_id":3300,"attachment_id":20201,"attachment":{"id":20201,"key":20201,"name":"c068d4ec-2724-31b7-9ee0-e31f33fd90a7","extension":"jpeg","path":"\/v2\/attachment\/preview\/lLLCHpZSQkMu0_ceemp9PVo8_3HEKkFC\/c068d4ec-2724-31b7-9ee0-e31f33fd90a7\/\u540c\u65b9\u77e5\u7b7e\u6536\u5355.jpeg","orig_name":"\u540c\u65b9\u77e5\u7b7e\u6536\u5355.jpeg"}}],"verifyScans":[],"erpCollectTickets":[{"id":82,"serial_no":"SKD-20240904-00002","wrote_date":"2024-09-04","from_date":null,"handler":1001,"user_id":null,"client_id":3009,"sales_contract_id":3300,"supplier_id":null,"purchase_contract_id":null,"status":2,"abstract":null,"description":"","verify_type":1,"next_verify_user":null,"next_stop_verify_user":null,"verify_at":"2024-09-04 13:47:15","stop_at":null,"refuse_description":null,"is_resubmitted":false,"amount":"949200","settle_amount":"949200","created_by":1013,"stop_description":null,"is_settle":true,"is_old":true,"created_at":"2024-09-04 13:47:15","updated_at":"2024-09-04 13:47:15","paid_amount":null,"contact_id":null,"bank_settle_at":null,"print_times":null}],"salesContractPayments":[{"id":"182","key":"182","contract_id":3300,"value":"949200","created_by":1013,"collected_date":"2024-09-04 00:00:00","createdBy":{"id":1013,"key":1013,"name":"\u7fc1\u5bb6\u6210","sex":"M","department_id":7},"pct":100}],"salesContractInvoices":[{"id":1697,"key":1697,"contract_id":3300,"value":"949200.00","attachment_id":null,"from_date":"2024-06-26","attachment":null}],"salesContractPaymentCollectionRemindDates":[{"id":1682,"key":1682,"contract_id":3300,"name":"2024-07-21","value":"949200","overdue_days":45,"status":1,"remind_date":"2024-07-21","pct":100,"overdue_display":"\u903e\u671f45\u5929"}],"salesContractPaymentCollectionRemindReceivers":[{"id":5540,"user_id":1001,"key":1001,"contract_id":3300,"user":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda","sex":"M","avatar":{"id":2,"user_id":1001,"name":"\/files\/cdn\/\/avatar\/e868e40f-1256-329e-9b1c-74e095049622.png"}}},{"id":5542,"user_id":1011,"key":1011,"contract_id":3300,"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"}}}],"salesSupplierRels":[{"id":1454,"contract_id":3300,"supplier_id":511,"purchase_id":3359,"supplier":{"id":511,"key":511,"name":"\u5317\u4eac\u610f\u7545\u79d1\u6280\u80a1\u4efd\u6709\u9650\u516c\u53f8"},"purchase":{"id":3359,"key":3359,"serial_no":"TSKJ20240620-HYF-002"}}],"payment_collection_remind_ahead_display":"\u63d0\u524d7\u5929","invoiced":949200},"projectRemindReceivers":[{"id":1048,"user_id":1001,"key":1001,"project_id":3544,"user":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda","sex":"M","avatar":{"id":2,"user_id":1001,"name":"\/files\/cdn\/\/avatar\/e868e40f-1256-329e-9b1c-74e095049622.png"}}}],"projectProductRels":[{"id":5300,"project_id":3544,"product_id":1655,"amount":"949200","number":1,"cost":"920724","description":"","supplier_id":511,"hardware_from":"2024-06-25","software_from":null,"maintenance_from":null,"hardware_to":"2029-06-24","software_to":null,"maintenance_to":null,"total_amount":"949200","total_cost":"920724","erp_sales_order_product_id":897,"supplier":{"id":511,"key":511,"name":"\u5317\u4eac\u610f\u7545\u79d1\u6280\u80a1\u4efd\u6709\u9650\u516c\u53f8"},"product":{"id":1655,"name":"aStor-EDS3650-W","product_type":3,"product_component":14,"product_brand":12,"product_serie":1408,"product_misc":null,"product_qa":null,"pn":"","description":"\u6df1\u4fe1\u670d\u4f01\u4e1a\u7ea7\u5206\u5e03\u5b58\u50a8aStor-EDS3650-W\n\u603b\u5b9e\u9645\u53ef\u7528\u5bb9\u91cf500TB\u652f\u6301\u5168\u95ea\u6027\u80fd\u5149\u53e3\u5b58\u50a8\uff0c\u5355\u8bbe\u5907\u63a5\u53e3\u81f3\u5c11\u6ee1\u8db3\uff1a2\u5343\u5146\u7535\u53e3+2\u4e07\u5146\u5149\u53e3+2\u4e07\u5146\u5149\u53e3(mellanox 25G)\uff0c\u6ee1\u914d\u5149\u6a21\u5757\u548c\u5149\u7ea4\u7ebf\uff0c\u5e26\u75c5\u6bd2\u68c0\u67e5\u548c\u5904\u7f6e\u529f\u80fd\uff0c\u80fd\u591f\u63a5\u5165\u672c\u5730\u5b89\u5168\u8fd0\u8425\u4e2d\u5fc3\u8fdb\u884c\u6570\u636e\u5b89\u5168\u534f\u540c\u9632\u62a4\uff0c\u5305\u62ec\u96c6\u7fa4\u5185100Gb\u7f51\u7edc\u4e92\u8054\u548c\u5916\u8054100Gb\u7f51\u7edc\u4e92\u8054\u63a5\u53e3\u3001\u6a21\u5757\u3001\u7ebf\u7f06\u548c\u4e92\u8054\u8bbe\u65bd\uff0832\u53e3+\uff09\u3002\n2\u3001\u8f6f\u4ef6\u914d\u7f6e\u89c4\u683c\uff1a\u6574\u4f53\u96c6\u7fa4\u4e0d\u4f4e\u4e8e1PB\u8f6f\u4ef6\u88f8\u5bb9\u91cf\u6388\u6743\uff0c\u4e00\u4e2a\u96c6\u7fa4\u5e73\u53f0\u540c\u65f6\u652f\u6301\u5757\u3001\u6587\u4ef6\u3001\u5bf9\u8c61\u591a\u79cd\u5b58\u50a8\u670d\u52a1\uff0c\u5177\u4f53\u5404\u9879\u7c7b\u578b\u5b58\u50a8\u4f7f\u7528\u91cf\u53ef\u5728\u5b9e\u9645\u4f7f\u7528\u4e2d\u52a8\u6001\u7075\u6d3b\u8c03\u6574\uff1b\n3\u30015\u5e74\u4ea7\u54c1\u8d28\u4fdd\u53ca\u4e13\u5c5e\u5907\u4ef6\u5907\u673a\u670d\u52a1\uff1a\u63d0\u4f9b\u786c\u4ef6\u8bbe\u5907\u6545\u969c\u8fd4\u5382\u7ef4\u4fee\u670d\u52a1\uff1b5\u5e74\u8f6f\u4ef6\u5347\u7ea7\u670d\u52a1\uff1a\u5206\u5e03\u5f0f\u5b58\u50a8\u8f6f\u4ef6\u5168\u529f\u80fd\u7248\u672c\u5347\u7ea7\uff1b5\u5e74\u8bbe\u5907\u5de1\u68c0\u670d\u52a1\uff1a\u6bcf\u6708\u81f3\u5c11\u4e00\u6b21\u539f\u5382\u5de5\u7a0b\u5e08\u4e0a\u95e8\u6392\u67e5\u68c0\u4fee\u670d\u52a1\uff1b\u4ea7\u54c1\u64cd\u4f5c\u57f9\u8bad\u670d\u52a1\uff1a\u8bbe\u5907\u4e0a\u67b6\u521d\u671f2\u4e2a\u6708\u5185\u81f3\u5c11\u63d0\u4f9b15\u4eba\u5929\u7684\u539f\u5382\u9a7b\u573a\u57f9\u8bad\u64cd\u4f5c\u670d\u52a1\uff0c\u540e\u671f\u6bcf\u6708\u81f3\u5c11\u4e00\u6b21\u539f\u5382\u5de5\u7a0b\u5e08\u4e0a\u95e8\u57f9\u8bad\u64cd\u4f5c\u670d\u52a1\uff1b5\u5e74400\u6280\u672f\u652f\u6301\u670d\u52a1\uff1a7*24\u5c0f\u65f6\u7684\u7ebf\u4e0a\u4e13\u5c5e\u7ba1\u5bb6\u652f\u6301\u670d\u52a1\uff1b","created_by":1013,"created_at":"2024-06-21 14:17:08","updated_at":"2024-06-21 14:17:08","pinyin_shortcut":"aStorEDS3650W","product_unit":2,"is_renew":false,"in_out_at":null,"productType":{"id":3,"key":3,"name":"\u5b58\u50a8\u8bbe\u5907"},"productComponent":{"id":14,"key":14,"name":"\u5b58\u50a8\u4e3b\u673a"},"productBrand":{"id":12,"key":12,"name":"\u6df1\u4fe1\u670d"},"productSerie":{"id":1408,"key":1408,"name":"\u6df1\u4fe1\u670d\u4f01\u4e1a\u7ea7\u5206\u5e03\u5b58\u50a8aStor-EDS3650-W"},"productUnit":{"id":2,"key":2,"name":"\u5957"}},"erpSalesOrderProduct":{"id":897,"erp_sales_order_id":1247,"erp_store_id":null,"product_id":1655,"description":"","number":"1","outbound":"0","amount":"949200","total_amount":"949200","last_number":null,"last_amount":null,"last_total_amount":null,"cost":"920724","total_cost":"920724","supplier_id":511,"hardware_from":"2024-06-25","software_from":null,"maintenance_from":null,"hardware_to":"2029-06-24","software_to":null,"maintenance_to":null}}],"commentCount":{"object_id":3544,"comment":4},"unreadComments":null,"fromContact":null,"projectContactPoints":[],"erpSalesOrder":{"id":1247,"serial_no":"XSDD-20240904-00001","from_date":null,"wrote_date":"2024-05-20","handler":1001,"client_id":3009,"purchase_contract_id":null,"project_id":3544,"sales_contract_id":3300,"erp_store_id":null,"status":2,"erp_send_type_id":null,"abstract":null,"description":"","verify_type":1,"next_verify_user":null,"next_stop_verify_user":null,"next_cancel_verify_user":null,"verify_at":"2024-09-04 13:47:16","stop_at":null,"cancel_at":null,"refuse_description":null,"is_resubmitted":false,"is_done":true,"number":"1","amount":"949200","created_by":1001,"stop_description":null,"extra":null,"outbound_status":false,"is_used":false,"is_cancel":false,"is_settle":true,"is_old":true,"created_at":"2024-05-20 15:08:39","updated_at":"2024-09-04 13:47:16","print_times":null},"projectUsedClient":null,"erpSalesOrderVerify":null,"remain_display":783,"progress_remain_display":783,"forecast_remain_display":776,"projectProductTotalAmount":949200,"projectProductAllAmount":true,"projectProductTotalCost":920724,"projectProductAllCost":true,"projectProductTotalNumber":1,"unissued_invoice":0,"is_exceeded":false,"can_update":true,"can_delete":true,"unread":0,"last_arrive_days_display":null,"project_status_display":"\u6536\u6b3e\u5b8c\u6210","is_collected":true,"bgcolor":"#6200fe","can_invoice":true,"can_payment":true,"duration_display":106,"contract_type_display":"\u4ea7\u54c1\u9500\u552e","can_change_status":false,"is_admin":true,"lost_contact_days_display":null,"can_view_product":true,"budget_display":"94.92\u4e07","contact_points_status_display":"\u672a\u8bbe\u7f6e","total_contact_paid_point":0,"total_contact_un_paid_point":0,"verify_display":0,"un_collected":"0","un_invoiced":0,"object_type":1}],"pagenation":{"totalcount":3,"thispage":1,"pagesize":10},"can_create":true},"status":1,"msg":[{"name":"success","success":"\u6210\u529f\u83b7\u53d6\u6570\u636e","error":""}],"ip":"223.74.191.180","ua":"jinchangxiao\/2.3.176 (XiaomiMi 10; Android 13)"}', FALSE, '2026-07-12 23:12:58', 237859072) RETURNING "id"