All Latest
6a2691977ef4e: POST https://beta.jinchangxiao.com/v2/client/get-edit at 2026-06-08 05:55:35 pm by 125.78.86.146

Database Queries

总计41条数据
TimeDurationTypeQuery
  
17:55:35.5220.7 msSELECTSELECT * FROM "global"."vw_user_login" WHERE "access_token"='lLLCHpZSQkMu0_ceemp9PVo8_3HEKkFC'

17:55:35.5250.5 msSELECTSELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001

17:55:35.5263.6 msSELECTSELECT DISTINCT c.*, CASE WHEN c.sales_rep IS NULL THEN 0 ELSE c.sales_rep END AS sales_rep, CASE WHEN c.sales_rep IS NULL THEN 0 ELSE 1 END AS is_public, CASE WHEN p.id IS NULL THEN false ELSE true END AS cooperated, sl_agg.lost_contact_days, arrive_agg.last_arrive_days, sl_agg.last_contact, cc.notice_days AS notice_days FROM "a57be577deb434"."tbl_clients" "c" LEFT JOIN (SELECT client_id, extract(epoch from (now() - max(end_at))) / 86400 AS last_arrive_days FROM "a57be577deb434"."tbl_work_logs" WHERE ("is_draft"=FALSE) AND ("location_in_id" IS NOT NULL) AND ("location_out_id" IS NOT NULL) AND ("client_id" IS NOT NULL) AND ("client_id"='3432') GROUP BY "client_id") "arrive_agg" ON arrive_agg.client_id = c.id LEFT JOIN (SELECT client_id, extract(epoch from (now() - max(end_at))) / 86400 AS lost_contact_days, max(end_at) as last_contact FROM "a57be577deb434"."tbl_work_logs" WHERE "client_id"='3432' GROUP BY "client_id") "sl_agg" ON sl_agg.client_id = c.id LEFT JOIN "a57be577deb434"."tbl_projects" "p" ON p.client_id = c.id AND p.project_status = 3 LEFT JOIN "a57be577deb434"."tbl_client_classes" "cc" ON cc.id = c.client_class WHERE ("c"."id"='3432') AND ("c"."deleted"=FALSE)

17:55:35.5310.2 msSELECTSELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_client_types" WHERE "id"=1

17:55:35.5310.9 msSELECTSELECT "id", "id" AS "key", "name", "notice_days", "color", "visit_base" FROM "a57be577deb434"."tbl_client_classes" WHERE "id"=80

17:55:35.5320.2 msSELECTSELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_company_natures" WHERE "id"=3

17:55:35.5330.2 msSELECTSELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_client_industries" WHERE "id"=1

17:55:35.5332.3 msSELECTSELECT "id", "id" AS "key", "name", "sex", "client_lock" FROM "a57be577deb434"."tbl_users" WHERE "id"=1001

17:55:35.5372.4 msSELECTSELECT "id", "user_id", "meta_value" AS "name" FROM "a57be577deb434"."tbl_user_meta" WHERE ("meta_key"='avatar') AND ("user_id"=1001)

17:55:35.5390.2 msSELECTSELECT * FROM "a57be577deb434"."tbl_term_taxonomy_relationships" WHERE "object_id"=3432

17:55:35.5400.3 msSELECTSELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_term_taxonomies" WHERE ("term_id"=14) AND ("id" IN (5, 226, 1, 164, 181, 197, 199, 377, 349)) ORDER BY "sort"

17:55:35.5401.5 msSELECTSELECT "id", "client_id" FROM "a57be577deb434"."tbl_cases" WHERE ("case_status" NOT IN (5, 6)) AND ("client_id"=3432)

17:55:35.5420.2 msSELECTSELECT "id", "id" AS "key", "name", "sex", "department_id" FROM "a57be577deb434"."tbl_users" WHERE "id"=1011

17:55:35.5420.3 msSELECTSELECT "id", "user_id", "meta_value" AS "name" FROM "a57be577deb434"."tbl_user_meta" WHERE ("meta_key"='avatar') AND ("user_id"=1011)

17:55:35.5430.2 msSELECTSELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_departments" WHERE "id"=3

17:55:35.5430.3 msSELECTSELECT "client_id", count(id) as count FROM "a57be577deb434"."tbl_work_logs" WHERE ("is_draft"=FALSE) AND ("client_id"=3432) GROUP BY "client_id"

17:55:35.5441.2 msSELECTSELECT "client_id", count(id) as count FROM "a57be577deb434"."tbl_cases" WHERE "client_id"=3432 GROUP BY "client_id"

