Database Queries

总计10条数据
TimeDurationTypeQuery
  
23:14:52.5453.0 msSELECTSELECT * FROM "global"."vw_user_login" WHERE "id"=5250

23:14:52.5505.0 msSELECTSELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=5250

23:14:52.5614.0 msSELECTSELECT product_type_id as key, name, sum(budget) as sum_budget, sum(budget * pct / 100) as sum_profit FROM "a57be577deb434"."tbl_project_product_types" "pt" WHERE "project_id" IN (SELECT "id" FROM "a57be577deb434"."tbl_projects" WHERE ("created_by" IN ('1001', '1004', '1005', '1013', '5087', '5295', '5300', '5311', '5329', '5332', '5420', '5448', '5449')) AND (bargain_date >= '2025-01-01 00:00:00' AND bargain_date < timestamp '2025-12-31 23:59:59' + interval '1 second') AND ("bargain_date" >= '2025-01-01 00:00:00') AND ("bargain_date" <= '2025-12-31 23:59:59')) GROUP BY "product_type_id", "name"

23:14:52.5663.0 msSELECTSELECT ci.id as key, ci.name, sum(budget) as sum_budget, sum(budget * profit_pct / 100) as sum_profit FROM "a57be577deb434"."tbl_client_industries" "ci" LEFT JOIN (SELECT "p"."id", "p"."budget", "p"."profit_pct", "p"."created_by", "c"."client_industry" FROM "a57be577deb434"."tbl_projects" "p" LEFT JOIN "a57be577deb434"."tbl_clients" "c" ON p.client_id = c.id WHERE ("p"."created_by" IN ('1001', '1004', '1005', '1013', '5087', '5295', '5300', '5311', '5329', '5332', '5420', '5448', '5449')) AND ("p"."bargain_date" >= '2025-01-01 00:00:00') AND ("p"."bargain_date" <= '2025-12-31 23:59:59') AND (bargain_date >= '2025-01-01 00:00:00' AND bargain_date < timestamp '2025-12-31 23:59:59' + interval '1 second')) "sub" ON ci.id = sub.client_industry GROUP BY "ci"."id"

23:14:52.5691.6 msSELECTSELECT ci.id as key, ci.name, sum(budget) as sum_budget, sum(budget * profit_pct / 100) as sum_profit FROM "a57be577deb434"."tbl_client_industries" "ci" LEFT JOIN (SELECT "p"."id", "p"."budget", "p"."profit_pct", "p"."created_by", "c"."client_industry" FROM "a57be577deb434"."tbl_projects" "p" LEFT JOIN "a57be577deb434"."tbl_clients" "c" ON p.used_client = c.id WHERE ("p"."created_by" IN ('1001', '1004', '1005', '1013', '5087', '5295', '5300', '5311', '5329', '5332', '5420', '5448', '5449')) AND ("p"."bargain_date" >= '2025-01-01 00:00:00') AND ("p"."bargain_date" <= '2025-12-31 23:59:59') AND (bargain_date >= '2025-01-01 00:00:00' AND bargain_date < timestamp '2025-12-31 23:59:59' + interval '1 second')) "sub" ON ci.id = sub.client_industry GROUP BY "ci"."id"

23:14:52.5722.3 msSELECTSELECT ct.id as key, ct.name, sum(budget) as sum_budget, sum(budget * profit_pct / 100) as sum_profit FROM "a57be577deb434"."tbl_client_types" "ct" LEFT JOIN (SELECT "p"."id", "p"."budget", "p"."profit_pct", "p"."created_by", "c"."client_type" FROM "a57be577deb434"."tbl_projects" "p" LEFT JOIN "a57be577deb434"."tbl_clients" "c" ON p.client_id = c.id WHERE ("p"."created_by" IN ('1001', '1004', '1005', '1013', '5087', '5295', '5300', '5311', '5329', '5332', '5420', '5448', '5449')) AND ("p"."bargain_date" >= '2025-01-01 00:00:00') AND ("p"."bargain_date" <= '2025-12-31 23:59:59') AND (bargain_date >= '2025-01-01 00:00:00' AND bargain_date < timestamp '2025-12-31 23:59:59' + interval '1 second')) "sub" ON ct.id = sub.client_type GROUP BY "ct"."id"

