temp:后台增加日统计功能

This commit is contained in:
fanxb 2022-03-11 17:06:27 +08:00
parent 4377394859
commit 441361cdee
2 changed files with 26 additions and 0 deletions

View File

@ -120,6 +120,7 @@ public class ApplicationServiceImpl implements ApplicationService {
} else {
detailPageDao.updateUvPv(detailPagePo.getId(), pageVal == null ? 1 : 0);
}
//更新站点的日pv,uv
});
}

View File

@ -0,0 +1,25 @@
drop table host_day;
CREATE TABLE qiezi.host_day (
hostId int NOT NULL COMMENT 'host表主键',
dayNum INT NOT NULL COMMENT '日期20200202',
uv INT NOT NULL,
pv int NOT NULL,
CONSTRAINT host_day_pk PRIMARY KEY (hostId,dayNum)
)
ENGINE=InnoDB
DEFAULT CHARSET=utf8mb4
COLLATE=utf8mb4_0900_ai_ci
COMMENT='整站,日 uv/pv记录';
CREATE TABLE qiezi.detail_page_day (
detailPageId int NOT NULL COMMENT 'detail_page主键',
dayNum INT NOT NULL COMMENT '日期20200202',
uv INT NOT NULL,
pv int NOT NULL,
CONSTRAINT detail_page_day_pk PRIMARY KEY (detailPageId,dayNum)
)
ENGINE=InnoDB
DEFAULT CHARSET=utf8mb4
COLLATE=utf8mb4_0900_ai_ci
COMMENT='具体页面,日 uv/pv记录';