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
b981eef2
Commit
b981eef2
authored
Jun 20, 2023
by
yff
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交修改
parent
c1cf1588
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
8 deletions
+10
-8
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
+5
-4
KmesBoardServiceImpl.java
...va/com/gavel/kwell/service/impl/KmesBoardServiceImpl.java
+4
-3
No files found.
gavel/src/main/java/com/gavel/kwell/dao/GpfkcxDao.java
View file @
b981eef2
...
...
@@ -24,7 +24,7 @@ public interface GpfkcxDao extends BaseDao {
public
List
<
Gpfkjg
>
queryGpfk
(
Date
date
,
String
[]
gxbzs
);
public
List
<
Gpfk
jg
>
queryGpfkForFirstJY
(
Date
date
,
String
[]
gxbzs
);
public
List
<
Gpfk
>
queryGpfkForFirstJY
(
Date
date
,
String
[]
gxbzs
);
public
Gpfkjg
queryWeekGpfk
(
Date
date
,
String
woid
);
...
...
gavel/src/main/java/com/gavel/kwell/dao/impl/GpfkcxDaoImpl.java
View file @
b981eef2
...
...
@@ -150,7 +150,7 @@ public class GpfkcxDaoImpl extends BaseDaoImpl implements GpfkcxDao {
}
@Override
public
List
<
Gpfk
jg
>
queryGpfkForFirstJY
(
Date
date
,
String
[]
gxbzs
)
{
public
List
<
Gpfk
>
queryGpfkForFirstJY
(
Date
date
,
String
[]
gxbzs
)
{
SqlMap
sqlMap
=
new
SqlMap
();
sqlMap
.
append
(
" select c.WOGYLX_BZGXID, b.GPFK_WOSNID, b.GPFK_FKLX, b.GPFK_FKGX, "
);
sqlMap
.
append
(
" b.GPFK_FKSJ, b.GPFK_FKR, b.GPFK_FKRID, b.GPFK_FKBX, "
);
...
...
@@ -161,17 +161,18 @@ public class GpfkcxDaoImpl extends BaseDaoImpl implements GpfkcxDao {
sqlMap
.
append
(
" select MIN(d.GPFK_FKSJ) as fksj,e.WOGYLX_BZGXID,e.WOGYLX_ID,d.GPFK_WOSNID "
);
sqlMap
.
append
(
" FROM GPFK d left join WOGYLX e "
);
sqlMap
.
append
(
" on e.WOGYLX_ID = d.GPFK_FKGX "
);
sqlMap
.
append
(
" where 1=1 "
);
sqlMap
.
append
(
" and "
).
append
(
"e.WOGYLX_BZGXID"
,
gxbzs
);
sqlMap
.
append
(
" and ( d.GPFK_FKSJ >= :pKsrq and d.GPFK_FKSJ < :pJsrq ) "
);
sqlMap
.
append
(
" GROUP BY e.WOGYLX_BZGXID,e.WOGYLX_ID,d.GPFK_WOSNID "
);
sqlMap
.
append
(
" HAVING 1=1 "
);
sqlMap
.
append
(
" and "
).
append
(
"e.WOGYLX_BZGXID"
,
gxbzs
);
sqlMap
.
append
(
" and ( fksj >= :pKsrq and fksj < :pJsrq ) "
);
sqlMap
.
append
(
" ) a "
);
sqlMap
.
append
(
" on b.GPFK_WOSNID =a.GPFK_WOSNID and b.GPFK_FKSJ= a.fksj "
);
sqlMap
.
append
(
" where 1=1 "
);
sqlMap
.
append
(
" and c.WOGYLX_BZGXID = a.WOGYLX_BZGXID and c.wogylx_id = a.wogylx_id "
);
sqlMap
.
setParamValue
(
"pKsrq"
,
DateUtils
.
beginOfDay
(
date
));
sqlMap
.
setParamValue
(
"pJsrq"
,
DateUtils
.
endOfDay
(
date
));
return
sqlMap
.
query
(
Gpfk
jg
.
class
);
return
sqlMap
.
query
(
Gpfk
.
class
);
}
@Override
...
...
gavel/src/main/java/com/gavel/kwell/service/impl/KmesBoardServiceImpl.java
View file @
b981eef2
...
...
@@ -10,6 +10,7 @@ import com.gavel.common.utils.NumberUtils;
import
com.gavel.common.utils.StringUtils
;
import
com.gavel.kwell.dao.GpfkcxDao
;
import
com.gavel.kwell.dao.KmesBoardDao
;
import
com.gavel.kwell.persistent.Gpfk
;
import
com.gavel.kwell.persistent.Gpfkjg
;
import
com.gavel.kwell.service.KmesBoardService
;
import
com.gavel.kwell.utils.DateCalculateUtil
;
...
...
@@ -172,12 +173,12 @@ public class KmesBoardServiceImpl extends BaseEditServiceImpl implements KmesBoa
String
[]
gxbzs
=
gxbz
.
split
(
","
);
for
(
Date
date
:
dateList
){
GpfkHgVO
gpfkHgVO
=
new
GpfkHgVO
();
List
<
Gpfk
jg
>
gpfks
=
gpfkcxDao
.
queryGpfkForFirstJY
(
date
,
gxbzs
);
List
<
Gpfk
>
gpfks
=
gpfkcxDao
.
queryGpfkForFirstJY
(
date
,
gxbzs
);
Double
fksl
=
0.0
;
Double
hgsl
=
0.0
;
if
(
CollectionUtils
.
isNotEmpty
(
gpfks
)){
fksl
=
gpfks
.
stream
().
mapToDouble
(
Gpfk
jg
:
:
getFksl
).
sum
();
hgsl
=
gpfks
.
stream
().
mapToDouble
(
Gpfk
jg
:
:
getHgsl
).
sum
();
fksl
=
gpfks
.
stream
().
mapToDouble
(
Gpfk:
:
getFksl
).
sum
();
hgsl
=
gpfks
.
stream
().
mapToDouble
(
Gpfk:
:
getHgsl
).
sum
();
gpfkHgVO
.
setFksl
(
fksl
);
gpfkHgVO
.
setHgsl
(
hgsl
);
}
else
{
...
...
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