Commit f7a7cf2d authored by 赵啸非's avatar 赵啸非

添加统计日志

parent 171a7faa
......@@ -241,15 +241,15 @@ INSERT INTO `mortals_xhx_task` VALUES (null, '报表统计', 'SiteStatTask', 0,
DROP TABLE IF EXISTS `mortals_xhx_access_stat_log`;
CREATE TABLE mortals_xhx_access_stat_log(
`id` bigint(20) AUTO_INCREMENT COMMENT '序号,主键,自增长',
`access_id` bigint(20) NOT NULL DEFAULT '0' COMMENT '接入Id',
`access_id` bigint(20) DEFAULT '0' COMMENT '接入Id',
`site_id` bigint(20) COMMENT '站点Id',
`site_code` varchar(128) NOT NULL DEFAULT '' COMMENT '站点编码',
`site_name` varchar(128) NOT NULL DEFAULT '' COMMENT '站点名称',
`site_code` varchar(128) DEFAULT '' COMMENT '站点编码',
`site_name` varchar(128) DEFAULT '' COMMENT '站点名称',
`stat_start_time` datetime COMMENT '统计开始时间',
`stat_end_time` datetime COMMENT '统计结束时间',
`duration` bigint(20) DEFAULT '0' COMMENT '站点Id',
`type` varchar(16) NOT NULL DEFAULT '全部' COMMENT '类型 (ALL.全部,PJQ.评价器,PDJ.排队机)',
`remark` varchar(256) NOT NULL DEFAULT '' COMMENT '备注',
`remark` varchar(256) DEFAULT '' COMMENT '备注',
`create_user_id` bigint(20) COMMENT '创建用户',
`create_time` datetime COMMENT '创建时间',
`update_time` datetime COMMENT '更新时间',
......
......@@ -190,6 +190,7 @@ public class PhQueueStatController extends BaseCRUDJsonBodyMappingController<PhQ
if (resp.getCode() == 1) {
List<SitePdu> sitePduList = resp.getData().getData();
for (SitePdu site : sitePduList) {
log.info("统计站点:{}", site.getSiteName());
stopWatch.start("站点排号统计开始");
AccessStatLogEntity statLogEntity = new AccessStatLogEntity();
statLogEntity.initAttrValue();
......
......@@ -193,6 +193,7 @@ public class PjEvaluateStatController extends BaseCRUDJsonBodyMappingController<
for (SitePdu site : sitePduList) {
stopWatch.start("站点评价统计开始");
AccessStatLogEntity statLogEntity = new AccessStatLogEntity();
statLogEntity.initAttrValue();
statLogEntity.setStatStartTime(new Date());
statLogEntity.setType(AccessTypeEnum.排队机.getValue());
statLogEntity.setCreateUserId(1L);
......
......@@ -18,8 +18,8 @@
</plugin>
<plugin interceptor="com.mortals.framework.thirty.mybatis.LogInterceptor">
<property name="enableExecutorTime" value="true" />
<property name="showSql" value="true" />
<property name="enableExecutorTime" value="false" />
<property name="showSql" value="false" />
</plugin>
</plugins>
</configuration>
\ No newline at end of file
......@@ -47,8 +47,8 @@ POST {{baseUrl}}/pj/evaluate/stat/stat
Content-Type: application/json
{
"pjTimeStart": "2024-06-01",
"pjTimeEnd": "2024-07-15"
"pjTimeStart": "2024-01-01",
"pjTimeEnd": "2024-07-26"
}
###排队
......@@ -56,8 +56,8 @@ POST {{baseUrl}}/ph/queue/stat/stat
Content-Type: application/json
{
"taketimeStart": "2024-06-01",
"taketimeEnd": "2024-07-15"
"taketimeStart": "2023-01-01",
"taketimeEnd": "2024-07-26"
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment