Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bill-platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
bill-platform
Commits
f7a7cf2d
Commit
f7a7cf2d
authored
Jul 26, 2024
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加统计日志
parent
171a7faa
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
10 deletions
+12
-10
bill-manager/db/add.sql
bill-manager/db/add.sql
+4
-4
bill-manager/src/main/java/com/mortals/xhx/module/ph/web/PhQueueStatController.java
.../com/mortals/xhx/module/ph/web/PhQueueStatController.java
+1
-0
bill-manager/src/main/java/com/mortals/xhx/module/pj/web/PjEvaluateStatController.java
...m/mortals/xhx/module/pj/web/PjEvaluateStatController.java
+1
-0
bill-manager/src/main/resources/config/mybatis-sqlmap-config.xml
...nager/src/main/resources/config/mybatis-sqlmap-config.xml
+2
-2
bill-manager/src/test/java/com/mortals/httpclient/system.http
...-manager/src/test/java/com/mortals/httpclient/system.http
+4
-4
No files found.
bill-manager/db/add.sql
View file @
f7a7cf2d
...
...
@@ -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
'更新时间'
,
...
...
bill-manager/src/main/java/com/mortals/xhx/module/ph/web/PhQueueStatController.java
View file @
f7a7cf2d
...
...
@@ -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
();
...
...
bill-manager/src/main/java/com/mortals/xhx/module/pj/web/PjEvaluateStatController.java
View file @
f7a7cf2d
...
...
@@ -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
);
...
...
bill-manager/src/main/resources/config/mybatis-sqlmap-config.xml
View file @
f7a7cf2d
...
...
@@ -18,8 +18,8 @@
</plugin>
<plugin
interceptor=
"com.mortals.framework.thirty.mybatis.LogInterceptor"
>
<property
name=
"enableExecutorTime"
value=
"
tru
e"
/>
<property
name=
"showSql"
value=
"
tru
e"
/>
<property
name=
"enableExecutorTime"
value=
"
fals
e"
/>
<property
name=
"showSql"
value=
"
fals
e"
/>
</plugin>
</plugins>
</configuration>
\ No newline at end of file
bill-manager/src/test/java/com/mortals/httpclient/system.http
View file @
f7a7cf2d
...
...
@@ -47,8 +47,8 @@ POST {{baseUrl}}/pj/evaluate/stat/stat
Content-Type: application/json
{
"pjTimeStart": "2024-0
6
-01",
"pjTimeEnd": "2024-07-
15
"
"pjTimeStart": "2024-0
1
-01",
"pjTimeEnd": "2024-07-
26
"
}
###排队
...
...
@@ -56,8 +56,8 @@ POST {{baseUrl}}/ph/queue/stat/stat
Content-Type: application/json
{
"taketimeStart": "202
4-06
-01",
"taketimeEnd": "2024-07-
15
"
"taketimeStart": "202
3-01
-01",
"taketimeEnd": "2024-07-
26
"
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment