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
429084a6
Commit
429084a6
authored
Apr 15, 2026
by
耿迪迪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
居民安检查询调整
parent
4d4d319d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
57 additions
and
3 deletions
+57
-3
UserTaskInspect.java
...ain/java/com/zehong/system/domain/vo/UserTaskInspect.java
+24
-0
TTaskInspectMapper.xml
...m/src/main/resources/mapper/system/TTaskInspectMapper.xml
+6
-0
index.vue
huaxin-web/src/views/checktask/inspect/index.vue
+27
-3
No files found.
huaxin-system/src/main/java/com/zehong/system/domain/vo/UserTaskInspect.java
View file @
429084a6
...
...
@@ -54,6 +54,14 @@ public class UserTaskInspect {
private
Long
village
;
/** 安检开始时间 */
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
private
Date
beginDate
;
/** 安检结束时间 */
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
private
Date
endDate
;
public
String
getNickName
()
{
return
nickName
;
}
...
...
@@ -237,4 +245,20 @@ public class UserTaskInspect {
public
void
setMeternum
(
String
meternum
)
{
this
.
meternum
=
meternum
;
}
public
Date
getBeginDate
()
{
return
beginDate
;
}
public
void
setBeginDate
(
Date
beginDate
)
{
this
.
beginDate
=
beginDate
;
}
public
Date
getEndDate
()
{
return
endDate
;
}
public
void
setEndDate
(
Date
endDate
)
{
this
.
endDate
=
endDate
;
}
}
huaxin-system/src/main/resources/mapper/system/TTaskInspectMapper.xml
View file @
429084a6
...
...
@@ -132,6 +132,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"village == null "
>
and u.village in (SELECT re.relation_id FROM t_task_relation_info re WHERE re.task_id = #{taskId} and re.type = '1' )
</if>
<if
test=
"beginDate != null and endDate != null"
>
and inspect.create_time BETWEEN #{beginDate} AND #{endDate}
</if>
</where>
order by inspect.create_time desc
</select>
...
...
@@ -161,6 +164,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"village == null "
>
and u.village in (SELECT re.relation_id FROM t_task_relation_info re WHERE re.task_id = #{taskId} and re.type = '1' )
</if>
<if
test=
"beginDate != null and endDate != null"
>
and inspect.create_time BETWEEN #{beginDate} AND #{endDate}
</if>
</where>
order by inspect.create_time desc
</select>
...
...
huaxin-web/src/views/checktask/inspect/index.vue
View file @
429084a6
...
...
@@ -170,6 +170,20 @@
</el-select>
</el-form-item>
<el-form-item
label=
"安检时间"
prop=
"inspectTimeRange"
>
<el-date-picker
v-model=
"inspectTimeRange"
type=
"datetimerange"
size=
"small"
:clearable=
"false"
value-format=
"yyyy-MM-dd HH:mm"
@
change=
"timeChange"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
>
</el-date-picker>
</el-form-item>
<el-form-item>
<el-button
type=
"primary"
...
...
@@ -383,7 +397,9 @@ export default {
satisfy
:
""
,
inspectStatus
:
""
,
nickName
:
null
,
village
:
null
village
:
null
,
beginDate
:
null
,
endDate
:
null
},
satisfyOptions
:
[
{
...
...
@@ -476,7 +492,8 @@ export default {
],
taskDetailData
:{},
taskInspectDangerDetailData
:{},
communityInfos
:
[]
communityInfos
:
[],
inspectTimeRange
:
[]
};
},
created
()
{
...
...
@@ -544,6 +561,9 @@ export default {
/** 重置按钮操作 */
resetQuery
()
{
this
.
resetForm
(
"queryForm"
);
this
.
inspectTimeRange
=
[];
this
.
queryParams
.
beginDate
=
null
;
this
.
queryParams
.
endDate
=
null
;
this
.
handleQuery
();
},
// 多选框选中数据
...
...
@@ -706,7 +726,11 @@ export default {
},
handleBatchInspectExport
(){
this
.
$refs
.
exportInspect
.
init
(
this
.
queryParams
);
}
},
timeChange
(
val
){
this
.
queryParams
.
beginDate
=
val
[
0
];
this
.
queryParams
.
endDate
=
val
[
1
];
},
},
};
</
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