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
0e083c72
Commit
0e083c72
authored
Mar 16, 2022
by
zhoumaotao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
参数设置
parent
96bc9d00
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
6 deletions
+9
-6
GpfkcxDao.java
gavel/src/main/java/com/gavel/kwell/dao/GpfkcxDao.java
+1
-1
GpfkcxDaoImpl.java
...src/main/java/com/gavel/kwell/dao/impl/GpfkcxDaoImpl.java
+3
-3
KmesBoardServiceImpl.java
...va/com/gavel/kwell/service/impl/KmesBoardServiceImpl.java
+3
-1
KwellParamEnum.java
...l/src/main/java/com/gavel/kwell/utils/KwellParamEnum.java
+2
-1
No files found.
gavel/src/main/java/com/gavel/kwell/dao/GpfkcxDao.java
View file @
0e083c72
...
...
@@ -21,5 +21,5 @@ public interface GpfkcxDao extends BaseDao {
public
List
<
Gpfk
>
queryByBetween
(
Date
start
,
Date
end
);
public
List
<
Gpfk
>
queryGpfk
(
Date
date
);
public
List
<
Gpfk
>
queryGpfk
(
Date
date
,
String
[]
gxbzs
);
}
gavel/src/main/java/com/gavel/kwell/dao/impl/GpfkcxDaoImpl.java
View file @
0e083c72
...
...
@@ -132,7 +132,7 @@ public class GpfkcxDaoImpl extends BaseDaoImpl implements GpfkcxDao {
}
@Override
public
List
<
Gpfk
>
queryGpfk
(
Date
date
)
{
public
List
<
Gpfk
>
queryGpfk
(
Date
date
,
String
[]
gxbzs
)
{
SqlMap
sqlMap
=
new
SqlMap
();
sqlMap
.
append
(
"select GPFK_ID, GPFK_WOSNID, GPFK_FKLX, GPFK_FKGX, "
);
sqlMap
.
append
(
" GPFK_FKSJ,GPFK_FKR,GPFK_FKRID, GPFK_FKBX, GPFK_FKJSSJ,"
);
...
...
@@ -140,10 +140,10 @@ 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
(
"where (GPFK_FKSJ >= :pKsrq and GPFK_FKSJ < :pJsrq) and WOGYLX_GXBZ = :pGxbz "
);
//[a,b)
sqlMap
.
append
(
"where ( GPFK_FKSJ >= :pKsrq and GPFK_FKSJ < :pJsrq ) "
);
sqlMap
.
append
(
" and "
).
append
(
"WOGYLX_GXBZ"
,
gxbzs
);
sqlMap
.
setParamValue
(
"pKsrq"
,
DateUtils
.
beginOfDay
(
date
));
sqlMap
.
setParamValue
(
"pJsrq"
,
DateUtils
.
endOfDay
(
date
));
sqlMap
.
setParamValue
(
"pGxbz"
,
GxlxGxbzEnum
.
FIRST
.
getId
());
return
sqlMap
.
query
(
Gpfk
.
class
);
}
}
...
...
gavel/src/main/java/com/gavel/kwell/service/impl/KmesBoardServiceImpl.java
View file @
0e083c72
...
...
@@ -129,9 +129,11 @@ public class KmesBoardServiceImpl extends BaseEditServiceImpl implements KmesBoa
Date
endDate
=
DateUtils
.
calcDate
(
DateUtils
.
getDate
(),
0
,
0
,-
1
,
0
,
0
,
0
);
List
<
Date
>
dateList
=
DateCalculateUtil
.
findDates
(
"D"
,
beginDate
,
endDate
);
List
<
GpfkHgVO
>
gpfkHgVOList
=
new
ArrayList
<>();
String
gxbz
=
commonService
.
getStringOptionValue
(
KwellParamEnum
.
DASHBOARD_HGL
.
getId
());
String
[]
gxbzs
=
gxbz
.
split
(
","
);
for
(
Date
date
:
dateList
){
GpfkHgVO
gpfkHgVO
=
new
GpfkHgVO
();
List
<
Gpfk
>
gpfks
=
gpfkcxDao
.
queryGpfk
(
date
);
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
);
...
...
gavel/src/main/java/com/gavel/kwell/utils/KwellParamEnum.java
View file @
0e083c72
...
...
@@ -9,7 +9,8 @@ import java.util.List;
@GavelParams
(
"901000000"
)
public
enum
KwellParamEnum
{
DASHBORAD_PDF
(
"PDF"
,
"配置大屏看板PDF文件路径"
,
"B"
,
"配置大屏看板PDF文件路径"
,
"S"
,
""
,
"D:\\projectinfo\\kwell-mes\\gavel\\src\\main\\resources\\static\\pdf\\dashboard.pdf"
,
""
),
DASHBOARD_HGL
(
"KWELL001"
,
"合格率按生产工序标志设置"
,
"B"
,
"合格率按生产工序标志设置"
,
"E"
,
"S:首工序;Z:中间工序;M:末工序;D:单道工序"
,
"S"
,
"首工序"
),
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"
,
""
);
private
String
id
;
// 参数ID
...
...
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