Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
H
huaxin-rq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
耿迪迪
huaxin-rq
Commits
c040eeff
Commit
c040eeff
authored
Feb 24, 2026
by
耿迪迪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
安检量统计筛选统计修改
parent
a0d0ac5c
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
42 additions
and
8 deletions
+42
-8
TTaskInspectServiceImpl.java
...m/zehong/system/service/impl/TTaskInspectServiceImpl.java
+1
-0
TTaskInspectMapper.xml
...m/src/main/resources/mapper/system/TTaskInspectMapper.xml
+2
-1
index.vue
.../views/checktask/inspectnumstatisticbyinspector/index.vue
+39
-7
No files found.
huaxin-system/src/main/java/com/zehong/system/service/impl/TTaskInspectServiceImpl.java
View file @
c040eeff
...
...
@@ -242,6 +242,7 @@ public class TTaskInspectServiceImpl implements ITTaskInspectService
if
(
null
!=
param
.
get
(
"beginTime"
)
||
null
!=
param
.
get
(
"memberId"
)){
Map
<
String
,
String
>
newParam
=
new
HashMap
<>();
newParam
.
put
(
"village"
,
param
.
get
(
"village"
));
newParam
.
put
(
"street"
,
param
.
get
(
"street"
));
List
<
Map
<
String
,
Object
>>
statisticResultNew
=
tTaskInspectMapper
.
inspectNumStatisticByInspector
(
newParam
);
groupByTask
=
statisticResultNew
.
stream
().
collect
(
Collectors
.
groupingBy
(
e
->
e
.
get
(
"taskId"
)));
}
else
{
...
...
huaxin-system/src/main/resources/mapper/system/TTaskInspectMapper.xml
View file @
c040eeff
...
...
@@ -443,13 +443,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
GROUP BY relation.task_id
) user_counts ON user_counts.task_id = inspect.task_id
LEFT JOIN t_task task ON task.id = inspect.task_id
<if
test=
"village != null"
>
<if
test=
"village != null
or street != null
"
>
LEFT JOIN t_user u ON u.id = inspect.receive_id
</if>
<where>
task.status = 0
<if
test=
"beginTime != null and endTime != null"
>
and inspect.create_time between #{beginTime} and #{endTime}
</if>
<if
test=
"village != null"
>
and u.village = #{village}
</if>
<if
test=
"street != null"
>
and u.street = #{street}
</if>
<if
test=
"memberId != null"
>
and inspect.member_id = #{memberId}
</if>
</where>
GROUP BY inspect.member_id,inspect.task_id;
...
...
huaxin-web/src/views/checktask/inspectnumstatisticbyinspector/index.vue
View file @
c040eeff
<
template
>
<div
class=
"app-container"
>
<el-form
:model=
"queryParams"
ref=
"queryForm"
:inline=
"true"
label-width=
"1
2
0px"
>
<el-form
:model=
"queryParams"
ref=
"queryForm"
:inline=
"true"
label-width=
"1
3
0px"
>
<el-form-item
label=
"起止时间"
>
<el-date-picker
v-model=
"time"
type=
"date
time
range"
type=
"daterange"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
size=
"small"
@
change=
"timeChange"
value-format=
"yyyy-MM-dd
HH:mm:ss
"
value-format=
"yyyy-MM-dd"
:clearable=
"false"
>
</el-date-picker>
</el-form-item>
<el-form-item
label=
"所属区域(区县)"
prop=
"street"
>
<el-select
v-model=
"queryParams.street"
placeholder=
"所属区域(区县)"
@
change=
"changeStreet"
>
<el-option
v-for=
"item in streetData"
:key=
"item.id"
:label=
"item.areaName"
:value=
"item.id"
/>
</el-select>
</el-form-item>
<el-form-item
label=
"所属区域(村)"
prop=
"village"
>
<el-select
v-model=
"queryParams.village"
placeholder=
"所属区域(村)"
>
<el-option
...
...
@@ -51,6 +66,7 @@
<
script
>
import
{
inspectNumStatisticByInspector
}
from
"@/api/checktask/inspect"
;
import
{
communityList
}
from
"@/api/baseinfo/community"
;
import
{
aLLAreaListInfo
}
from
"@/api/baseinfo/area"
;
export
default
{
name
:
"inspect-statistic-index"
,
data
(){
...
...
@@ -58,17 +74,20 @@
queryParams
:{
beginTime
:
null
,
endTime
:
null
,
village
:
null
village
:
null
,
street
:
null
},
loading
:
true
,
inspectStatisticInfoList
:
[],
time
:
[],
communityData
:
[]
communityData
:
[],
streetData
:
[]
}
},
created
(){
this
.
getList
();
this
.
getCommunityInfo
();
this
.
getStreet
();
},
methods
:{
/** 搜索按钮操作 */
...
...
@@ -81,6 +100,7 @@
this
.
resetForm
(
"queryForm"
);
this
.
queryParams
.
beginTime
=
null
;
this
.
queryParams
.
endTime
=
null
;
this
.
getCommunityInfo
();
this
.
time
=
[];
this
.
handleQuery
();
},
...
...
@@ -93,7 +113,7 @@
let
statistic
=
{
inspector
:
"汇总"
,
noInspectNum
:
0
,
normalInspectNum
:
0
,
refuseInspectNum
:
0
,
stopInspectNum
:
0
,
missInspectNum
:
0
,
dangerNum
:
0
,
noDangerNum
:
0
,
total
:
0
};
this
.
inspectStatisticInfoList
.
forEach
(
item
=>
{
let
total
=
item
.
no
InspectNum
+
item
.
normalInspectNum
+
item
.
refuseInspectNum
+
item
.
stopInspectNum
+
item
.
missInspectNum
+
item
.
dangerNum
+
item
.
noDanger
Num
;
let
total
=
item
.
no
rmalInspectNum
+
item
.
refuseInspectNum
+
item
.
stopInspectNum
+
item
.
missInspect
Num
;
statistic
.
noInspectNum
+=
item
.
noInspectNum
;
statistic
.
normalInspectNum
+=
item
.
normalInspectNum
;
statistic
.
refuseInspectNum
+=
item
.
refuseInspectNum
;
...
...
@@ -114,12 +134,24 @@
},
//获取小区信息
getCommunityInfo
(){
communityList
().
then
(
res
=>
{
communityList
(
{
street
:
this
.
queryParams
.
street
}
).
then
(
res
=>
{
if
(
res
.
code
==
200
){
this
.
communityData
=
res
.
data
;
}
})
},
//获取街道镇信息
getStreet
(){
aLLAreaListInfo
({
parentId
:
8
}).
then
(
res
=>
{
if
(
res
.
code
==
200
){
this
.
streetData
=
res
.
data
;
}
})
},
changeStreet
(){
this
.
queryParams
.
village
=
null
;
this
.
getCommunityInfo
();
}
}
}
</
script
>
...
...
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