Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
K
kwell-mes
Project
Project
Details
Activity
Releases
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
gavelinfo
kwell-mes
Commits
a6144923
Commit
a6144923
authored
Mar 17, 2022
by
zhoumaotao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码调整
parent
a7f2f3a5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
8 deletions
+15
-8
KmesBoardServiceImpl.java
...va/com/gavel/kwell/service/impl/KmesBoardServiceImpl.java
+12
-5
GpfkHgVO.java
gavel/src/main/java/com/gavel/kwell/vo/GpfkHgVO.java
+3
-3
No files found.
gavel/src/main/java/com/gavel/kwell/service/impl/KmesBoardServiceImpl.java
View file @
a6144923
...
...
@@ -2,6 +2,7 @@ package com.gavel.kwell.service.impl;
import
com.gavel.common.base.service.impl.BaseEditServiceImpl
;
import
com.gavel.common.business.service.CommonService
;
import
com.gavel.common.utils.CollectionUtils
;
import
com.gavel.common.utils.DateUtils
;
import
com.gavel.common.utils.NumberUtils
;
import
com.gavel.common.utils.StringUtils
;
...
...
@@ -134,11 +135,17 @@ public class KmesBoardServiceImpl extends BaseEditServiceImpl implements KmesBoa
for
(
Date
date
:
dateList
){
GpfkHgVO
gpfkHgVO
=
new
GpfkHgVO
();
List
<
Gpfk
>
gpfks
=
gpfkcxDao
.
queryGpfk
(
date
,
gxbzs
);
Double
fksl
=
gpfks
.
stream
().
mapToDouble
(
Gpfk:
:
getFksl
).
sum
();
Double
hgsl
=
gpfks
.
stream
().
mapToDouble
(
Gpfk:
:
getHgsl
).
sum
();
gpfkHgVO
.
setFkrq
(
date
);
gpfkHgVO
.
setFksl
(
fksl
);
gpfkHgVO
.
setHgsl
(
hgsl
);
Integer
fksl
=
0
;
Double
hgsl
=
0.0
;
if
(
CollectionUtils
.
isNotEmpty
(
gpfks
)){
fksl
=
gpfks
.
size
();
hgsl
=
gpfks
.
stream
().
mapToDouble
(
Gpfk:
:
getHgsl
).
sum
();
gpfkHgVO
.
setFksl
(
fksl
);
gpfkHgVO
.
setHgsl
(
hgsl
);
}
else
{
gpfkHgVO
.
setFksl
(
fksl
);
gpfkHgVO
.
setHgsl
(
hgsl
);
}
gpfkHgVOList
.
add
(
gpfkHgVO
);
}
return
gpfkHgVOList
;
...
...
gavel/src/main/java/com/gavel/kwell/vo/GpfkHgVO.java
View file @
a6144923
...
...
@@ -9,7 +9,7 @@ public class GpfkHgVO extends BaseEntity {
private
Date
fkrq
;
private
Double
fksl
;
//反馈数量
private
Integer
fksl
;
//反馈数量
private
Double
hgsl
;
//合格数量
...
...
@@ -21,11 +21,11 @@ public class GpfkHgVO extends BaseEntity {
this
.
fkrq
=
fkrq
;
}
public
Double
getFksl
()
{
public
Integer
getFksl
()
{
return
fksl
;
}
public
void
setFksl
(
Double
fksl
)
{
public
void
setFksl
(
Integer
fksl
)
{
this
.
fksl
=
fksl
;
}
...
...
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