Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation
This project
Loading...
Sign in
李苗
/
Vion-DevOps
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 2999944b
authored
Feb 25, 2025
by
HlQ
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
[feat] 巡检管理添加巡检的服务单的状态
1 parent
cb274829
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
6 deletions
src/main/java/vion/dto/InspectDTO.java
src/main/java/vion/model/Inspect.java
src/main/java/vion/service/impl/InspectServiceImpl.java
src/main/java/vion/vo/InspectVO.java
src/main/java/vion/dto/InspectDTO.java
View file @
2999944
...
...
@@ -32,6 +32,11 @@ public class InspectDTO extends BaseDTO {
* 状态(0进行中、1待审核、2已完成、3、驳回)
*/
private
Integer
status
;
/**
* 巡检的服务单的状态 0:未完成 1:已完成
*/
private
Integer
formStatus
;
/**
* 巡检人
*/
...
...
src/main/java/vion/model/Inspect.java
View file @
2999944
...
...
@@ -46,6 +46,11 @@ public class Inspect {
* 状态(0进行中、1待审核、2已完成、3、驳回)
*/
private
Integer
status
;
/**
* 巡检的服务单的状态 0:未完成 1:已完成
*/
private
Integer
formStatus
;
/**
* 巡检人
*/
...
...
src/main/java/vion/service/impl/InspectServiceImpl.java
View file @
2999944
...
...
@@ -48,9 +48,7 @@ public class InspectServiceImpl extends MPJBaseServiceImpl<InspectMapper, Inspec
.
filter
(
CollUtil:
:
isNotEmpty
)
.
ifPresent
(
formList
->
{
Map
<
Long
,
List
<
FormVO
>>
inspectId2FormIdMap
=
formList
.
stream
().
collect
(
Collectors
.
groupingBy
(
Form:
:
getPid
,
Collectors
.
mapping
(
form
->
converter
.
convert
(
form
,
FormVO
.
class
),
Collectors
.
toList
())));
inspectVOPage
.
getRecords
().
forEach
(
inspectVO
->
{
inspectVO
.
setFormList
(
inspectId2FormIdMap
.
getOrDefault
(
inspectVO
.
getId
(),
List
.
of
()));
});
inspectVOPage
.
getRecords
().
forEach
(
inspectVO
->
inspectVO
.
setFormList
(
inspectId2FormIdMap
.
getOrDefault
(
inspectVO
.
getId
(),
List
.
of
())));
});
Opt
.
ofEmptyAble
(
inspectVOPage
.
getRecords
())
...
...
@@ -60,9 +58,7 @@ public class InspectServiceImpl extends MPJBaseServiceImpl<InspectMapper, Inspec
.
ifPresent
(
fileList
->
{
Map
<
Long
,
Long
>
id2CntMap
=
fileList
.
stream
().
collect
(
Collectors
.
groupingBy
(
FileInfo:
:
getSourceId
,
Collectors
.
counting
()));
inspectVOPage
.
getRecords
().
forEach
(
inspectVO
->
{
inspectVO
.
setFileCount
(
id2CntMap
.
getOrDefault
(
inspectVO
.
getId
(),
0L
).
intValue
());
});
inspectVOPage
.
getRecords
().
forEach
(
inspectVO
->
inspectVO
.
setFileCount
(
id2CntMap
.
getOrDefault
(
inspectVO
.
getId
(),
0L
).
intValue
()));
});
return
inspectVOPage
;
}
...
...
src/main/java/vion/vo/InspectVO.java
View file @
2999944
...
...
@@ -29,6 +29,10 @@ public class InspectVO {
*/
private
Integer
status
;
/**
* 巡检的服务单的状态 0:未完成 1:已完成
*/
private
Integer
formStatus
;
/**
* 巡检人
*/
private
Integer
inspectUser
;
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment