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
63cc5851
Commit
63cc5851
authored
Mar 17, 2022
by
李苏
💬
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of gitlab.gavelinfo.com:gavelinfo/kwell-mes
parents
f08447ea
a6144923
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
10 deletions
+19
-10
GpfkcxDaoImpl.java
...src/main/java/com/gavel/kwell/dao/impl/GpfkcxDaoImpl.java
+2
-1
KmesBoardServiceImpl.java
...va/com/gavel/kwell/service/impl/KmesBoardServiceImpl.java
+12
-5
KwellParamEnum.java
...l/src/main/java/com/gavel/kwell/utils/KwellParamEnum.java
+2
-1
GpfkHgVO.java
gavel/src/main/java/com/gavel/kwell/vo/GpfkHgVO.java
+3
-3
No files found.
gavel/src/main/java/com/gavel/kwell/dao/impl/GpfkcxDaoImpl.java
View file @
63cc5851
...
...
@@ -140,8 +140,9 @@ public class GpfkcxDaoImpl extends BaseDaoImpl implements GpfkcxDao {
sqlMap
.
append
(
" GPFK_LFSL,WOGYLX_GXBZ "
);
sqlMap
.
append
(
"from GPFK "
);
sqlMap
.
append
(
" left join WOGYLX on WOGYLX_ID = GPFK_WOGYLX "
);
sqlMap
.
append
(
" left join BZGX on BZGX_ID = WOGYLX_BZGXID "
);
sqlMap
.
append
(
"where ( GPFK_FKSJ >= :pKsrq and GPFK_FKSJ < :pJsrq ) "
);
sqlMap
.
append
(
" and "
).
append
(
"WOGYLX_
GXBZ
"
,
gxbzs
);
sqlMap
.
append
(
" and "
).
append
(
"WOGYLX_
BZGXID
"
,
gxbzs
);
sqlMap
.
setParamValue
(
"pKsrq"
,
DateUtils
.
beginOfDay
(
date
));
sqlMap
.
setParamValue
(
"pJsrq"
,
DateUtils
.
endOfDay
(
date
));
return
sqlMap
.
query
(
Gpfk
.
class
);
...
...
gavel/src/main/java/com/gavel/kwell/service/impl/KmesBoardServiceImpl.java
View file @
63cc5851
...
...
@@ -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/utils/KwellParamEnum.java
View file @
63cc5851
...
...
@@ -9,7 +9,8 @@ import java.util.List;
@GavelParams
(
"901000000"
)
public
enum
KwellParamEnum
{
DASHBOARD_HGL
(
"KWELL001"
,
"合格率按生产工序标志设置"
,
"B"
,
"合格率按生产工序标志设置"
,
"E"
,
"S:首工序;Z:中间工序;M:末工序;D:单道工序"
,
"S"
,
"首工序"
),
DASHBOARD_HGL
(
"KWELL001"
,
"合格率按检验工序设置"
,
"B"
,
"合格率按检验工序设置"
,
"E"
,
"select BZGX_ID as ID, BZGX_CODE as CODE,CONCAT(BZGX_NAME,'--',isnull(GZZX_NAME,'')) as NAME from BZGX left join GZZX on GZZX_ID = BZGX_GZZXID where isnull(BZGX_TYBZ,'N')='N' and BZGX_GXLX = 'JY' order by BZGX_CODE"
,
""
,
""
),
DASHBORAD_PDF
(
"PDF"
,
"配置大屏看板PDF文件路径"
,
"B"
,
"配置大屏看板PDF文件路径"
,
"S"
,
""
,
"D:\\projectinfo\\kwell-mes\\gavel\\src\\main\\resources\\static\\pdf\\dashboard.pdf"
,
""
),
DASHBORAD_VIDEO
(
"VIDEO"
,
"配置大屏看板视频路径"
,
"B"
,
"配置大屏看板视频路径"
,
"S"
,
""
,
"D:\\projectinfo\\kwell-mes\\gavel\\src\\main\\resources\\static\\video\\dashboard.mp4"
,
""
);
...
...
gavel/src/main/java/com/gavel/kwell/vo/GpfkHgVO.java
View file @
63cc5851
...
...
@@ -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