Log Messages

总计64条数据
TimeLevelCategoryMessage
 
16:53:04.580traceyii\base\Application::bootstrapBootstrap with yii\log\Dispatcher
16:53:04.580traceyii\base\Module::getModuleLoading module: debug
16:53:04.580traceyii\base\Application::bootstrapBootstrap with yii\debug\Module::bootstrap()
16:53:04.581traceyii\redis\Connection::openOpening redis DB connection: redis.server.local:6379, database=1
16:53:04.581traceyii\redis\Connection::executeCommandExecuting Redis Command: SELECT
16:53:04.581traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
16:53:04.581traceyii\base\Module::getModuleLoading module: gii
16:53:04.581traceyii\base\Application::bootstrapBootstrap with yii\gii\Module::bootstrap()
16:53:04.582traceyii\web\UrlManager::parseRequestNo matching URL rules. Using default URL parsing logic.
16:53:04.582traceyii\web\Application::handleRequestRoute requested: 'v2/pre-sales/list'
16:53:04.582traceyii\base\Module::getModuleLoading module: v2
16:53:04.585infoyii\web\Session::openSession started
16:53:04.586infoyii\db\Connection::openOpening DB connection: pgsql:host=postgresql.server.local;port=5432;dbname=beta
16:53:04.588infoyii\db\Command::querySELECT * FROM "global"."vw_user_login" WHERE "access_token"='Ll7CI5iYtgVyQJHl2tkvnIHNJc9_fUfd'
16:53:04.593traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
16:53:04.595traceyii\redis\Connection::executeCommandExecuting Redis Command: MGET
16:53:04.595traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
16:53:04.597traceyii\redis\Connection::executeCommandExecuting Redis Command: MGET
16:53:04.597infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000
16:53:04.599traceyii\base\Controller::runActionRoute to run: v2/pre-sales/list
16:53:04.599traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
16:53:04.601traceuranus\rbac\DbManager::checkAccessFromCacheChecking role: Admin
16:53:04.601traceyii\base\InlineAction::runWithParamsRunning action: app\modules\v2\controllers\PreSalesController::actionList()
16:53:04.601infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_cases" WHERE "id"='8268'
16:53:04.602traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
16:53:04.602traceyii\redis\Connection::executeCommandExecuting Redis Command: MGET
16:53:04.603traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
16:53:04.603infoyii\db\Command::querySELECT d.nspname AS table_schema, c.relname AS table_name, a.attname AS column_name, t.typname AS data_type, a.attlen AS character_maximum_length, pg_catalog.col_description(c.oid, a.attnum) AS column_comment, a.atttypmod AS modifier, a.attnotnull = false AS is_nullable, CAST(pg_get_expr(ad.adbin, ad.adrelid) AS varchar) AS column_default, coalesce(pg_get_expr(ad.adbin, ad.adrelid) ~ 'nextval',false) AS is_autoinc, array_to_string((select array_agg(enumlabel) from pg_enum where enumtypid=a.atttypid)::varchar[],',') as enum_values, CASE atttypid WHEN 21 /*int2*/ THEN 16 WHEN 23 /*int4*/ THEN 32 WHEN 20 /*int8*/ THEN 64 WHEN 1700 /*numeric*/ THEN CASE WHEN atttypmod = -1 THEN null ELSE ((atttypmod - 4) >> 16) & 65535 END WHEN 700 /*float4*/ THEN 24 /*FLT_MANT_DIG*/ WHEN 701 /*float8*/ THEN 53 /*DBL_MANT_DIG*/ ELSE null END AS numeric_precision, CASE WHEN atttypid IN (21, 23, 20) THEN 0 WHEN atttypid IN (1700) THEN CASE WHEN atttypmod = -1 THEN null ELSE (atttypmod - 4) & 65535 END ELSE null END AS numeric_scale, CAST( information_schema._pg_char_max_length(information_schema._pg_truetypid(a, t), information_schema._pg_truetypmod(a, t)) AS numeric ) AS size, a.attnum = any (ct.conkey) as is_pkey FROM pg_class c LEFT JOIN pg_attribute a ON a.attrelid = c.oid LEFT JOIN pg_attrdef ad ON a.attrelid = ad.adrelid AND a.attnum = ad.adnum LEFT JOIN pg_type t ON a.atttypid = t.oid LEFT JOIN pg_namespace d ON d.oid = c.relnamespace LEFT join pg_constraint ct on ct.conrelid=c.oid and ct.contype='p' WHERE a.attnum > 0 and t.typname != '' and c.relname = 'tbl_pre_sales' and d.nspname = 'a57be577deb434' ORDER BY a.attnum;
16:53:04.610infoyii\db\Command::queryselect ct.conname as constraint_name, a.attname as column_name, fc.relname as foreign_table_name, fns.nspname as foreign_table_schema, fa.attname as foreign_column_name from (SELECT ct.conname, ct.conrelid, ct.confrelid, ct.conkey, ct.contype, ct.confkey, generate_subscripts(ct.conkey, 1) AS s FROM pg_constraint ct ) AS ct inner join pg_class c on c.oid=ct.conrelid inner join pg_namespace ns on c.relnamespace=ns.oid inner join pg_attribute a on a.attrelid=ct.conrelid and a.attnum = ct.conkey[ct.s] left join pg_class fc on fc.oid=ct.confrelid left join pg_namespace fns on fc.relnamespace=fns.oid left join pg_attribute fa on fa.attrelid=ct.confrelid and fa.attnum = ct.confkey[ct.s] where ct.contype='f' and c.relname='tbl_pre_sales' and ns.nspname='a57be577deb434' order by fns.nspname, fc.relname, a.attnum
16:53:04.633traceyii\redis\Connection::executeCommandExecuting Redis Command: MGET
16:53:04.634traceyii\redis\Connection::executeCommandExecuting Redis Command: SET
16:53:04.634infoyii\db\Command::querySELECT COUNT(*) FROM (SELECT p.*, p.end_at - p.start_at AS hours_spent FROM "a57be577deb434"."tbl_pre_sales" "p" LEFT JOIN "a57be577deb434"."tbl_cases" "c" ON c.id = p.case_id WHERE "case_id"=8268 GROUP BY "p"."id" ORDER BY "is_draft" DESC, "p"."has_following_work" DESC, "p"."end_at" DESC) "c"
16:53:04.636infoyii\db\Command::querySELECT p.*, p.end_at - p.start_at AS hours_spent FROM "a57be577deb434"."tbl_pre_sales" "p" LEFT JOIN "a57be577deb434"."tbl_cases" "c" ON c.id = p.case_id WHERE "case_id"=8268 GROUP BY "p"."id" ORDER BY "is_draft" DESC, "p"."has_following_work" DESC, "p"."end_at" DESC LIMIT 10
16:53:04.643infoyii\db\Command::querySELECT "id", "id" AS "key", "name", "logo", "sales_rep" FROM "a57be577deb434"."tbl_clients" WHERE "id"=3337
16:53:04.644infoyii\db\Command::querySELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_users" WHERE "id"=5332
16:53:04.644infoyii\db\Command::querySELECT "id", "case_status", "client_id", "project_id" FROM "a57be577deb434"."tbl_cases" WHERE "id"=8268
16:53:04.645infoyii\db\Command::querySELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_clients" WHERE "id"=3337
16:53:04.646infoyii\db\Command::querySELECT "id", "id" AS "key", "project_title" AS "name" FROM "a57be577deb434"."tbl_projects" WHERE "id"=3815
16:53:04.646infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=3337
16:53:04.647infoyii\db\Command::querySELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_users" WHERE "id"=5332
16:53:04.647infoyii\db\Command::querySELECT "id", "id" AS "key", "name", "sex" FROM "a57be577deb434"."tbl_users" WHERE "id"=1017
16:53:04.648infoyii\db\Command::querySELECT "id", "user_id", "meta_value" AS "name" FROM "a57be577deb434"."tbl_user_meta" WHERE ("meta_key"='avatar') AND ("user_id"=1017)
16:53:04.649infoyii\db\Command::querySELECT "id", "id" AS "key", "name", "sex", "department_id" FROM "a57be577deb434"."tbl_users" WHERE "id"=1017
16:53:04.649infoyii\db\Command::querySELECT "id", "user_id", "meta_value" AS "name" FROM "a57be577deb434"."tbl_user_meta" WHERE ("meta_key"='avatar') AND ("user_id"=1017)
16:53:04.649infoyii\db\Command::querySELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_departments" WHERE "id"=2
16:53:04.650infoyii\db\Command::querySELECT id, id as key, geolocation[0] AS lng, geolocation[1] AS lat, address, updated_at as time FROM "a57be577deb434"."tbl_location" WHERE "id"=19218
16:53:04.651infoyii\db\Command::querySELECT id, id as key, geolocation[0] AS lng, geolocation[1] AS lat, address, updated_at as time FROM "a57be577deb434"."tbl_location" WHERE "id"=19219
16:53:04.651infoyii\db\Command::querySELECT *, "product_type_id" AS "key", "description" AS "value" FROM "a57be577deb434"."tbl_pre_sales_product_types" WHERE "pre_sales_id"=1835
16:53:04.656infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_contact_attend_pre_sales" WHERE "pre_sales_id"=1835
16:53:04.658infoyii\db\Command::querySELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_contacts" WHERE "id"=6010
16:53:04.659infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=4) AND ("object_id"=1835)
16:53:04.661infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=23) AND ("object_id"=1835)
16:53:04.663infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_services" WHERE "id"=273
16:53:04.664infoyii\db\Command::querySELECT "id", "id" AS "key", "name" FROM "a57be577deb434"."tbl_product_brands" WHERE "id"=33
16:53:04.664infoyii\db\Command::querySELECT "id", "id" AS "key", "title" AS "name" FROM "a57be577deb434"."tbl_service_type" WHERE "id"=9
16:53:04.665infoyii\db\Command::querySELECT "object_id", count(*) as comment FROM "a57be577deb434"."tbl_comments" WHERE ("object_type"=4) AND ("object_id"=1835) GROUP BY "object_id"
16:53:04.688infoyii\db\Command::querySELECT "object_id", count(*) AS unread FROM "a57be577deb434"."tbl_unread_comments" WHERE ("object_type"=4) AND (remind_user_id = 1000 AND is_read = false) AND ("object_id"=1835) GROUP BY "object_id"
16:53:04.710infoyii\db\Command::querySELECT "pre_sales_id", sum(amount) as count FROM "a57be577deb434"."tbl_reimbursements" WHERE ("status" != 4) AND ("status" != 0) AND ("pre_sales_id"=1835) GROUP BY "pre_sales_id"
16:53:04.712infoyii\db\Command::querySELECT * FROM "a57be577deb434"."tbl_reimbursements" WHERE "pre_sales_id"=1835
16:53:04.714traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
16:53:04.716traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
16:53:04.717traceyii\redis\Connection::executeCommandExecuting Redis Command: GET
16:53:04.717traceyii\redis\Connection::executeCommandExecuting Redis Command: MGET
16:53:04.718infoyii\db\Command::queryINSERT INTO "global"."tbl_api_log" ("code", "schema", "user_id", "device_type", "version_code", "url", "request", "response", "php_error", "time") VALUES (200, 'a57be577deb434', 1000, 0, 263, 'v2/pre-sales/list', '{"access_token":"Ll7CI5iYtgVyQJHl2tkvnIHNJc9_fUfd","device_type":"0","version_code":"263","id":"8268","page":"1","token":"9bb8662a9365e8bf5c53997d6c285153","posttime":"1751878382"}', '{"code":200,"data":{"list":[{"id":1835,"client_id":3337,"start_at":"2025-07-04 12:02:00","description":"","client_concerns":null,"pre_sales_assessment":"","engineer_id":1017,"created_by":1017,"created_at":"2025-07-04 12:02:49","updated_at":"2025-07-04 12:03:06","following_work_content":"","project_status":null,"end_at":"2025-07-04 12:03:00","has_following_work":false,"location_id":null,"is_draft":0,"case_id":8268,"service_id":273,"location_in_id":19218,"location_out_id":19219,"ticket_no":"PS250704001001","client_document_id":null,"client_document_file":null,"indistance":"37.063900566072","outdistance":"39.005401307941","hours_spent":"00:01:00","client":{"id":3337,"key":3337,"name":"\u6d77\u57fa\u4f1a\u57fa\u91d1\u4f1a","logo":null,"sales_rep":5332,"salesRep":{"id":5332,"key":5332,"name":"\u970d\u536b\u8d85"}},"case":{"id":8268,"case_status":3,"client_id":3337,"project_id":3815,"client":{"id":3337,"key":3337,"name":"\u6d77\u57fa\u4f1a\u57fa\u91d1\u4f1a"},"project":{"id":3815,"key":3815,"name":"\u4ed8\u6b3e\u53d1\u8d27"}},"salesRep":{"id":5332,"key":5332,"name":"\u970d\u536b\u8d85"},"engineer":{"id":1017,"key":1017,"name":"\u8f66\u660e\u98de","sex":"M","avatar":{"id":8,"user_id":1017,"name":"\/files\/cdn\/a57be577deb434\/avatar\/e538f0fe-48a7-33da-a512-b252266c9e91.jpg"}},"createdBy":{"id":1017,"key":1017,"name":"\u8f66\u660e\u98de","sex":"M","department_id":2,"avatar":{"id":8,"user_id":1017,"name":"\/files\/cdn\/a57be577deb434\/avatar\/e538f0fe-48a7-33da-a512-b252266c9e91.jpg"},"department":{"id":2,"key":2,"name":"\u6280\u672f\u90e8"}},"location":null,"locationIn":{"id":19218,"key":19218,"lng":"116.28906","lat":"39.960397","address":"\u5317\u4eac\u5e02\u6d77\u6dc0\u533a\u897f\u9876\u8def2\u53f7\u9760\u8fd1\u91d1\u6e90\u65f6\u4ee3\u5546\u52a1\u4e2d\u5fc3","time":"2025-07-04 12:02:40"},"locationOut":{"id":19219,"key":19219,"lng":"116.289152","lat":"39.960265","address":"\u5317\u4eac\u5e02\u6d77\u6dc0\u533a\u897f\u9876\u8def2\u53f7\u9760\u8fd1\u91d1\u6e90\u65f6\u4ee3\u5546\u52a1\u4e2d\u5fc3","time":"2025-07-04 12:03:05"},"preSalesProductTypes":[{"id":2,"pre_sales_id":1835,"product_type_id":2,"name":"\u670d\u52a1\u5668","description":"bfhfhfn","key":2,"value":"bfhfhfn"}],"attendedContacts":[{"id":6010,"key":6010,"name":"\u6bdb\u6653\u5149"}],"attachmentRelationships":[],"files":[],"service":{"id":273,"serial_no":"FA01","title":"\u6280\u672f\u65b9\u6848-\u4e00\u7ea7\u6587\u6863","brand_id":33,"type_id":9,"points":150,"points_off_time":150,"points_holiday":150,"description":"\u6280\u672f\u65b9\u6848-\u6587\u6863","created_by":1013,"created_at":"2021-05-31 07:39:33","updated_at":"2023-07-10 15:15:27","is_delete":false,"sort":3,"brand":{"id":33,"key":33,"name":"Toast"},"type":{"id":9,"key":9,"name":"\u6280\u672f\u57f9\u8bad"}},"clientDocument":null,"commentCount":null,"unreadComments":null,"reimbursementCount":null,"reimbursements":[],"hours_spent_display":"0.02\u5c0f\u65f6","can_update":true,"can_delete":true,"can_complete":false,"can_create_reimbursement":false,"unread":0,"bgcolor":"#89c541","can_location_in":false,"can_location_out":false}],"pagenation":{"totalcount":1,"thispage":1,"pagesize":10},"can_create":false},"status":1,"msg":[{"name":"success","success":"\u6210\u529f\u83b7\u53d6\u6570\u636e","error":""}]}', FALSE, '2025-07-07 16:53:04') RETURNING "id"