Total processing time: 175 ms; Peak memory: 4.848 MB. Show Profiling Timeline
Time | Duration | Category | Info |
---|---|---|---|
18:23:44.242 | 32.3 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 WHERE ("deduct_points_from" IN (5049, 5301, 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, 5294, 5357, 5044, 1030, 5076, 5300, 5027, 5089, 5311, 5066, 5069, 5364, 1009, 5295, 1013, 5128, 5203, 1025, 5032, 5075, 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) GROUP BY "c"."id") "sub" |
18:23:44.159 | 29.0 ms | yii\db\Command::query | SELECT "object_id", count(*) AS comment FROM "a57be577deb434"."tbl_comments" WHERE ("object_type"=18) AND ("object_id" IN (8267, 8266, 8265, 8260)) GROUP BY "object_id" |
18:23:44.188 | 21.1 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 (8267, 8266, 8265, 8260)) GROUP BY "object_id" |
18:23:44.137 | 12.5 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 WHERE (("deduct_points_from" IN (5049, 5301, 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, 5294, 5357, 5044, 1030, 5076, 5300, 5027, 5089, 5311, 5066, 5069, 5364, 1009, 5295, 1013, 5128, 5203, 1025, 5032, 5075, 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 ("case_status"='1') GROUP BY "c"."id" ORDER BY "c"."updated_at" DESC LIMIT 10 |
18:23:44.124 | 10.4 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 WHERE (("deduct_points_from" IN (5049, 5301, 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, 5294, 5357, 5044, 1030, 5076, 5300, 5027, 5089, 5311, 5066, 5069, 5364, 1009, 5295, 1013, 5128, 5203, 1025, 5032, 5075, 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 ("case_status"='1') GROUP BY "c"."id" ORDER BY "c"."updated_at" DESC) "c" |
18:23:44.111 | 4.2 ms | yii\db\Command::query | SELECT * FROM "global"."vw_user_login" WHERE "access_token"='rpAaho7HBg3VJ1vNP7yVtm0Uw5j2xu-u' |
18:23:44.108 | 2.5 ms | yii\db\Connection::open | Opening DB connection: pgsql:host=postgresql.server.local;port=5432;dbname=beta |
18:23:44.276 | 2.1 ms | yii\db\Command::query | INSERT INTO "global"."tbl_api_log" ("code", "schema", "user_id", "device_type", "version_code", "url", "request", "response", "php_error", "time") VALUES (200, 'a57be577deb434', 1000, 0, 261, 'v2/case/list', '{"access_token":"rpAaho7HBg3VJ1vNP7yVtm0Uw5j2xu-u","CaseSearch":{"case_status":"1","sales_rep":"","last_engineer":"","case_type":""},"device_type":"0","version_code":"261","page":"1","token":"257aa45a2f943d5ca7c1ae8a9daef0bd","posttime":"1751365422","pagesize":"10"}', '{"code":200,"data":{"list":[{"id":8267,"client_id":3334,"contact_id":6002,"project_id":3786,"last_engineer":null,"case_type":1,"case_status":1,"start_at":"2025-05-26 17:17:00","closed_at":"","points":250,"deduct_points_from":1001,"created_by":5064,"created_at":"2025-05-26 17:17:18","updated_at":"2025-06-09 21:32:47","case_no":"PS250526003","description":"","spent_time":"1 hour","alarm_before":null,"suspend_at":"","completed_at":"","mp_submit_contact_id":null,"attachment_id":null,"need_push":true,"task_group_id":null,"project":{"id":3786,"key":3786,"name":"\u8fdc\u9274\u8f6f\u4ef6-\u8fc7\u7a0b\u76d1\u63a7\u4ea7\u54c1"},"services":[{"id":275,"serial_no":"FA02","name":"\u6280\u672f\u65b9\u6848-\u4e8c\u7ea7\u6587\u6863","brand_id":null,"type_id":null,"description":"\u6280\u672f\u65b9\u6848-\u6587\u6863"}],"caseServices":[{"id":13427,"case_id":8267,"service_id":275,"quantity":1,"service":{"id":275,"serial_no":"FA02","title":"\u6280\u672f\u65b9\u6848-\u4e8c\u7ea7\u6587\u6863","brand_id":null,"type_id":null,"description":["\u6280\u672f\u65b9\u6848-\u6587\u6863"],"points":250,"points_off_time":0,"points_holiday":0,"brand":null,"type":null}}],"deductSales":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda","sex":"M","department_id":4},"createdBy":{"id":5064,"key":5064,"name":"\u59da\u96ea\u7eaf","sex":"F","department_id":10,"department":{"id":10,"key":10,"name":"\u8f6f\u4ef6\u5f00\u53d1"},"avatar":{"id":38,"user_id":5064,"name":"\/files\/cdn\/a57be577deb434\/avatar\/5bec09dc-1f7a-3542-89a2-cedfefb3fded.png"}},"client":{"id":3334,"key":3334,"name":"\u5317\u4eac\u878d\u9890\u5149\u7535\u79d1\u6280\u6709\u9650\u516c\u53f8(\u8fc7\u5355)","client_class":43,"logo":null,"sales_rep":1001,"workingAddresses":[{"id":4094,"key":4094,"name":"\u5317\u4eac\u5e02\u987a\u4e49\u533a\u6f9c\u897f\u56ed\u56db\u533a26\u53f7\u697c2\u5c42238"}]},"commentCount":{"object_id":8267,"comment":2},"unreadComments":null,"attachment":null,"salesRep":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda"},"lastEngineer":null,"contact":{"id":6002,"name":"\u67f3\u98de","email":"","sex":"M","department":"","job_position":"","mobile":"","telephone":"","telephone_area_code":"","telephone_extension_number":"","contact_type":"1","contact_attitude":null,"client_id":3334,"user_status":2,"contactStatus":{"id":2,"status":"\u5728\u804c","description":"\u5728\u804c"},"mobiles":[{"id":6786,"contact_id":6002,"mobile":"13331106031","mp_open_id":null}],"contactKeyRoles":[],"contactAttitude":null},"callback":null,"lastAssignment":null,"assignments":[],"preSalesCount":null,"implementRecordsCount":null,"notAcceptAssignment":null,"attachmentRelationships":[],"files":[],"caseRemindDates":[],"selfPreSalesCount":null,"selfImplementRecordsCount":null,"preSales":[],"implementRecords":[],"taskGroup":null,"caseCarbonCopyRels":[],"unread":0,"reimbursementCount":0,"selfTicketCount":0,"uncompleteTickets":0,"haveDraft":0,"case_type_display":"\u552e\u524d\u54a8\u8be2","following_work_content":"","contact_callback_display":"","can_create_ticket":false,"can_update":true,"can_change_project":false,"can_close":false,"can_suspend":true,"can_finish":false,"can_give_up":false,"can_delete":true,"can_accept":false,"can_change_type":true,"can_assigned":true,"alarm_before_display":"\u65e0","spent_time_display":"1\u5c0f\u65f6","case_status_display":"Case\u5f85\u5206\u914d","view_ticket":true,"bgcolor":"#d9534f","can_create_reimbursement":true},{"id":8266,"client_id":3334,"contact_id":6002,"project_id":3786,"last_engineer":null,"case_type":1,"case_status":1,"start_at":"2025-05-26 17:01:00","closed_at":"","points":250,"deduct_points_from":1001,"created_by":5064,"created_at":"2025-05-26 17:01:54","updated_at":"2025-05-26 17:01:54","case_no":"PS250526002","description":"","spent_time":"1 hour","alarm_before":null,"suspend_at":"","completed_at":"","mp_submit_contact_id":null,"attachment_id":null,"need_push":true,"task_group_id":null,"project":{"id":3786,"key":3786,"name":"\u8fdc\u9274\u8f6f\u4ef6-\u8fc7\u7a0b\u76d1\u63a7\u4ea7\u54c1"},"services":[{"id":275,"serial_no":"FA02","name":"\u6280\u672f\u65b9\u6848-\u4e8c\u7ea7\u6587\u6863","brand_id":null,"type_id":null,"description":"\u6280\u672f\u65b9\u6848-\u6587\u6863"}],"caseServices":[{"id":13423,"case_id":8266,"service_id":275,"quantity":1,"service":{"id":275,"serial_no":"FA02","title":"\u6280\u672f\u65b9\u6848-\u4e8c\u7ea7\u6587\u6863","brand_id":null,"type_id":null,"description":["\u6280\u672f\u65b9\u6848-\u6587\u6863"],"points":250,"points_off_time":0,"points_holiday":0,"brand":null,"type":null}}],"deductSales":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda","sex":"M","department_id":4},"createdBy":{"id":5064,"key":5064,"name":"\u59da\u96ea\u7eaf","sex":"F","department_id":10,"department":{"id":10,"key":10,"name":"\u8f6f\u4ef6\u5f00\u53d1"},"avatar":{"id":38,"user_id":5064,"name":"\/files\/cdn\/a57be577deb434\/avatar\/5bec09dc-1f7a-3542-89a2-cedfefb3fded.png"}},"client":{"id":3334,"key":3334,"name":"\u5317\u4eac\u878d\u9890\u5149\u7535\u79d1\u6280\u6709\u9650\u516c\u53f8(\u8fc7\u5355)","client_class":43,"logo":null,"sales_rep":1001,"workingAddresses":[{"id":4094,"key":4094,"name":"\u5317\u4eac\u5e02\u987a\u4e49\u533a\u6f9c\u897f\u56ed\u56db\u533a26\u53f7\u697c2\u5c42238"}]},"commentCount":{"object_id":8266,"comment":2},"unreadComments":null,"attachment":null,"salesRep":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda"},"lastEngineer":null,"contact":{"id":6002,"name":"\u67f3\u98de","email":"","sex":"M","department":"","job_position":"","mobile":"","telephone":"","telephone_area_code":"","telephone_extension_number":"","contact_type":"1","contact_attitude":null,"client_id":3334,"user_status":2,"contactStatus":{"id":2,"status":"\u5728\u804c","description":"\u5728\u804c"},"mobiles":[{"id":6786,"contact_id":6002,"mobile":"13331106031","mp_open_id":null}],"contactKeyRoles":[],"contactAttitude":null},"callback":null,"lastAssignment":null,"assignments":[],"preSalesCount":null,"implementRecordsCount":null,"notAcceptAssignment":null,"attachmentRelationships":[],"files":[],"caseRemindDates":[],"selfPreSalesCount":null,"selfImplementRecordsCount":null,"preSales":[],"implementRecords":[],"taskGroup":null,"caseCarbonCopyRels":[],"unread":0,"reimbursementCount":0,"selfTicketCount":0,"uncompleteTickets":0,"haveDraft":0,"case_type_display":"\u552e\u524d\u54a8\u8be2","following_work_content":"","contact_callback_display":"","can_create_ticket":false,"can_update":true,"can_change_project":false,"can_close":false,"can_suspend":true,"can_finish":false,"can_give_up":false,"can_delete":true,"can_accept":false,"can_change_type":true,"can_assigned":true,"alarm_before_display":"\u65e0","spent_time_display":"1\u5c0f\u65f6","case_status_display":"Case\u5f85\u5206\u914d","view_ticket":true,"bgcolor":"#d9534f","can_create_reimbursement":true},{"id":8265,"client_id":3334,"contact_id":6002,"project_id":3786,"last_engineer":null,"case_type":1,"case_status":1,"start_at":"2025-05-26 00:00:00","closed_at":"","points":250,"deduct_points_from":1001,"created_by":1001,"created_at":"2025-05-26 16:59:58","updated_at":"2025-05-26 16:59:58","case_no":"PS250526001","description":"f sad\u8212\u670d","spent_time":"1 hour","alarm_before":null,"suspend_at":"","completed_at":"","mp_submit_contact_id":null,"attachment_id":null,"need_push":false,"task_group_id":null,"project":{"id":3786,"key":3786,"name":"\u8fdc\u9274\u8f6f\u4ef6-\u8fc7\u7a0b\u76d1\u63a7\u4ea7\u54c1"},"services":[{"id":275,"serial_no":"FA02","name":"\u6280\u672f\u65b9\u6848-\u4e8c\u7ea7\u6587\u6863","brand_id":null,"type_id":null,"description":"\u6280\u672f\u65b9\u6848-\u6587\u6863"}],"caseServices":[{"id":13422,"case_id":8265,"service_id":275,"quantity":1,"service":{"id":275,"serial_no":"FA02","title":"\u6280\u672f\u65b9\u6848-\u4e8c\u7ea7\u6587\u6863","brand_id":null,"type_id":null,"description":["\u6280\u672f\u65b9\u6848-\u6587\u6863"],"points":250,"points_off_time":0,"points_holiday":0,"brand":null,"type":null}}],"deductSales":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda","sex":"M","department_id":4},"createdBy":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda","sex":"M","department_id":4,"department":{"id":4,"key":4,"name":"\u603b\u7ecf\u7406"},"avatar":{"id":2,"user_id":1001,"name":"\/files\/cdn\/a57be577deb434\/avatar\/9f73cfbd-bae6-3b50-b7ac-61b936c40727.png"}},"client":{"id":3334,"key":3334,"name":"\u5317\u4eac\u878d\u9890\u5149\u7535\u79d1\u6280\u6709\u9650\u516c\u53f8(\u8fc7\u5355)","client_class":43,"logo":null,"sales_rep":1001,"workingAddresses":[{"id":4094,"key":4094,"name":"\u5317\u4eac\u5e02\u987a\u4e49\u533a\u6f9c\u897f\u56ed\u56db\u533a26\u53f7\u697c2\u5c42238"}]},"commentCount":{"object_id":8265,"comment":2},"unreadComments":null,"attachment":null,"salesRep":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda"},"lastEngineer":null,"contact":{"id":6002,"name":"\u67f3\u98de","email":"","sex":"M","department":"","job_position":"","mobile":"","telephone":"","telephone_area_code":"","telephone_extension_number":"","contact_type":"1","contact_attitude":null,"client_id":3334,"user_status":2,"contactStatus":{"id":2,"status":"\u5728\u804c","description":"\u5728\u804c"},"mobiles":[{"id":6786,"contact_id":6002,"mobile":"13331106031","mp_open_id":null}],"contactKeyRoles":[],"contactAttitude":null},"callback":null,"lastAssignment":null,"assignments":[],"preSalesCount":null,"implementRecordsCount":null,"notAcceptAssignment":null,"attachmentRelationships":[],"files":[],"caseRemindDates":[],"selfPreSalesCount":null,"selfImplementRecordsCount":null,"preSales":[],"implementRecords":[],"taskGroup":null,"caseCarbonCopyRels":[],"unread":0,"reimbursementCount":0,"selfTicketCount":0,"uncompleteTickets":0,"haveDraft":0,"case_type_display":"\u552e\u524d\u54a8\u8be2","following_work_content":"","contact_callback_display":"","can_create_ticket":false,"can_update":true,"can_change_project":false,"can_close":false,"can_suspend":true,"can_finish":false,"can_give_up":false,"can_delete":true,"can_accept":false,"can_change_type":true,"can_assigned":true,"alarm_before_display":"\u65e0","spent_time_display":"1\u5c0f\u65f6","case_status_display":"Case\u5f85\u5206\u914d","view_ticket":true,"bgcolor":"#d9534f","can_create_reimbursement":true},{"id":8260,"client_id":3334,"contact_id":6002,"project_id":3786,"last_engineer":null,"case_type":2,"case_status":1,"start_at":"2025-04-23 00:00:00","closed_at":"","points":250,"deduct_points_from":1001,"created_by":1001,"created_at":"2025-04-23 15:19:29","updated_at":"2025-04-23 15:19:29","case_no":"IM250423001","description":"","spent_time":"1 hour","alarm_before":null,"suspend_at":"","completed_at":"","mp_submit_contact_id":null,"attachment_id":null,"need_push":true,"task_group_id":null,"project":{"id":3786,"key":3786,"name":"\u8fdc\u9274\u8f6f\u4ef6-\u8fc7\u7a0b\u76d1\u63a7\u4ea7\u54c1"},"services":[{"id":275,"serial_no":"FA02","name":"\u6280\u672f\u65b9\u6848-\u4e8c\u7ea7\u6587\u6863","brand_id":null,"type_id":null,"description":"\u6280\u672f\u65b9\u6848-\u6587\u6863"}],"caseServices":[{"id":13409,"case_id":8260,"service_id":275,"quantity":1,"service":{"id":275,"serial_no":"FA02","title":"\u6280\u672f\u65b9\u6848-\u4e8c\u7ea7\u6587\u6863","brand_id":null,"type_id":null,"description":["\u6280\u672f\u65b9\u6848-\u6587\u6863"],"points":250,"points_off_time":0,"points_holiday":0,"brand":null,"type":null}}],"deductSales":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda","sex":"M","department_id":4},"createdBy":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda","sex":"M","department_id":4,"department":{"id":4,"key":4,"name":"\u603b\u7ecf\u7406"},"avatar":{"id":2,"user_id":1001,"name":"\/files\/cdn\/a57be577deb434\/avatar\/9f73cfbd-bae6-3b50-b7ac-61b936c40727.png"}},"client":{"id":3334,"key":3334,"name":"\u5317\u4eac\u878d\u9890\u5149\u7535\u79d1\u6280\u6709\u9650\u516c\u53f8(\u8fc7\u5355)","client_class":43,"logo":null,"sales_rep":1001,"workingAddresses":[{"id":4094,"key":4094,"name":"\u5317\u4eac\u5e02\u987a\u4e49\u533a\u6f9c\u897f\u56ed\u56db\u533a26\u53f7\u697c2\u5c42238"}]},"commentCount":{"object_id":8260,"comment":2},"unreadComments":null,"attachment":null,"salesRep":{"id":1001,"key":1001,"name":"\u5218\u4eba\u8bda"},"lastEngineer":null,"contact":{"id":6002,"name":"\u67f3\u98de","email":"","sex":"M","department":"","job_position":"","mobile":"","telephone":"","telephone_area_code":"","telephone_extension_number":"","contact_type":"1","contact_attitude":null,"client_id":3334,"user_status":2,"contactStatus":{"id":2,"status":"\u5728\u804c","description":"\u5728\u804c"},"mobiles":[{"id":6786,"contact_id":6002,"mobile":"13331106031","mp_open_id":null}],"contactKeyRoles":[],"contactAttitude":null},"callback":null,"lastAssignment":null,"assignments":[],"preSalesCount":null,"implementRecordsCount":null,"notAcceptAssignment":null,"attachmentRelationships":[],"files":[],"caseRemindDates":[],"selfPreSalesCount":null,"selfImplementRecordsCount":null,"preSales":[],"implementRecords":[],"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_close":false,"can_suspend":true,"can_finish":false,"can_give_up":false,"can_delete":true,"can_accept":false,"can_change_type":true,"can_assigned":true,"alarm_before_display":"\u65e0","spent_time_display":"1\u5c0f\u65f6","case_status_display":"Case\u5f85\u5206\u914d","view_ticket":true,"bgcolor":"#d9534f","can_create_reimbursement":true}],"countList":[{"key":1,"value":4},{"key":2,"value":3},{"key":3,"value":0},{"key":4,"value":11},{"key":5,"value":7350},{"key":6,"value":143}],"pagenation":{"totalcount":4,"thispage":1,"pagesize":10},"can_create":true},"status":1,"msg":[{"name":"success","success":"\u6210\u529f\u83b7\u53d6\u6570\u636e","error":""}]}', FALSE, '2025-07-01 18:23:44') RETURNING "id" |
18:23:44.231 | 2.0 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=25) AND ("object_id" IN (8267, 8266, 8265, 8260)) |
18:23:44.233 | 1.8 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=104) AND ("object_id" IN (8267, 8266, 8265, 8260)) |
18:23:44.239 | 1.6 ms | yii\db\Command::query | SELECT "id", "case_id" FROM "a57be577deb434"."tbl_implement_records" WHERE "case_id" IN (8267, 8266, 8265, 8260) |
18:23:44.237 | 1.6 ms | yii\db\Command::query | SELECT "case_id", count(*) AS count FROM "a57be577deb434"."tbl_implement_records" WHERE ("created_by"=1000) AND ("case_id" IN (8267, 8266, 8265, 8260)) GROUP BY "case_id" |
18:23:44.216 | 1.6 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_callback_records" WHERE "case_id" IN (8267, 8266, 8265, 8260) |
18:23:44.218 | 1.5 ms | yii\db\Command::query | SELECT "id", "case_id", "engineer_id", "assignment_status", "points", "percent" FROM "a57be577deb434"."tbl_case_assignments" WHERE "case_id" IN (8267, 8266, 8265, 8260) ORDER BY "assigned_at" DESC |
18:23:44.222 | 1.4 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 (8267, 8266, 8265, 8260)) |
18:23:44.225 | 1.4 ms | yii\db\Command::query | SELECT "case_id", count(*) AS count FROM "a57be577deb434"."tbl_implement_records" WHERE "case_id" IN (8267, 8266, 8265, 8260) GROUP BY "case_id" |
18:23:44.116 | 1.3 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000 |
18:23:44.228 | 1.3 ms | yii\db\Command::query | SELECT "id", "case_id" FROM "a57be577deb434"."tbl_implement_records" WHERE ("is_draft"=TRUE) AND ("case_id" IN (8267, 8266, 8265, 8260)) |
18:23:44.151 | 1.2 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_case_services" WHERE "case_id" IN (8267, 8266, 8265, 8260) |
18:23:44.153 | 1.1 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_case_services" WHERE "case_id" IN (8267, 8266, 8265, 8260) |
18:23:44.230 | 0.9 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 (8267, 8266, 8265, 8260)) ORDER BY "assigned_at" DESC |
18:23:44.209 | 0.9 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=3334 |
18:23:44.212 | 0.8 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_contact_mobiles" WHERE "contact_id"=6002 |
18:23:44.220 | 0.8 ms | yii\db\Command::query | SELECT "id", "case_id", "engineer_id", "assignment_status", "points", "percent" FROM "a57be577deb434"."tbl_case_assignments" WHERE "case_id" IN (8267, 8266, 8265, 8260) ORDER BY "assigned_at" DESC |
18:23:44.224 | 0.7 ms | yii\db\Command::query | SELECT "case_id", count(*) AS count FROM "a57be577deb434"."tbl_pre_sales" WHERE "case_id" IN (8267, 8266, 8265, 8260) GROUP BY "case_id" |
18:23:44.221 | 0.7 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 (8267, 8266, 8265, 8260)) |
18:23:44.236 | 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 (8267, 8266, 8265, 8260)) GROUP BY "case_id" |
18:23:44.214 | 0.6 ms | yii\db\Command::query | SELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_term_taxonomies" WHERE ("term_id"=11) AND ("id" IN (2, 184, 189, 349)) ORDER BY "sort" |
18:23:44.211 | 0.6 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"=6002 |
18:23:44.227 | 0.6 ms | yii\db\Command::query | SELECT "id", "case_id" FROM "a57be577deb434"."tbl_pre_sales" WHERE ("is_draft"=TRUE) AND ("case_id" IN (8267, 8266, 8265, 8260)) |
18:23:44.238 | 0.6 ms | yii\db\Command::query | SELECT "id", "case_id" FROM "a57be577deb434"."tbl_pre_sales" WHERE "case_id" IN (8267, 8266, 8265, 8260) |
18:23:44.158 | 0.6 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"=4094) |
18:23:44.158 | 0.5 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_client_address_rels" WHERE "client_id"=3334 |
18:23:44.153 | 0.5 ms | yii\db\Command::query | SELECT "id", "serial_no", "title" AS "name", "brand_id", "type_id", "description" FROM "a57be577deb434"."tbl_services" WHERE "id"=275 |
18:23:44.156 | 0.4 ms | yii\db\Command::query | SELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_departments" WHERE "id" IN (4, 10) |
18:23:44.213 | 0.4 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_term_taxonomy_relationships" WHERE "object_id"=6002 |
18:23:44.157 | 0.4 ms | yii\db\Command::query | SELECT "id", "user_id", "meta_value" AS "name" FROM "a57be577deb434"."tbl_user_meta" WHERE ("meta_key"='avatar') AND ("user_id" IN (1001, 5064)) |
18:23:44.212 | 0.4 ms | yii\db\Command::query | SELECT "id", "status", "description" FROM "a57be577deb434"."tbl_contact_statuses" WHERE "id"=2 |
18:23:44.151 | 0.3 ms | yii\db\Command::query | SELECT "id", "id" AS "key", "project_title" AS "name" FROM "a57be577deb434"."tbl_projects" WHERE "id"=3786 |
18:23:44.155 | 0.3 ms | yii\db\Command::query | SELECT "id", "id" AS "key", "name", "sex", "department_id" FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
18:23:44.157 | 0.3 ms | yii\db\Command::query | SELECT "id", "id" AS "key", "name", "client_class", "logo", "sales_rep" FROM "a57be577deb434"."tbl_clients" WHERE "id"=3334 |
18:23:44.215 | 0.3 ms | yii\db\Command::query | SELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_term_taxonomies" WHERE ("term_id"=12) AND ("id" IN (2, 184, 189, 349)) ORDER BY "sort" |
18:23:44.235 | 0.3 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_case_remind_dates" WHERE "case_id" IN (8267, 8266, 8265, 8260) |
18:23:44.154 | 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"=275 |
18:23:44.215 | 0.3 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_term_taxonomy_relationships" WHERE "object_id"=6002 |
18:23:44.155 | 0.2 ms | yii\db\Command::query | SELECT "id", "id" AS "key", "name", "sex", "department_id" FROM "a57be577deb434"."tbl_users" WHERE "id" IN (5064, 1001) |
18:23:44.210 | 0.2 ms | yii\db\Command::query | SELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
18:23:44.241 | 0.2 ms | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_case_carbon_copy_rels" WHERE "case_id" IN (8267, 8266, 8265, 8260) |