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
699d0769
Commit
699d0769
authored
Jul 17, 2023
by
yff
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交修改
parent
b769f8ce
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
6 deletions
+9
-6
KmesBoardDaoImpl.java
.../main/java/com/gavel/kwell/dao/impl/KmesBoardDaoImpl.java
+4
-2
KmesBoardServiceImpl.java
...va/com/gavel/kwell/service/impl/KmesBoardServiceImpl.java
+5
-4
No files found.
gavel/src/main/java/com/gavel/kwell/dao/impl/KmesBoardDaoImpl.java
View file @
699d0769
...
@@ -54,19 +54,21 @@ public class KmesBoardDaoImpl extends BaseDaoImpl implements KmesBoardDao {
...
@@ -54,19 +54,21 @@ public class KmesBoardDaoImpl extends BaseDaoImpl implements KmesBoardDao {
sqlMap.setParamValue("pKsrq", DateUtils.beginOfMonth(date));
sqlMap.setParamValue("pKsrq", DateUtils.beginOfMonth(date));
sqlMap.setParamValue("pJsrq", DateUtils.endOfMonth(date));*/
sqlMap.setParamValue("pJsrq", DateUtils.endOfMonth(date));*/
//李哥说,这里要查询WO
//李哥说,这里要查询WO
sqlMap
.
append
(
"select sum(WO_XQSL) as JHSL "
);
sqlMap
.
append
(
"select sum(WO_XQSL) as JHSL
,sum(WO_WGSL) AS WGSL
"
);
sqlMap
.
append
(
"from WO "
);
sqlMap
.
append
(
"from WO "
);
sqlMap
.
append
(
"where WO_YWRQ >= :pKsrq and WO_YWRQ <= :pJsrq"
);
sqlMap
.
append
(
"where WO_YWRQ >= :pKsrq and WO_YWRQ <= :pJsrq"
);
sqlMap
.
setParamValue
(
"pKsrq"
,
DateUtils
.
beginOfMonth
(
date
));
sqlMap
.
setParamValue
(
"pKsrq"
,
DateUtils
.
beginOfMonth
(
date
));
sqlMap
.
setParamValue
(
"pJsrq"
,
DateUtils
.
endOfMonth
(
date
));
sqlMap
.
setParamValue
(
"pJsrq"
,
DateUtils
.
endOfMonth
(
date
));
return
sqlMap
.
queryEntity
(
PcslVO
.
class
);
return
sqlMap
.
queryEntity
(
PcslVO
.
class
);
}
}
@Override
@Override
public
List
<
UWoVO
>
queryWo
(
Date
date
)
{
public
List
<
UWoVO
>
queryWo
(
Date
date
)
{
SqlMap
sqlMap
=
new
SqlMap
();
SqlMap
sqlMap
=
new
SqlMap
();
sqlMap
.
append
(
"select PCJHMX_WOID as WO_ID,WO_DJID, WO_WLID,WLXX_CODE,WLXX_NAME,WLXX_GG,WO_YWRQ, "
);
sqlMap
.
append
(
"select PCJHMX_WOID as WO_ID,WO_DJID, WO_WLID,WLXX_CODE,WLXX_NAME,WLXX_GG,WO_YWRQ, "
);
sqlMap
.
append
(
" sum(PCJHMX_JHSL) as WO_PCSL,0 as WO_WGSL "
);
sqlMap
.
append
(
" (WO_XQSL-WO_WGSL) as WO_PCSL,WO_WGSL "
);
//sqlMap.append(" sum(PCJHMX_JHSL) as WO_PCSL,0 as WO_WGSL ");
sqlMap
.
append
(
"from PCJHMX "
);
sqlMap
.
append
(
"from PCJHMX "
);
sqlMap
.
append
(
" left join WO on WO_ID = PCJHMX_WOID "
);
sqlMap
.
append
(
" left join WO on WO_ID = PCJHMX_WOID "
);
sqlMap
.
append
(
" left join WLXX on WLXX_ID = PCJHMX_WLID "
);
sqlMap
.
append
(
" left join WLXX on WLXX_ID = PCJHMX_WLID "
);
...
...
gavel/src/main/java/com/gavel/kwell/service/impl/KmesBoardServiceImpl.java
View file @
699d0769
...
@@ -138,11 +138,12 @@ public class KmesBoardServiceImpl extends BaseEditServiceImpl implements KmesBoa
...
@@ -138,11 +138,12 @@ public class KmesBoardServiceImpl extends BaseEditServiceImpl implements KmesBoa
if
(
pcslVO
==
null
){
if
(
pcslVO
==
null
){
pcslVO
=
new
PcslVO
();
pcslVO
=
new
PcslVO
();
pcslVO
.
setJhsl
(
0.0
);
pcslVO
.
setJhsl
(
0.0
);
pcslVO
.
setWgsl
(
0.0
);
}
}
Gpfkjg
gpfkjg
=
gpfkcxDao
.
queryMonthGpfk
(
new
Date
());
//
Gpfkjg gpfkjg = gpfkcxDao.queryMonthGpfk(new Date());
if
(
gpfkjg
!=
null
){
//
if(gpfkjg != null){
pcslVO
.
setWgsl
(
gpfkjg
.
getFksl
()==
null
?
0.0
:
gpfkjg
.
getFksl
());
//
pcslVO.setWgsl(gpfkjg.getFksl()==null?0.0:gpfkjg.getFksl());
}
//
}
return
pcslVO
;
return
pcslVO
;
}
}
...
...
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