17:55:35.5450.4 msSELECTSELECT "client_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 ("client_id"=3432) GROUP BY "client_id"

17:55:35.5461.8 msSELECTSELECT "c"."client_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"."client_id"=3432) GROUP BY "c"."client_id"

17:55:35.5485.8 msSELECTSELECT "c"."client_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"."client_id"=3432) GROUP BY "c"."client_id"

17:55:35.5573.1 msSELECTSELECT "client_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 ("client_id"=3432) GROUP BY "client_id"

17:55:35.5602.1 msSELECTSELECT "client_id", sum(amount) AS sum FROM "a57be577deb434"."tbl_reimbursements" WHERE ("status" IN (2, 3)) AND ("client_id"=3432) GROUP BY "client_id"

17:55:35.5630.9 msSELECTSELECT "id", "id" AS "key", "address" AS "name", "client_id" FROM "a57be577deb434"."tbl_client_addresses" WHERE "client_id"=3432

17:55:35.5641.1 msSELECTSELECT * FROM "a57be577deb434"."tbl_contacts" WHERE "client_id"=3432

17:55:35.5660.2 msSELECTSELECT "id", "id" AS "key", "status" AS "name" FROM "a57be577deb434"."tbl_contact_statuses" WHERE "id"=2

17:55:35.5670.2 msSELECTSELECT "id", "id" AS "key", "name", "sex", "user_status" FROM "a57be577deb434"."tbl_users" WHERE "id"=1001

17:55:35.5670.6 msSELECTSELECT * FROM "a57be577deb434"."tbl_contact_mobiles" WHERE "contact_id"=6209

17:55:35.5680.3 msSELECTSELECT * FROM "a57be577deb434"."tbl_term_taxonomy_relationships" WHERE "object_id"=6209

17:55:35.5680.3 msSELECTSELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_term_taxonomies" WHERE ("term_id"=11) AND ("id" IN (1, 184, 349)) ORDER BY "sort"

17:55:35.5690.2 msSELECTSELECT * FROM "a57be577deb434"."tbl_term_taxonomy_relationships" WHERE "object_id"=6209

17:55:35.5690.3 msSELECTSELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_term_taxonomies" WHERE ("term_id"=12) AND ("id" IN (1, 184, 349)) ORDER BY "sort"

17:55:35.56925.5 msSELECTSELECT "object_id", count(*) as comment FROM "a57be577deb434"."tbl_comments" WHERE ("object_type"=10) AND ("object_id"=3432) GROUP BY "object_id"

17:55:35.59522.7 msSELECTSELECT "object_id", count(*) AS unread FROM "a57be577deb434"."tbl_unread_comments" WHERE ("object_type"=10) AND (("remind_user_id"=1001) AND ("is_read"=FALSE)) AND ("object_id"=3432) GROUP BY "object_id"

17:55:35.6181.7 msSELECTSELECT * FROM "a57be577deb434"."tbl_client_address_rels" WHERE "client_id"=3432

17:55:35.6230.8 msSELECTSELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_clients" "c" WHERE (("c"."sales_rep" IN (1001, 5049, 5301, 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 ("c"."sales_rep" IS NULL) OR ("c"."id" IN (SELECT "client_id" FROM "a57be577deb434"."tbl_user_visit_clients" WHERE "user_id"=1001))) AND ("c"."id"=3432))

17:55:35.6240.4 msSELECTSELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001

17:55:35.6290.3 msSELECTSELECT "id" AS "key", "name" FROM "a57be577deb434"."tbl_client_types" WHERE ("is_delete"=FALSE) OR ("id"=1) ORDER BY "order"

17:55:35.6290.2 msSELECTSELECT "id" AS "key", "name" FROM "a57be577deb434"."tbl_client_classes" WHERE ("is_delete"=FALSE) OR ("id"=80) ORDER BY "order"

17:55:35.6300.2 msSELECTSELECT "id" AS "key", "name" FROM "a57be577deb434"."tbl_company_natures" WHERE ("is_delete"=FALSE) OR ("id"=3) ORDER BY "order"

17:55:35.6300.2 msSELECTSELECT "id" AS "key", "name" FROM "a57be577deb434"."tbl_client_industries" WHERE ("is_delete"=FALSE) OR ("id"=1) ORDER BY "order"