23:14:52.5741.5 msSELECTSELECT ct.id as key, ct.name, sum(budget) as sum_budget, sum(budget * profit_pct / 100) as sum_profit FROM "a57be577deb434"."tbl_client_types" "ct" LEFT JOIN (SELECT "p"."id", "p"."budget", "p"."profit_pct", "p"."created_by", "c"."client_type" FROM "a57be577deb434"."tbl_projects" "p" LEFT JOIN "a57be577deb434"."tbl_clients" "c" ON p.used_client = c.id WHERE ("p"."created_by" IN ('1001', '1004', '1005', '1013', '5087', '5295', '5300', '5311', '5329', '5332', '5420', '5448', '5449')) AND ("p"."bargain_date" >= '2025-01-01 00:00:00') AND ("p"."bargain_date" <= '2025-12-31 23:59:59') AND (bargain_date >= '2025-01-01 00:00:00' AND bargain_date < timestamp '2025-12-31 23:59:59' + interval '1 second')) "sub" ON ct.id = sub.client_type GROUP BY "ct"."id"

23:14:52.5764.0 msSELECTSELECT * FROM "a57be577deb434"."tbl_visit_module_histories" WHERE ("user_id"=5250) AND ("object_type"=23) AND ("visit_date"='2025-08-31')

23:14:52.5810.8 msUPDATEUPDATE "a57be577deb434"."tbl_visit_module_histories" SET "num"=3, "last_visit_at"='now()' WHERE "id"=55416

