Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
patzn-cloud-service-hmhj
Overview
Overview
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
wangweidong
patzn-cloud-service-hmhj
Commits
5ce1acf1
Commit
5ce1acf1
authored
Jul 10, 2021
by
ghxdhr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加任务分配项目检测量
parent
7b8838a3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
1 deletions
+29
-1
EntrustSampleItemServiceImpl.java
.../lims/hmhj/service/impl/EntrustSampleItemServiceImpl.java
+29
-1
No files found.
src/main/java/com/patzn/cloud/service/lims/hmhj/service/impl/EntrustSampleItemServiceImpl.java
View file @
5ce1acf1
...
@@ -836,19 +836,41 @@ public class EntrustSampleItemServiceImpl extends BaseServiceImpl<EntrustSampleI
...
@@ -836,19 +836,41 @@ public class EntrustSampleItemServiceImpl extends BaseServiceImpl<EntrustSampleI
}).
collect
(
Collectors
.
toList
());
}).
collect
(
Collectors
.
toList
());
/* 检测中的所有项目 */
List
<
EntrustSampleItem
>
experimentList
=
super
.
list
(
Condition
.
create
().
in
(
"tester_id"
,
userIdsList
).
eq
(
"status"
,
EntrustSampleItemStatusEnum
.
TEST
));
List
<
EntrustSampleItem
>
experimentList
=
super
.
list
(
Condition
.
create
().
in
(
"tester_id"
,
userIdsList
).
eq
(
"status"
,
EntrustSampleItemStatusEnum
.
TEST
));
/* 未检测 -- 还未填写原始记录 */
List
<
EntrustSampleItem
>
notTestingItems
=
experimentList
.
stream
().
filter
(
item
->
isNotTesting
(
item
)).
collect
(
Collectors
.
toList
());
/* 真正的检测中 */
experimentList
.
removeAll
(
notTestingItems
);
/* 已完成 */
List
<
EntrustSampleItem
>
TestedItem
=
super
.
list
(
Condition
.
create
().
in
(
"tester_id"
,
userIdsList
).
eq
(
"status"
,
EntrustSampleItemStatusEnum
.
END
));
List
<
LmsUserRelGroupVO
>
groupVOS
=
new
ArrayList
<>();
List
<
LmsUserRelGroupVO
>
groupVOS
=
new
ArrayList
<>();
for
(
LmsUserRelGroup
group:
groupList
)
{
for
(
LmsUserRelGroup
group:
groupList
)
{
LmsUserRelGroupVO
vo
=
group
.
convert
(
LmsUserRelGroupVO
.
class
);
LmsUserRelGroupVO
vo
=
group
.
convert
(
LmsUserRelGroupVO
.
class
);
int
num
=
0
;
int
num
=
0
,
notTestingNum
=
0
,
TestedNum
=
0
;
for
(
EntrustSampleItem
experiment:
experimentList
)
{
for
(
EntrustSampleItem
experiment:
experimentList
)
{
if
(
experiment
.
getTesterId
().
equals
(
group
.
getUserId
())){
if
(
experiment
.
getTesterId
().
equals
(
group
.
getUserId
())){
num
++;
num
++;
}
}
}
}
/* 未检测 */
for
(
EntrustSampleItem
notTestingItem
:
notTestingItems
)
{
if
(
notTestingItem
.
getTesterId
().
equals
(
group
.
getUserId
())){
notTestingNum
++;
}
}
/* 已完成 */
for
(
EntrustSampleItem
notTestingItem
:
TestedItem
)
{
if
(
notTestingItem
.
getTesterId
().
equals
(
group
.
getUserId
())){
TestedNum
++;
}
}
vo
.
setTotal
(
num
);
vo
.
setTotal
(
num
);
vo
.
setNotTesting
(
notTestingNum
);
vo
.
setTested
(
TestedNum
);
groupVOS
.
add
(
vo
);
groupVOS
.
add
(
vo
);
}
}
page
.
setRecords
(
groupVOS
);
page
.
setRecords
(
groupVOS
);
...
@@ -862,4 +884,10 @@ public class EntrustSampleItemServiceImpl extends BaseServiceImpl<EntrustSampleI
...
@@ -862,4 +884,10 @@ public class EntrustSampleItemServiceImpl extends BaseServiceImpl<EntrustSampleI
public
List
<
TesterWorkloadStatsVO
>
getTesterWorkloadStatusQuery
(
QueryDTO
queryDTO
){
public
List
<
TesterWorkloadStatsVO
>
getTesterWorkloadStatusQuery
(
QueryDTO
queryDTO
){
return
baseMapper
.
selectTesterWorkloadStatus
(
queryDTO
);
return
baseMapper
.
selectTesterWorkloadStatus
(
queryDTO
);
}
}
/* 项目是否未检测 */
public
Boolean
isNotTesting
(
EntrustSampleItem
item
)
{
return
entrustSampleItemIndexService
.
list
(
Condition
.
create
()
.
eq
(
"entrust_sample_item_id"
,
item
.
getId
())).
size
()
==
0
;
}
}
}
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