17:55:35.6321.3 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, 7, 176, 'v2/client/get-edit', '{"id":"3432","posttime":"1780912535","access_token":"lLLCHpZSQkMu0_ceemp9PVo8_3HEKkFC","device_type":"7","version_code":"176","token":"8c4dc33680011bc6c909b75c199f65e7"}', '{"code":200,"data":{"model":{"id":3432,"name":"\u4e2d\u56fd\u6c11\u822a\u7ba1\u7406\u5e72\u90e8\u5b66\u9662","abbr":null,"pinyin_shortcut":"zgmhglgbxy","description":"","corp_rep":"\u4e8e\u5251","website":"","capital":null,"established_at":null,"headcount":null,"reg_address":null,"working_address":null,"telephone":"010-64720239","fax":"","scale":null,"branch":"","purchase_scale_per_yr":"0.0","purchase_freq":"","company_nature":3,"client_class":80,"client_industry":1,"client_type":1,"sales_rep":1001,"main_contact":null,"created_by":1011,"created_at":"2025-12-19 13:31:40","updated_at":"2026-06-03 22:57:02","main_business":null,"deleted":false,"capital_currency":"rmb","invoice_info":"\u540d\u79f0\uff1a \u4e2d\u56fd\u6c11\u822a\u7ba1\u7406\u5e72\u90e8\u5b66\u9662\n\u7eb3\u7a0e\u4eba\u8bc6\u522b\u53f7\uff1a 121000004008366672\n\u5f00\u6237\u94f6\u884c\uff1a \u5de5\u5546\u94f6\u884c\u5317\u4eac\u56db\u5143\u6865\u652f\u884c\n\u94f6\u884c\u8d26\u53f7\uff1a 0200080509026401168\n\u5730\u5740\uff1a \u5317\u4eac\u5e02\u671d\u9633\u533a\u82b1\u5bb6\u5730\u4e1c\u8def3\u53f7\n\u8054\u7cfb\u7535\u8bdd\uff1a 010-64720239","logo":null,"en_name":"","pick_at":"2025-12-19 13:31:40","it_budget":null,"deployment_mode":null,"it_per_num":null,"public_relations_difficulty":null,"it_status":null,"decision_process":null,"coach":null,"competitor":null,"peers":null,"supplier":null,"main_product":null,"client_base_info_count":3,"client_key_info_count":0,"contact_count":1,"visit_count":0,"cooperate_count":2,"case_pre_sales_count":1,"case_implement_count":0,"is_overdue_remind":false,"from_contact":null,"tax_no":"","is_public":1,"cooperated":true,"lost_contact_days":null,"last_arrive_days":null,"last_contact":"","notice_days":30,"workingAddress":null,"clientType":{"id":1,"key":1,"name":"\u836f\u54c1\u6279\u53d1\u4f01\u4e1a\uff08\u5168\u8d44\u8d28\uff09"},"clientClass":{"id":80,"key":80,"name":"\u7a33\u5b9a\u5ba2\u6237","notice_days":30,"color":"#0EE315","visit_base":60},"companyNature":{"id":3,"key":3,"name":"\u56fd\u6709\u4f01\u4e1a"},"clientIndustry":{"id":1,"key":1,"name":"\u653f\u5e9c"},"salesRep":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda","sex":"M","client_lock":false,"avatar":{"id":2,"user_id":1001,"name":"\/files\/cdn\/\/avatar\/e868e40f-1256-329e-9b1c-74e095049622.png"}},"clientFrom":null,"unCloseCases":[{"id":9257,"client_id":3432},{"id":9258,"client_id":3432}],"createdBy":{"id":1011,"key":1011,"name":"\u97e9\u96c5\u82b3","sex":"F","department_id":3,"avatar":{"id":17,"user_id":1011,"name":"\/files\/cdn\/a57be577deb434\/avatar\/b54747f4-248d-380e-93bc-0f62f769e70d.png"},"department":{"id":3,"key":3,"name":"\u5546\u52a1\u90e8"}},"workLogCount":null,"caseCount":{"client_id":3432,"count":3},"salesTimeCount":null,"implementTimeCount":null,"presalesTimeCount":{"client_id":3432,"sum":null,"times":null},"engineerTimeCount":null,"reimbursementAmountSum":{"client_id":3432,"sum":"5"},"addresses":[],"contacts":[{"id":6209,"name":"\u5f20\u79b9","email":"","pinyin_shortcut":"zy","sex":"M","birth_date":null,"department":"","job_position":"","mobile":"","telephone":"","client_id":3432,"supplier_id":null,"created_by":1001,"created_at":"2025-12-19 13:44:52","updated_at":"2025-12-19 13:44:52","user_status":2,"description":"","contact_type":"1","contact_attitude":null,"telephone_area_code":"","telephone_extension_number":"","mp_open_id":null,"pinyin1":"zhang","pinyin2":"yu","pinyin3":null,"pinyin4":null,"namecut1":"\u5f20","namecut2":"\u79b9","namecut3":null,"namecut4":null,"is_mp_bind":false,"contactStatus":{"id":2,"key":2,"name":"\u5728\u804c"},"createdBy":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda","sex":"M","user_status":"1"},"mobiles":[{"id":6991,"contact_id":6209,"mobile":"13810398281","mp_open_id":null}],"contactKeyRoles":[],"contactAttitude":null}],"commentCount":null,"unreadComments":null,"fromContact":null,"workingAddresses":[],"unread":0,"lost_contact_days_display":null,"last_arrive_days_display":null,"bgcolor":"#0EE315","overdue_display":"\u903e\u671f142\u5929\u672a\u8054\u7cfb","last_arrive_overdue_display":"\u903e\u671f112\u5929\u672a\u62dc\u8bbf","can_pick_up":false,"can_transfer":true,"can_update":true,"can_delete":false,"can_give_up":true,"can_create_contact":true,"can_edit_contact":true,"object_type":10,"can_create_reimbursement":true,"can_create_schedule":true,"can_create_work_log":true},"options":[{"key":"sales_rep","name":"\u5ba2\u6237\u7ecf\u7406","value":[{"key":1001,"name":"\u5218\u4eba\u8bda"}]},{"key":"client_industry","name":"\u5ba2\u6237\u884c\u4e1a","value":[{"key":57,"name":"EDA\/CAE"},{"key":1,"name":"\u653f\u5e9c"},{"key":25,"name":"\u6559\u80b2\uff08\u673a\u6784\uff09"},{"key":2,"name":"\u6559\u80b2\uff08\u9ad8\u6821\uff09"},{"key":24,"name":"\u6559\u80b2\uff08\u666e\u6559\uff09"},{"key":3,"name":"\u533b\u7597"},{"key":4,"name":"\u901a\u4fe1"},{"key":5,"name":"\u5236\u9020"},{"key":58,"name":"\u519b\u5de5"},{"key":6,"name":"\u7535\u5546"},{"key":7,"name":"\u9152\u5e97"},{"key":8,"name":"\u7269\u6d41"},{"key":9,"name":"\u5730\u4ea7"},{"key":10,"name":"\u91d1\u878d"},{"key":11,"name":"\u4ea4\u901a"},{"key":12,"name":"\u5e7f\u544a"},{"key":13,"name":"SI\/ISV"},{"key":14,"name":"\u5e7f\u7535"},{"key":15,"name":"\u7535\u529b"},{"key":16,"name":"\u80fd\u6e90"},{"key":17,"name":"\u96f6\u552e"},{"key":18,"name":"\u5a92\u4f53"},{"key":19,"name":"OTT"},{"key":20,"name":"\u5176\u4ed6"},{"key":59,"name":"\u8d38\u6613"}]},{"key":"company_nature","name":"\u516c\u53f8\u6027\u8d28","value":[{"key":1,"name":"\u56fd\u6709\u4e0a\u5e02"},{"key":2,"name":"\u6c11\u8425\u4e0a\u5e02"},{"key":3,"name":"\u56fd\u6709\u4f01\u4e1a"},{"key":4,"name":"\u6c11\u8425\u4f01\u4e1a"},{"key":6,"name":"\u5916\u8d44\u4f01\u4e1a"}]},{"key":"client_class","name":"\u5ba2\u6237\u7ea7\u522b","value":[{"key":1,"name":"\u6838\u5fc3\u5ba2\u6237"},{"key":80,"name":"\u7a33\u5b9a\u5ba2\u6237"},{"key":47,"name":"\u76ee\u6807\u5ba2\u6237"},{"key":43,"name":"\u6f5c\u529b\u5ba2\u6237"}]},{"key":"client_type","name":"\u5ba2\u6237\u6027\u8d28","value":[{"key":1,"name":"\u836f\u54c1\u6279\u53d1\u4f01\u4e1a\uff08\u5168\u8d44\u8d28\uff09"},{"key":6,"name":"\u836f\u54c1\u6279\u53d1\u4f01\u4e1a\uff08\u666e\u901a\uff09"},{"key":5,"name":"\u836f\u54c1\u96f6\u552e\u4f01\u4e1a\uff08\u5355\u4f53\uff09"},{"key":3,"name":"\u4e2a\u4eba\u6d88\u8d39\u8005"}]}]},"status":1,"msg":[{"name":"success","success":"\u6210\u529f\u83b7\u53d6\u6570\u636e","error":""}],"ip":"125.78.86.146","ua":"jinchangxiao\/1.0.40 (emulator emulator; HarmonyOS 6.1.0)"}', FALSE, '2026-06-08 17:55:35', 111180032) RETURNING "id"