23:14:52.5821.4 msINSERTINSERT INTO "global"."tbl_api_log" ("code", "schema", "user_id", "device_type", "url", "request", "response", "php_error", "time") VALUES (200, 'a57be577deb434', 5250, 5, 'vue/analysis/sales-project-counts', '{"period":"currentfascalyear","dataUserId":"1001,1004,1005,1013,5087,5295,5300,5311,5329,5332,5420,5448,5449","alert":"false","web_access_token":"HRJtynI-E0wmAZJhW07mofn0AVjTn_iH"}', '{"code":2000,"result":{"budgetCounts":[{"key":2,"name":"\u670d\u52a1\u5668","sum_budget":"40184771.10","sum_profit":"4448582.32535","y":45.84},{"key":86,"name":"\u8ba1\u7b97","sum_budget":"8495580.00","sum_profit":"910734.8","y":9.69},{"key":5,"name":"\u5b89\u5168\u8bbe\u5907","sum_budget":"8170706.34","sum_profit":"1339011.452768","y":9.32},{"key":4,"name":"\u7f51\u7edc\u8bbe\u5907 ","sum_budget":"6791461.00","sum_profit":"5130897.1314","y":7.75},{"key":10,"name":"\u56fe\u5f62\u5de5\u4f5c\u7ad9","sum_budget":"5159429","sum_profit":"5155525.8359","y":5.89},{"key":69,"name":"\u5907\u4efd","sum_budget":"4072418.20","sum_profit":"363844.84342","y":4.65},{"key":7,"name":"\u8f6f\u4ef6","sum_budget":"3589704.00","sum_profit":"96839.8296","y":4.1},{"key":22,"name":"\u670d\u52a1","sum_budget":"2847567.10","sum_profit":"1544770.914","y":3.25},{"key":87,"name":"\u5b89\u5168","sum_budget":"2505000.00","sum_profit":"646070","y":2.86},{"key":88,"name":"\u79c1\u6709\u4e91","sum_budget":"2464033.00","sum_profit":"864606.6379","y":2.81},{"key":3,"name":"\u5b58\u50a8\u8bbe\u5907","sum_budget":"2299600.00","sum_profit":"471449.7","y":2.62},{"key":16,"name":"\u8fd0\u7ef4\u670d\u52a1","sum_budget":"458152.00","sum_profit":"207219.76","y":0.52},{"key":19,"name":"\u6280\u672f\u670d\u52a1","sum_budget":"251000.00","sum_profit":"174427.9","y":0.29},{"key":18,"name":"\u673a\u623f\u8bbe\u5907","sum_budget":"200000","sum_profit":"50000","y":0.23},{"key":85,"name":"\u7f51\u7edc","sum_budget":"83081","sum_profit":"8308.1","y":0.09},{"key":12,"name":"\u7b14\u8bb0\u672c","sum_budget":"56862","sum_profit":"4964.0526","y":0.06},{"key":14,"name":"UPS","sum_budget":"30660.00","sum_profit":"3808.716","y":0.03}],"profitCounts":[{"key":10,"name":"\u56fe\u5f62\u5de5\u4f5c\u7ad9","sum_budget":"5159429","sum_profit":"5155525.8359","y":24.07},{"key":4,"name":"\u7f51\u7edc\u8bbe\u5907 ","sum_budget":"6791461.00","sum_profit":"5130897.1314","y":23.95},{"key":2,"name":"\u670d\u52a1\u5668","sum_budget":"40184771.10","sum_profit":"4448582.32535","y":20.77},{"key":22,"name":"\u670d\u52a1","sum_budget":"2847567.10","sum_profit":"1544770.914","y":7.21},{"key":5,"name":"\u5b89\u5168\u8bbe\u5907","sum_budget":"8170706.34","sum_profit":"1339011.452768","y":6.25},{"key":86,"name":"\u8ba1\u7b97","sum_budget":"8495580.00","sum_profit":"910734.8","y":4.25},{"key":88,"name":"\u79c1\u6709\u4e91","sum_budget":"2464033.00","sum_profit":"864606.6379","y":4.04},{"key":87,"name":"\u5b89\u5168","sum_budget":"2505000.00","sum_profit":"646070","y":3.02},{"key":3,"name":"\u5b58\u50a8\u8bbe\u5907","sum_budget":"2299600.00","sum_profit":"471449.7","y":2.2},{"key":69,"name":"\u5907\u4efd","sum_budget":"4072418.20","sum_profit":"363844.84342","y":1.7},{"key":16,"name":"\u8fd0\u7ef4\u670d\u52a1","sum_budget":"458152.00","sum_profit":"207219.76","y":0.97},{"key":19,"name":"\u6280\u672f\u670d\u52a1","sum_budget":"251000.00","sum_profit":"174427.9","y":0.81},{"key":7,"name":"\u8f6f\u4ef6","sum_budget":"3589704.00","sum_profit":"96839.8296","y":0.45},{"key":18,"name":"\u673a\u623f\u8bbe\u5907","sum_budget":"200000","sum_profit":"50000","y":0.23},{"key":85,"name":"\u7f51\u7edc","sum_budget":"83081","sum_profit":"8308.1","y":0.04},{"key":12,"name":"\u7b14\u8bb0\u672c","sum_budget":"56862","sum_profit":"4964.0526","y":0.02},{"key":14,"name":"UPS","sum_budget":"30660.00","sum_profit":"3808.716","y":0.02}],"industryCounts":[{"key":20,"name":"\u5176\u4ed6","sum_budget":"40980999","sum_profit":"4304856.66200000000000000000","y":46.75},{"key":13,"name":"SI\/ISV","sum_budget":"19975812","sum_profit":"10139513.27880000000000000000","y":22.79},{"key":5,"name":"\u5236\u9020","sum_budget":"14207979.54","sum_profit":"4353546.0241880000000000","y":16.21},{"key":1,"name":"\u653f\u5e9c","sum_budget":"4947496","sum_profit":"1253344.8700000000000000","y":5.64},{"key":58,"name":"\u519b\u5de5","sum_budget":"4260000","sum_profit":"777228.0000000000000000","y":4.86},{"key":16,"name":"\u80fd\u6e90","sum_budget":"963000","sum_profit":"145230.00000000000000000000","y":1.1},{"key":10,"name":"\u91d1\u878d","sum_budget":"773004","sum_profit":"184457.6632000000000000","y":0.88},{"key":57,"name":"EDA\/CAE","sum_budget":"554399.1","sum_profit":"62190.4465500000000000","y":0.63},{"key":24,"name":"\u6559\u80b2\uff08\u666e\u6559\uff09","sum_budget":"368330","sum_profit":"87208.1300000000000000","y":0.42},{"key":19,"name":"OTT","sum_budget":"233980","sum_profit":"37374.1360000000000000","y":0.27},{"key":2,"name":"\u6559\u80b2\uff08\u9ad8\u6821\uff09","sum_budget":"122640","sum_profit":"24528.000000000000","y":0.14},{"key":14,"name":"\u5e7f\u7535","sum_budget":"100000","sum_profit":"10000.0000000000000000","y":0.11},{"key":8,"name":"\u7269\u6d41","sum_budget":"84375.1","sum_profit":"22553.6400000000000000","y":0.1},{"key":4,"name":"\u901a\u4fe1","sum_budget":"33560","sum_profit":"10647.1520000000000000","y":0.04},{"key":17,"name":"\u96f6\u552e","sum_budget":"22400","sum_profit":"4367.1800000000000000","y":0.03},{"key":18,"name":"\u5a92\u4f53","sum_budget":"20000","sum_profit":"2000.0000000000000000","y":0.02},{"key":9,"name":"\u5730\u4ea7","sum_budget":"12050","sum_profit":"2020.8550000000000000","y":0.01},{"key":3,"name":"\u533b\u7597","sum_budget":null,"sum_profit":null,"y":0},{"key":6,"name":"\u7535\u5546","sum_budget":null,"sum_profit":null,"y":0},{"key":7,"name":"\u9152\u5e97","sum_budget":null,"sum_profit":null,"y":0},{"key":11,"name":"\u4ea4\u901a","sum_budget":null,"sum_profit":null,"y":0},{"key":12,"name":"\u5e7f\u544a","sum_budget":null,"sum_profit":null,"y":0},{"key":15,"name":"\u7535\u529b","sum_budget":null,"sum_profit":null,"y":0},{"key":25,"name":"\u6559\u80b2\uff08\u673a\u6784\uff09","sum_budget":null,"sum_profit":null,"y":0}],"usedClientIndustryCounts":[{"key":58,"name":"\u519b\u5de5","sum_budget":"2310000","sum_profit":"-2772.0000000000000000","y":47.59},{"key":6,"name":"\u7535\u5546","sum_budget":"1955600","sum_profit":"958244.000000000000","y":40.29},{"key":5,"name":"\u5236\u9020","sum_budget":"530500","sum_profit":"124770.4500000000000000","y":10.93},{"key":18,"name":"\u5a92\u4f53","sum_budget":"50000","sum_profit":"5145.0000000000000000","y":1.03},{"key":17,"name":"\u96f6\u552e","sum_budget":"8200","sum_profit":"7626.0000000000000000","y":0.17},{"key":1,"name":"\u653f\u5e9c","sum_budget":null,"sum_profit":null,"y":0},{"key":2,"name":"\u6559\u80b2\uff08\u9ad8\u6821\uff09","sum_budget":null,"sum_profit":null,"y":0},{"key":3,"name":"\u533b\u7597","sum_budget":null,"sum_profit":null,"y":0},{"key":4,"name":"\u901a\u4fe1","sum_budget":null,"sum_profit":null,"y":0},{"key":7,"name":"\u9152\u5e97","sum_budget":null,"sum_profit":null,"y":0},{"key":8,"name":"\u7269\u6d41","sum_budget":null,"sum_profit":null,"y":0},{"key":9,"name":"\u5730\u4ea7","sum_budget":null,"sum_profit":null,"y":0},{"key":10,"name":"\u91d1\u878d","sum_budget":null,"sum_profit":null,"y":0},{"key":11,"name":"\u4ea4\u901a","sum_budget":null,"sum_profit":null,"y":0},{"key":12,"name":"\u5e7f\u544a","sum_budget":null,"sum_profit":null,"y":0},{"key":13,"name":"SI\/ISV","sum_budget":null,"sum_profit":null,"y":0},{"key":14,"name":"\u5e7f\u7535","sum_budget":null,"sum_profit":null,"y":0},{"key":15,"name":"\u7535\u529b","sum_budget":null,"sum_profit":null,"y":0},{"key":16,"name":"\u80fd\u6e90","sum_budget":null,"sum_profit":null,"y":0},{"key":19,"name":"OTT","sum_budget":null,"sum_profit":null,"y":0},{"key":20,"name":"\u5176\u4ed6","sum_budget":null,"sum_profit":null,"y":0},{"key":24,"name":"\u6559\u80b2\uff08\u666e\u6559\uff09","sum_budget":null,"sum_profit":null,"y":0},{"key":25,"name":"\u6559\u80b2\uff08\u673a\u6784\uff09","sum_budget":null,"sum_profit":null,"y":0},{"key":57,"name":"EDA\/CAE","sum_budget":null,"sum_profit":null,"y":0}],"typeCounts":[{"key":6,"name":"\u592e\u4f01","sum_budget":"51539213","sum_profit":"6333013.20290000000000000000","y":58.79},{"key":5,"name":"\u5546\u4e1a","sum_budget":"27257550.54","sum_profit":"13249002.79071800000000000000","y":31.09},{"key":1,"name":"\u653f\u5e9c","sum_budget":"6618261.2","sum_profit":"1463200.0441200000000000","y":7.55},{"key":3,"name":"\u5916\u4f01","sum_budget":"2245000","sum_profit":"375850.000000000000","y":2.56},{"key":2,"name":"\u7cfb\u7edf\u96c6\u6210\u5546","sum_budget":null,"sum_profit":null,"y":0},{"key":7,"name":"\u4ea7\u54c1\u4ee3\u7406\u5546","sum_budget":null,"sum_profit":null,"y":0}],"usedClientTypeCounts":[{"key":6,"name":"\u592e\u4f01","sum_budget":"4792100","sum_profit":"1076522.4500000000000000","y":98.72},{"key":5,"name":"\u5546\u4e1a","sum_budget":"62200","sum_profit":"16491.0000000000000000","y":1.28},{"key":1,"name":"\u653f\u5e9c","sum_budget":null,"sum_profit":null,"y":0},{"key":2,"name":"\u7cfb\u7edf\u96c6\u6210\u5546","sum_budget":null,"sum_profit":null,"y":0},{"key":3,"name":"\u5916\u4f01","sum_budget":null,"sum_profit":null,"y":0},{"key":7,"name":"\u4ea7\u54c1\u4ee3\u7406\u5546","sum_budget":null,"sum_profit":null,"y":0}]},"status":1,"msg":[{"name":"success","success":"\u6210\u529f\u83b7\u53d6\u6570\u636e","error":""}],"mod":0}', FALSE, '2025-08-31 23:14:52') RETURNING "id"