Total processing time: 751 ms; Peak memory: 5.311 MB. Show Profiling Timeline
| Time | Duration | Category | Info |
|---|---|---|---|
| 21:09:04.610 | 98.8 ms | yii\db\Command::query | SELECT c.* FROM "a57be577deb434"."tbl_cases" "c" LEFT JOIN "a57be577deb434"."tbl_clients" "client" ON client.id = c.client_id LEFT JOIN "a57be577deb434"."tbl_projects" "p" ON p.id = c.project_id LEFT JOIN "a57be577deb434"."tbl_pre_sales" "ps" ON ps.case_id = c.id AND ps.has_following_work = true LEFT JOIN "a57be577deb434"."tbl_implement_records" "ir" ON ir.case_id = c.id AND ir.has_following_work = true LEFT JOIN "a57be577deb434"."tbl_implement_records" "i" ON i.case_id = c.id LEFT JOIN "a57be577deb434"."tbl_implement_items" "iri" ON i.id = iri.implement_record_id LEFT JOIN "a57be577deb434"."tbl_sales_group_relationships" "sgr" ON sgr.sales_id = c.deduct_points_from LEFT JOIN "a57be577deb434"."tbl_engineer_group_relationships" "egr" ON egr.engineer_id = c.last_engineer LEFT JOIN "a57be577deb434"."tbl_case_remind_dates" "crd" ON crd.case_id = c.id LEFT JOIN "a57be577deb434"."tbl_case_remind_receivers" "crr" ON crr.remind_date_id = crd.id LEFT JOIN "a57be577deb434"."tbl_case_carbon_copy_rels" "cccr" ON cccr.case_id = c.id LEFT JOIN "a57be577deb434"."tbl_case_services" "cs" ON cs.case_id = c.id LEFT JOIN "a57be577deb434"."tbl_services" "s" ON cs.service_id = s.id WHERE (("deduct_points_from" IN (5049, 5500, 5301, 5499, 5022, 5209, 5026, 5293, 5309, 5356, 5329, 5299, 5303, 5302, 5332, 5047, 1026, 5096, 5070, 5448, 5420, 1029, 1001, 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 ("deduct_points_from" IS NULL) OR ("last_engineer"=1000) OR ("crr"."user_id"=1000) OR ("cccr"."user_id"=1000) OR ("client"."id" IN (SELECT "client_id" FROM "a57be577deb434"."tbl_user_visit_clients" WHERE "user_id"=1000))) AND (("client"."name" ILIKE '%实施总结%') OR ("client"."pinyin_shortcut" ILIKE '%实施总结%') OR ("p"."project_title" ILIKE '%实施总结%') OR ("iri"."pn" ILIKE '%实施总结%') OR ("iri"."sn" ILIKE '%实施总结%') OR ("i"."description" ILIKE '%实施总结%') OR ("s"."title" ILIKE '%实施总结%') OR ("case_no" ILIKE '%实施总结%')) AND ("case_type"='2') GROUP BY "c"."id" ORDER BY "c"."updated_at" DESC LIMIT 10 |
| 21:09:04.516 | 94.0 ms | yii\db\Command::query | SELECT COUNT(*) FROM (SELECT c.* FROM "a57be577deb434"."tbl_cases" "c" LEFT JOIN "a57be577deb434"."tbl_clients" "client" ON client.id = c.client_id LEFT JOIN "a57be577deb434"."tbl_projects" "p" ON p.id = c.project_id LEFT JOIN "a57be577deb434"."tbl_pre_sales" "ps" ON ps.case_id = c.id AND ps.has_following_work = true LEFT JOIN "a57be577deb434"."tbl_implement_records" "ir" ON ir.case_id = c.id AND ir.has_following_work = true LEFT JOIN "a57be577deb434"."tbl_implement_records" "i" ON i.case_id = c.id LEFT JOIN "a57be577deb434"."tbl_implement_items" "iri" ON i.id = iri.implement_record_id LEFT JOIN "a57be577deb434"."tbl_sales_group_relationships" "sgr" ON sgr.sales_id = c.deduct_points_from LEFT JOIN "a57be577deb434"."tbl_engineer_group_relationships" "egr" ON egr.engineer_id = c.last_engineer LEFT JOIN "a57be577deb434"."tbl_case_remind_dates" "crd" ON crd.case_id = c.id LEFT JOIN "a57be577deb434"."tbl_case_remind_receivers" "crr" ON crr.remind_date_id = crd.id LEFT JOIN "a57be577deb434"."tbl_case_carbon_copy_rels" "cccr" ON cccr.case_id = c.id LEFT JOIN "a57be577deb434"."tbl_case_services" "cs" ON cs.case_id = c.id LEFT JOIN "a57be577deb434"."tbl_services" "s" ON cs.service_id = s.id WHERE (("deduct_points_from" IN (5049, 5500, 5301, 5499, 5022, 5209, 5026, 5293, 5309, 5356, 5329, 5299, 5303, 5302, 5332, 5047, 1026, 5096, 5070, 5448, 5420, 1029, 1001, 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 ("deduct_points_from" IS NULL) OR ("last_engineer"=1000) OR ("crr"."user_id"=1000) OR ("cccr"."user_id"=1000) OR ("client"."id" IN (SELECT "client_id" FROM "a57be577deb434"."tbl_user_visit_clients" WHERE "user_id"=1000))) AND (("client"."name" ILIKE '%实施总结%') OR ("client"."pinyin_shortcut" ILIKE '%实施总结%') OR ("p"."project_title" ILIKE '%实施总结%') OR ("iri"."pn" ILIKE '%实施总结%') OR ("iri"."sn" ILIKE '%实施总结%') OR ("i"."description" ILIKE '%实施总结%') OR ("s"."title" ILIKE '%实施总结%') OR ("case_no" ILIKE '%实施总结%')) AND ("case_type"='2') GROUP BY "c"."id" ORDER BY "c"."updated_at" DESC) "c" |
| 21:09:04.814 | 91.9 ms | yii\db\Command::query | SELECT count(*) as count, sum(case when "sub".case_status=1 then 1 else 0 end) countStatus1, sum(case when "sub".case_status=2 then 1 else 0 end) countStatus2, sum(case when "sub".case_status=3 then 1 else 0 end) countStatus3, sum(case when "sub".case_status=4 then 1 else 0 end) countStatus4, sum(case when "sub".case_status=5 then 1 else 0 end) countStatus5, sum(case when "sub".case_status=6 then 1 else 0 end) countStatus6 FROM (SELECT c.* FROM "a57be577deb434"."tbl_cases" "c" LEFT JOIN "a57be577deb434"."tbl_callback_records" "cb" ON cb.case_id = c.id LEFT JOIN "a57be577deb434"."tbl_clients" "client" ON client.id = c.client_id LEFT JOIN "a57be577deb434"."tbl_projects" "p" ON p.id = c.project_id LEFT JOIN "a57be577deb434"."tbl_task_groups" "tg" ON tg.id = c.task_group_id LEFT JOIN "a57be577deb434"."tbl_implement_records" "i" ON i.case_id = c.id LEFT JOIN "a57be577deb434"."tbl_pre_sales" "ps" ON ps.case_id = c.id LEFT JOIN "a57be577deb434"."tbl_implement_items" "iri" ON i.id = iri.implement_record_id LEFT JOIN "a57be577deb434"."tbl_sales_group_relationships" "sgr" ON sgr.sales_id = c.deduct_points_from LEFT JOIN "a57be577deb434"."tbl_engineer_group_relationships" "egr" ON egr.engineer_id = c.last_engineer LEFT JOIN "a57be577deb434"."tbl_case_remind_dates" "crd" ON crd.case_id = c.id LEFT JOIN "a57be577deb434"."tbl_case_remind_receivers" "crr" ON crr.remind_date_id = crd.id LEFT JOIN "a57be577deb434"."tbl_case_carbon_copy_rels" "cccr" ON cccr.case_id = c.id LEFT JOIN "a57be577deb434"."tbl_case_services" "cs" ON cs.case_id = c.id LEFT JOIN "a57be577deb434"."tbl_services" "s" ON cs.service_id = s.id WHERE (("deduct_points_from" IN (5049, 5500, 5301, 5499, 5022, 5209, 5026, 5293, 5309, 5356, 5329, 5299, 5303, 5302, 5332, 5047, 1026, 5096, 5070, 5448, 5420, 1029, 1001, 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 ("deduct_points_from" IS NULL) OR ("last_engineer"=1000) OR ("crr"."user_id"=1000) OR ("client"."id" IN (SELECT "client_id" FROM "a57be577deb434"."tbl_user_visit_clients" WHERE "user_id"=1000)) OR ("cccr"."user_id"=1000) OR ("c"."created_by"=1000)) AND (("client"."name" ILIKE '%实施总结%') OR ("client"."pinyin_shortcut" ILIKE '%实施总结%') OR ("p"."project_title" ILIKE '%实施总结%') OR ("iri"."pn" ILIKE '%实施总结%') OR ("iri"."sn" ILIKE '%实施总结%') OR ("i"."description" ILIKE '%实施总结%') OR ("s"."title" ILIKE '%实施总结%') OR ("tg"."title" ILIKE '%实施总结%') OR ("case_no" ILIKE '%实施总结%')) AND ("case_type"='2') GROUP BY "c"."id") "sub" |
| 21:09:04.743 | 23.4 ms | yii\db\Command::query | SELECT "object_id", count(*) AS unread FROM "a57be577deb434"."tbl_unread_comments" WHERE ("object_type"=18) AND (remind_user_id = 1000 AND is_read = false) AND ("object_id" IN (9249, 7550, 7491)) GROUP BY "object_id" |
| 21:09:04.719 | 23.1 ms | yii\db\Command::query | SELECT "object_id", count(*) AS comment FROM "a57be577deb434"."tbl_comments" WHERE ("object_type"=18) AND ("object_id" IN (9249, 7550, 7491)) GROUP BY "object_id" |
| 21:09:04.797 | 3.1 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=25) AND ("object_id" IN (9249, 7550, 7491)) |
| 21:09:04.800 | 3.0 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=104) AND ("object_id" IN (9249, 7550, 7491)) |
| 21:09:04.778 | 2.9 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_callback_records" WHERE "case_id" IN (9249, 7550, 7491) |
| 21:09:04.910 | 2.7 ms | yii\db\Command::query | INSERT INTO "global"."tbl_api_log" ("code", "schema", "user_id", "device_type", "version_code", "url", "request", "response", "php_error", "time", "duration") VALUES (200, 'a57be577deb434', 1000, 2, 1161, 'v2/case/list', '{"CaseSearch":{"case_status":"","case_type":"2","keyword":"\u5b9e\u65bd\u603b\u7ed3","last_engineer":"","sales_rep":""},"access_token":"wXfR6UQn7fW_MTEa9o-7H8Ixg0fJU0Zm","device_type":"2","posttime":"1784207360","token":"4a109b3b58e92021ee1d11211b696791","version_code":"1161"}', '{"code":200,"data":{"list":[{"id":9249,"client_id":982,"contact_id":3877,"project_id":4161,"last_engineer":1015,"case_type":2,"case_status":3,"start_at":"2026-04-07 15:44:00","closed_at":"","points":50,"deduct_points_from":1001,"created_by":1000,"created_at":"2026-04-07 15:45:50","updated_at":"2026-04-22 16:13:42","case_no":"IM260407001","description":"\u7528\u8bed\u97f3\u8f93\u5165case\u8bf4\u660e","spent_time":"4 hour","alarm_before":"00:15:00","suspend_at":"","completed_at":"","mp_submit_contact_id":null,"attachment_id":null,"need_push":false,"task_group_id":null,"project":{"id":4161,"key":4161,"name":"3535"},"services":[{"id":234,"serial_no":"ZH02","name":"\u7efc\u5408\u670d\u52a1\u5168\u5929","brand_id":33,"type_id":1,"description":"\u7efc\u5408\u670d\u52a1"}],"caseServices":[{"id":15554,"case_id":9249,"service_id":234,"quantity":1,"service":{"id":234,"serial_no":"ZH02","title":"\u7efc\u5408\u670d\u52a1\u5168\u5929","brand_id":33,"type_id":1,"description":["\u7efc\u5408\u670d\u52a1"],"points":50,"points_off_time":50,"points_holiday":50,"brand":{"id":33,"key":33,"name":"Toast"},"type":{"id":1,"key":1,"name":"\u5b89\u88c5\u670d\u52a1"}}}],"deductSales":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda","sex":"M","department_id":4},"createdBy":{"id":1000,"key":1000,"name":"\u66f9\u6c38\u751f","sex":"M","department_id":10,"department":{"id":10,"key":10,"name":"\u8f6f\u4ef6\u5f00\u53d1"},"avatar":{"id":1,"user_id":1000,"name":"\/files\/cdn\/\/avatar\/618545c1-a2ce-3918-9d51-25924baf6d6f.jpg"}},"client":{"id":982,"key":982,"name":"\u4e2d\u56fd\u4fe1\u606f\u5b89\u5168\u7814\u7a76\u6240","client_class":1,"logo":null,"sales_rep":1001,"workingAddresses":[{"id":3809,"key":3809,"name":"\u5317\u4eac\u5e02\u6d77\u6dc0\u533a\u4e2d\u56fd\u4fe1\u606f\u901a\u4fe1\u7814\u7a76\u9662"}]},"commentCount":{"object_id":9249,"comment":2},"unreadComments":null,"attachment":null,"salesRep":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda"},"lastEngineer":{"id":1015,"key":1015,"name":"\u5434\u660a","sex":"M","department_id":2,"avatar":{"id":12,"user_id":1015,"name":"\/files\/cdn\/a57be577deb434\/avatar\/d69b398a-5951-36e9-a92e-992fe938db26.jpg"},"department":{"id":2,"key":2,"name":"\u6280\u672f\u90e8"}},"contact":{"id":3877,"name":"\u90a2\u603b","email":"","sex":"M","department":"","job_position":"","mobile":"","telephone":"","telephone_area_code":"","telephone_extension_number":"","contact_type":"1","contact_attitude":null,"client_id":982,"user_status":2,"contactStatus":{"id":2,"status":"\u5728\u804c","description":"\u5728\u804c"},"mobiles":[{"id":4695,"contact_id":3877,"mobile":"13501188916","mp_open_id":"oagch6ZfWSuCRKCWLA-sfd1svW_Q"}],"contactKeyRoles":[],"contactAttitude":null},"callback":null,"lastAssignment":{"id":9300,"case_id":9249,"engineer_id":1015,"assignment_status":2,"points":0,"percent":"0"},"assignments":[{"id":9300,"case_id":9249,"engineer_id":1015,"assignment_status":2,"points":0,"percent":"0","engineer":{"id":1015,"key":1015,"name":"\u5434\u660a"}}],"preSalesCount":null,"implementRecordsCount":{"case_id":9249,"count":1},"notAcceptAssignment":null,"attachmentRelationships":[],"files":[],"caseRemindDates":[],"selfPreSalesCount":null,"selfImplementRecordsCount":null,"preSales":[],"implementRecords":[{"id":7535,"case_id":9249,"reimbursementCount":null}],"taskGroup":null,"caseCarbonCopyRels":[],"unread":0,"reimbursementCount":0,"selfTicketCount":0,"uncompleteTickets":0,"haveDraft":0,"case_type_display":"\u5b9e\u65bd\u670d\u52a1","following_work_content":"","contact_callback_display":"","can_create_ticket":false,"can_update":true,"can_change_project":false,"can_change_task":false,"can_close":false,"can_suspend":true,"can_finish":false,"can_give_up":false,"can_delete":true,"can_accept":false,"can_change_type":false,"can_assigned":false,"alarm_before_display":"\u63d0\u524d15\u5206\u949f","spent_time_display":"4\u5c0f\u65f6","case_status_display":"\u670d\u52a1\u4e2d","view_ticket":true,"bgcolor":"#17a2b8","can_create_reimbursement":true},{"id":7550,"client_id":93,"contact_id":5793,"project_id":3417,"last_engineer":5248,"case_type":2,"case_status":5,"start_at":"2024-07-09 10:00:00","closed_at":"2024-07-16 11:41:39","points":38,"deduct_points_from":1005,"created_by":5413,"created_at":"2024-07-09 09:14:46","updated_at":"2024-07-16 11:41:39","case_no":"IM240709002","description":"\u5b9e\u65bd\u5eb7\u9f99\u9632\u706b\u5899\u9879\u76ee","spent_time":"1 hour","alarm_before":null,"suspend_at":"","completed_at":"2024-07-10 08:46:36","mp_submit_contact_id":null,"attachment_id":null,"need_push":false,"task_group_id":null,"project":{"id":3417,"key":3417,"name":"\u8fb9\u754c\u9632\u706b\u5899\u66ff\u6362"},"services":[{"id":240,"serial_no":"ZH03","name":"\u7efc\u5408\u670d\u52a1\u5927\u534a\u5929","brand_id":33,"type_id":1,"description":"\u7efc\u5408\u670d\u52a1"}],"caseServices":[{"id":11892,"case_id":7550,"service_id":240,"quantity":1,"service":{"id":240,"serial_no":"ZH03","title":"\u7efc\u5408\u670d\u52a1\u5927\u534a\u5929","brand_id":33,"type_id":1,"description":["\u7efc\u5408\u670d\u52a1"],"points":38,"points_off_time":38,"points_holiday":38,"brand":{"id":33,"key":33,"name":"Toast"},"type":{"id":1,"key":1,"name":"\u5b89\u88c5\u670d\u52a1"}}}],"deductSales":{"id":1005,"key":1005,"name":"\u8d75\u660e\uff08\u9500\u552e\u4eba\u5458\uff09","sex":"F","department_id":1},"createdBy":{"id":5413,"key":5413,"name":"\u8096\u6167\u4e3d","sex":"F","department_id":9,"department":{"id":9,"key":9,"name":"\u9879\u76ee\u90e8"},"avatar":{"id":159,"user_id":5413,"name":"\/files\/cdn\/a57be577deb434\/avatar\/ca02da0e-7d82-3904-be85-f050ca37c3c5.jpg"}},"client":{"id":93,"key":93,"name":"\u5eb7\u9f99\u5316\u6210(\u5317\u4eac)\u65b0\u836f\u6280\u672f\u80a1\u4efd\u6709\u9650\u516c\u53f8","client_class":47,"logo":"","sales_rep":1005,"workingAddresses":[{"id":4069,"key":4069,"name":"\u5317\u4eac\u5e02\u5927\u5174\u533a\u6cf0\u6cb3\u8def6\u53f7"},{"id":4070,"key":4070,"name":"\u79d1\u5b66\u56ed\u8def32\u53f7"},{"id":4071,"key":4071,"name":"\u534e\u4f57\u8def51"},{"id":4072,"key":4072,"name":"\u5317\u4eac\u7ecf\u6d4e\u6280\u672f\u5f00\u53d1\u533a\u745e\u5408\u897f\u4e8c\u8def8\u53f7\u9662\u5317\u4eac\u4ea6\u5e84\u7ec6\u80de\u6cbb\u7597\u7814\u53d1\u4e2d\u8bd5\u57fa\u5730(\u4e1c\u95e8)"},{"id":4073,"key":4073,"name":"\u5174\u6d77\u4e8c\u88575\u53f7\u9662"}]},"commentCount":{"object_id":7550,"comment":6},"unreadComments":null,"attachment":null,"salesRep":{"id":1005,"key":1005,"name":"\u8d75\u660e\uff08\u9500\u552e\u4eba\u5458\uff09"},"lastEngineer":{"id":5248,"key":5248,"name":"\u6587\u4f73\u9f99","sex":"M","department_id":2,"avatar":{"id":135,"user_id":5248,"name":"\/files\/cdn\/a57be577deb434\/avatar\/b4458545-7f88-3479-97be-6f43b2b50454.png"},"department":{"id":2,"key":2,"name":"\u6280\u672f\u90e8"}},"contact":{"id":5793,"name":"\u6881\u6b63","email":"","sex":"M","department":"","job_position":"","mobile":"","telephone":"","telephone_area_code":"","telephone_extension_number":"","contact_type":"1","contact_attitude":null,"client_id":93,"user_status":2,"contactStatus":{"id":2,"status":"\u5728\u804c","description":"\u5728\u804c"},"mobiles":[{"id":6586,"contact_id":5793,"mobile":"18610298995","mp_open_id":"oagch6aBrbhNPvMfokuVmtgGIOLw"}],"contactKeyRoles":[],"contactAttitude":null},"callback":{"id":6594,"client_id":93,"contact_id":5793,"description":"","callback_date":"2024-07-16","created_by":5413,"created_at":"2024-07-16 11:41:39","updated_at":"2024-07-16 11:41:39","implement_id":null,"satisfaction_score":10,"skill_score":10,"case_id":7550,"mp_submit_contact_id":null,"createdBy":{"id":5413,"key":5413,"name":"\u8096\u6167\u4e3d","sex":"F","department_id":9},"contact":{"id":5793,"name":"\u6881\u6b63","email":"","sex":"M","department":"","job_position":"","mobile":"","telephone":"","telephone_area_code":"","telephone_extension_number":"","contact_type":"1","contact_attitude":null,"client_id":93,"user_status":2},"callbackQnas":[],"satisfaction_score_display":"\u975e\u5e38\u6ee1\u610f","skill_score_display":"\u975e\u5e38\u6ee1\u610f"},"lastAssignment":{"id":7594,"case_id":7550,"engineer_id":5248,"assignment_status":2,"points":48,"percent":"1.25"},"assignments":[{"id":7594,"case_id":7550,"engineer_id":5248,"assignment_status":2,"points":48,"percent":"1.25","engineer":{"id":5248,"key":5248,"name":"\u6587\u4f73\u9f99"}}],"preSalesCount":null,"implementRecordsCount":{"case_id":7550,"count":1},"notAcceptAssignment":null,"attachmentRelationships":[],"files":[],"caseRemindDates":[],"selfPreSalesCount":null,"selfImplementRecordsCount":null,"preSales":[],"implementRecords":[{"id":6016,"case_id":7550,"reimbursementCount":{"implement_record_id":6016,"count":"104.75"}}],"taskGroup":null,"caseCarbonCopyRels":[],"unread":0,"reimbursementCount":104.75,"selfTicketCount":0,"uncompleteTickets":0,"haveDraft":0,"case_type_display":"\u5b9e\u65bd\u670d\u52a1","following_work_content":"","contact_callback_display":"","can_create_ticket":false,"can_update":false,"can_change_project":true,"can_change_task":true,"can_close":false,"can_suspend":false,"can_finish":false,"can_give_up":false,"can_delete":true,"can_accept":false,"can_change_type":false,"can_assigned":false,"alarm_before_display":"\u65e0","spent_time_display":"1\u5c0f\u65f6","case_status_display":"\u5df2\u5b8c\u6210","view_ticket":true,"bgcolor":"#89c541","can_create_reimbursement":true},{"id":7491,"client_id":93,"contact_id":5201,"project_id":3417,"last_engineer":5248,"case_type":2,"case_status":5,"start_at":"2024-06-27 10:00:00","closed_at":"2024-07-16 10:15:45","points":50,"deduct_points_from":1005,"created_by":5413,"created_at":"2024-06-27 09:08:35","updated_at":"2024-07-16 10:15:45","case_no":"IM240627001","description":"\u98de\u5854\u9632\u706b\u5899\u5b9e\u65bd\uff08\u9879\u76ee\u5b9e\u65bd\uff09","spent_time":"1 hour","alarm_before":null,"suspend_at":"","completed_at":"2024-06-28 08:06:15","mp_submit_contact_id":null,"attachment_id":null,"need_push":false,"task_group_id":null,"project":{"id":3417,"key":3417,"name":"\u8fb9\u754c\u9632\u706b\u5899\u66ff\u6362"},"services":[{"id":234,"serial_no":"ZH02","name":"\u7efc\u5408\u670d\u52a1\u5168\u5929","brand_id":33,"type_id":1,"description":"\u7efc\u5408\u670d\u52a1"}],"caseServices":[{"id":11881,"case_id":7491,"service_id":234,"quantity":1,"service":{"id":234,"serial_no":"ZH02","title":"\u7efc\u5408\u670d\u52a1\u5168\u5929","brand_id":33,"type_id":1,"description":["\u7efc\u5408\u670d\u52a1"],"points":50,"points_off_time":50,"points_holiday":50,"brand":{"id":33,"key":33,"name":"Toast"},"type":{"id":1,"key":1,"name":"\u5b89\u88c5\u670d\u52a1"}}}],"deductSales":{"id":1005,"key":1005,"name":"\u8d75\u660e\uff08\u9500\u552e\u4eba\u5458\uff09","sex":"F","department_id":1},"createdBy":{"id":5413,"key":5413,"name":"\u8096\u6167\u4e3d","sex":"F","department_id":9,"department":{"id":9,"key":9,"name":"\u9879\u76ee\u90e8"},"avatar":{"id":159,"user_id":5413,"name":"\/files\/cdn\/a57be577deb434\/avatar\/ca02da0e-7d82-3904-be85-f050ca37c3c5.jpg"}},"client":{"id":93,"key":93,"name":"\u5eb7\u9f99\u5316\u6210(\u5317\u4eac)\u65b0\u836f\u6280\u672f\u80a1\u4efd\u6709\u9650\u516c\u53f8","client_class":47,"logo":"","sales_rep":1005,"workingAddresses":[{"id":4069,"key":4069,"name":"\u5317\u4eac\u5e02\u5927\u5174\u533a\u6cf0\u6cb3\u8def6\u53f7"},{"id":4070,"key":4070,"name":"\u79d1\u5b66\u56ed\u8def32\u53f7"},{"id":4071,"key":4071,"name":"\u534e\u4f57\u8def51"},{"id":4072,"key":4072,"name":"\u5317\u4eac\u7ecf\u6d4e\u6280\u672f\u5f00\u53d1\u533a\u745e\u5408\u897f\u4e8c\u8def8\u53f7\u9662\u5317\u4eac\u4ea6\u5e84\u7ec6\u80de\u6cbb\u7597\u7814\u53d1\u4e2d\u8bd5\u57fa\u5730(\u4e1c\u95e8)"},{"id":4073,"key":4073,"name":"\u5174\u6d77\u4e8c\u88575\u53f7\u9662"}]},"commentCount":{"object_id":7491,"comment":5},"unreadComments":null,"attachment":null,"salesRep":{"id":1005,"key":1005,"name":"\u8d75\u660e\uff08\u9500\u552e\u4eba\u5458\uff09"},"lastEngineer":{"id":5248,"key":5248,"name":"\u6587\u4f73\u9f99","sex":"M","department_id":2,"avatar":{"id":135,"user_id":5248,"name":"\/files\/cdn\/a57be577deb434\/avatar\/b4458545-7f88-3479-97be-6f43b2b50454.png"},"department":{"id":2,"key":2,"name":"\u6280\u672f\u90e8"}},"contact":{"id":5201,"name":"\u5f90\u8f89","email":"","sex":"M","department":"","job_position":"\u6280\u672f","mobile":"","telephone":"57330000","telephone_area_code":"010","telephone_extension_number":"","contact_type":"1","contact_attitude":null,"client_id":93,"user_status":2,"contactStatus":{"id":2,"status":"\u5728\u804c","description":"\u5728\u804c"},"mobiles":[{"id":5989,"contact_id":5201,"mobile":"18910065517","mp_open_id":null}],"contactKeyRoles":[{"id":137,"key":137,"name":"\u4f7f\u7528\u51b3\u7b56\u4eba"}],"contactAttitude":{"id":139,"key":139,"name":"\u652f\u6301"}},"callback":{"id":6586,"client_id":93,"contact_id":5201,"description":"","callback_date":"2024-07-16","created_by":5413,"created_at":"2024-07-16 10:15:45","updated_at":"2024-07-16 10:15:45","implement_id":null,"satisfaction_score":10,"skill_score":10,"case_id":7491,"mp_submit_contact_id":null,"createdBy":{"id":5413,"key":5413,"name":"\u8096\u6167\u4e3d","sex":"F","department_id":9},"contact":{"id":5201,"name":"\u5f90\u8f89","email":"","sex":"M","department":"","job_position":"\u6280\u672f","mobile":"","telephone":"57330000","telephone_area_code":"010","telephone_extension_number":"","contact_type":"1","contact_attitude":null,"client_id":93,"user_status":2},"callbackQnas":[],"satisfaction_score_display":"\u975e\u5e38\u6ee1\u610f","skill_score_display":"\u975e\u5e38\u6ee1\u610f"},"lastAssignment":{"id":7535,"case_id":7491,"engineer_id":5248,"assignment_status":2,"points":63,"percent":"1.25"},"assignments":[{"id":7535,"case_id":7491,"engineer_id":5248,"assignment_status":2,"points":63,"percent":"1.25","engineer":{"id":5248,"key":5248,"name":"\u6587\u4f73\u9f99"}}],"preSalesCount":null,"implementRecordsCount":{"case_id":7491,"count":1},"notAcceptAssignment":null,"attachmentRelationships":[],"files":[],"caseRemindDates":[],"selfPreSalesCount":null,"selfImplementRecordsCount":null,"preSales":[],"implementRecords":[{"id":5969,"case_id":7491,"reimbursementCount":{"implement_record_id":5969,"count":"108.92"}}],"taskGroup":null,"caseCarbonCopyRels":[],"unread":0,"reimbursementCount":108.92,"selfTicketCount":0,"uncompleteTickets":0,"haveDraft":0,"case_type_display":"\u5b9e\u65bd\u670d\u52a1","following_work_content":"","contact_callback_display":"","can_create_ticket":false,"can_update":false,"can_change_project":true,"can_change_task":true,"can_close":false,"can_suspend":false,"can_finish":false,"can_give_up":false,"can_delete":true,"can_accept":false,"can_change_type":false,"can_assigned":false,"alarm_before_display":"\u65e0","spent_time_display":"1\u5c0f\u65f6","case_status_display":"\u5df2\u5b8c\u6210","view_ticket":true,"bgcolor":"#89c541","can_create_reimbursement":true}],"countList":[{"key":1,"value":0},{"key":2,"value":0},{"key":3,"value":1},{"key":4,"value":0},{"key":5,"value":2},{"key":6,"value":0}],"pagenation":{"totalcount":3,"thispage":1,"pagesize":10},"can_create":true},"status":1,"msg":[{"name":"success","success":"\u6210\u529f\u83b7\u53d6\u6570\u636e","error":""}],"ip":"111.9.5.127","ua":"jinchangxiao\/2.3.158 (iPhone 12 mini; iOS 26.2; Scale\/3.00)"}', FALSE, '2026-07-16 21:09:04', 743388928) RETURNING "id" |
| 21:09:04.810 | 2.5 ms | yii\db\Command::query | SELECT "implement_record_id", sum(amount) as count FROM "a57be577deb434"."tbl_reimbursements" WHERE ("status" IN (1, 2, 3)) AND ("implement_record_id" IN (6016, 5969, 7535)) GROUP BY "implement_record_id" |
| 21:09:04.791 | 2.1 ms | yii\db\Command::query | SELECT "case_id", count(*) AS count FROM "a57be577deb434"."tbl_implement_records" WHERE ("is_draft"=FALSE) AND ("case_id" IN (9249, 7550, 7491)) GROUP BY "case_id" |
| 21:09:04.808 | 2.0 ms | yii\db\Command::query | SELECT "id", "case_id" FROM "a57be577deb434"."tbl_implement_records" WHERE "case_id" IN (9249, 7550, 7491) |
| 21:09:04.805 | 1.9 ms | yii\db\Command::query | SELECT "case_id", count(*) AS count FROM "a57be577deb434"."tbl_implement_records" WHERE ("created_by"=1000) AND ("case_id" IN (9249, 7550, 7491)) GROUP BY "case_id" |
| 21:09:04.788 | 1.8 ms | yii\db\Command::query | SELECT "id", "case_id", "following_work_content" FROM "a57be577deb434"."tbl_implement_records" WHERE ("has_following_work"=TRUE) AND ("case_id" IN (9249, 7550, 7491)) |
| 21:09:04.794 | 1.7 ms | yii\db\Command::query | SELECT "id", "case_id" FROM "a57be577deb434"."tbl_implement_records" WHERE ("is_draft"=TRUE) AND ("case_id" IN (9249, 7550, 7491)) |
| 21:09:04.773 | 1.4 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_contact_mobiles" WHERE "contact_id" IN (3877, 5201, 5793) |
| 21:09:04.784 | 1.2 ms | yii\db\Command::query | SELECT "id", "case_id", "engineer_id", "assignment_status", "points", "percent" FROM "a57be577deb434"."tbl_case_assignments" WHERE "case_id" IN (9249, 7550, 7491) ORDER BY "assigned_at" DESC |
| 21:09:04.785 | 1.2 ms | yii\db\Command::query | SELECT "id", "case_id", "engineer_id", "assignment_status", "points", "percent" FROM "a57be577deb434"."tbl_case_assignments" WHERE "case_id" IN (9249, 7550, 7491) ORDER BY "assigned_at" DESC |
| 21:09:04.711 | 1.0 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_case_services" WHERE "case_id" IN (9249, 7550, 7491) |
| 21:09:04.782 | 1.0 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_callback_qnas" WHERE "callback_record" IN (6586, 6594) |
| 21:09:04.713 | 1.0 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_case_services" WHERE "case_id" IN (9249, 7550, 7491) |
| 21:09:04.796 | 1.0 ms | yii\db\Command::query | SELECT "id", "case_id" FROM "a57be577deb434"."tbl_case_assignments" WHERE (("engineer_id"=1000) AND ("assignment_status"=1)) AND ("case_id" IN (9249, 7550, 7491)) ORDER BY "assigned_at" DESC |
| 21:09:04.767 | 0.8 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id" IN (982, 93) |
| 21:09:04.790 | 0.7 ms | yii\db\Command::query | SELECT "case_id", count(*) AS count FROM "a57be577deb434"."tbl_pre_sales" WHERE ("is_draft"=FALSE) AND ("case_id" IN (9249, 7550, 7491)) GROUP BY "case_id" |
| 21:09:04.804 | 0.7 ms | yii\db\Command::query | SELECT "case_id", count(*) AS count FROM "a57be577deb434"."tbl_pre_sales" WHERE ("created_by"=1000) AND ("case_id" IN (9249, 7550, 7491)) GROUP BY "case_id" |
| 21:09:04.807 | 0.7 ms | yii\db\Command::query | SELECT "id", "case_id" FROM "a57be577deb434"."tbl_pre_sales" WHERE "case_id" IN (9249, 7550, 7491) |
| 21:09:04.506 | 0.7 ms | yii\db\Command::query | SELECT * FROM "global"."vw_user_login" WHERE "access_token"='wXfR6UQn7fW_MTEa9o-7H8Ixg0fJU0Zm' |
| 21:09:04.793 | 0.6 ms | yii\db\Command::query | SELECT "id", "case_id" FROM "a57be577deb434"."tbl_pre_sales" WHERE ("is_draft"=TRUE) AND ("case_id" IN (9249, 7550, 7491)) |
| 21:09:04.787 | 0.6 ms | yii\db\Command::query | SELECT "id", "case_id", "following_work_content" FROM "a57be577deb434"."tbl_pre_sales" WHERE ("has_following_work"=TRUE) AND ("case_id" IN (9249, 7550, 7491)) |
| 21:09:04.775 | 0.5 ms | yii\db\Command::query | SELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_term_taxonomies" WHERE ("term_id"=11) AND ("id" IN (1, 164, 142, 184, 189, 349, 333, 5, 215, 137, 139, 369, 307, 203, 356, 367)) ORDER BY "sort" |
| 21:09:04.774 | 0.5 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_term_taxonomy_relationships" WHERE "object_id" IN (3877, 5201, 5793) |
| 21:09:04.771 | 0.5 ms | yii\db\Command::query | SELECT "id", "name", "email", "sex", "department", "job_position", "mobile", "telephone", "telephone_area_code", "telephone_extension_number", "contact_type", "contact_attitude", "client_id", "user_status" FROM "a57be577deb434"."tbl_contacts" WHERE "id" IN (3877, 5793, 5201) |
| 21:09:04.777 | 0.5 ms | yii\db\Command::query | SELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_term_taxonomies" WHERE ("term_id"=12) AND ("id" IN (1, 164, 142, 184, 189, 349, 333, 5, 215, 137, 139, 369, 307, 203, 356, 367)) ORDER BY "sort" |
| 21:09:04.776 | 0.5 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_term_taxonomy_relationships" WHERE "object_id" IN (3877, 5201, 5793) |
| 21:09:04.770 | 0.5 ms | yii\db\Command::query | SELECT "id", "user_id", "meta_value" AS "name" FROM "a57be577deb434"."tbl_user_meta" WHERE ("meta_key"='avatar') AND ("user_id" IN (5248, 1015)) |
| 21:09:04.710 | 0.4 ms | yii\db\Command::query | SELECT "id", "id" AS "key", "project_title" AS "name" FROM "a57be577deb434"."tbl_projects" WHERE "id" IN (4161, 3417) |
| 21:09:04.718 | 0.4 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_client_address_rels" WHERE "client_id" IN (93, 982) |
| 21:09:04.769 | 0.4 ms | yii\db\Command::query | SELECT "id", "id" AS "key", "name", "sex", "department_id" FROM "a57be577deb434"."tbl_users" WHERE "id" IN (1015, 5248) |
| 21:09:04.768 | 0.4 ms | yii\db\Command::query | SELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_users" WHERE "id" IN (1005, 1001) |
| 21:09:04.508 | 0.4 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000 |
| 21:09:04.782 | 0.4 ms | yii\db\Command::query | SELECT "id", "name", "email", "sex", "department", "job_position", "mobile", "telephone", "telephone_area_code", "telephone_extension_number", "contact_type", "contact_attitude", "client_id", "user_status" FROM "a57be577deb434"."tbl_contacts" WHERE "id" IN (5201, 5793) |
| 21:09:04.505 | 0.4 ms | yii\db\Connection::open | Opening DB connection: pgsql:host=postgresql.server.local;port=5432;dbname=beta |
| 21:09:04.781 | 0.4 ms | yii\db\Command::query | SELECT "id", "id" AS "key", "name", "sex", "department_id" FROM "a57be577deb434"."tbl_users" WHERE "id"=5413 |
| 21:09:04.772 | 0.3 ms | yii\db\Command::query | SELECT "id", "status", "description" FROM "a57be577deb434"."tbl_contact_statuses" WHERE "id"=2 |
| 21:09:04.716 | 0.3 ms | yii\db\Command::query | SELECT "id", "id" AS "key", "name", "sex", "department_id" FROM "a57be577deb434"."tbl_users" WHERE "id" IN (1000, 5413) |
| 21:09:04.770 | 0.3 ms | yii\db\Command::query | SELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_departments" WHERE "id"=2 |
| 21:09:04.719 | 0.3 ms | yii\db\Command::query | SELECT "id", "id" AS "key", "address2" AS "name" FROM "a57be577deb434"."tbl_addresses" WHERE ("address2" != '') AND ("address2" IS NOT NULL) AND ("id" IN (3809, 4069, 4070, 4071, 4072, 4073)) |
| 21:09:04.712 | 0.3 ms | yii\db\Command::query | SELECT "id", "serial_no", "title" AS "name", "brand_id", "type_id", "description" FROM "a57be577deb434"."tbl_services" WHERE "id" IN (234, 240) |
| 21:09:04.718 | 0.3 ms | yii\db\Command::query | SELECT "id", "id" AS "key", "name", "client_class", "logo", "sales_rep" FROM "a57be577deb434"."tbl_clients" WHERE "id" IN (982, 93) |
| 21:09:04.716 | 0.3 ms | yii\db\Command::query | SELECT "id", "id" AS "key", "name", "sex", "department_id" FROM "a57be577deb434"."tbl_users" WHERE "id" IN (1001, 1005) |
| 21:09:04.786 | 0.3 ms | yii\db\Command::query | SELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_users" WHERE "id" IN (1015, 5248) |
| 21:09:04.715 | 0.3 ms | yii\db\Command::query | SELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_product_brands" WHERE "id"=33 |
| 21:09:04.714 | 0.3 ms | yii\db\Command::query | SELECT "id", "serial_no", "title", "brand_id", "type_id", "description", "points", "points_off_time", "points_holiday" FROM "a57be577deb434"."tbl_services" WHERE "id" IN (234, 240) |
| 21:09:04.803 | 0.3 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_case_remind_dates" WHERE "case_id" IN (9249, 7550, 7491) |
| 21:09:04.717 | 0.3 ms | yii\db\Command::query | SELECT "id", "user_id", "meta_value" AS "name" FROM "a57be577deb434"."tbl_user_meta" WHERE ("meta_key"='avatar') AND ("user_id" IN (1000, 5413)) |
| 21:09:04.717 | 0.3 ms | yii\db\Command::query | SELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_departments" WHERE "id" IN (10, 9) |
| 21:09:04.813 | 0.2 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_case_carbon_copy_rels" WHERE "case_id" IN (9249, 7550, 7491) |
| 21:09:04.715 | 0.2 ms | yii\db\Command::query | SELECT "id", "id" AS "key", "title" AS "name" FROM "a57be577deb434"."tbl_service_type" WHERE "id"=1 |