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
dab49e28
Commit
dab49e28
authored
Jun 19, 2023
by
周毅
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
李哥说,大屏查询月计划要查询生产订单
parent
c1cf1588
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
KmesBoardDaoImpl.java
.../main/java/com/gavel/kwell/dao/impl/KmesBoardDaoImpl.java
+7
-1
No files found.
gavel/src/main/java/com/gavel/kwell/dao/impl/KmesBoardDaoImpl.java
View file @
dab49e28
...
@@ -46,12 +46,18 @@ public class KmesBoardDaoImpl extends BaseDaoImpl implements KmesBoardDao {
...
@@ -46,12 +46,18 @@ public class KmesBoardDaoImpl extends BaseDaoImpl implements KmesBoardDao {
@Override
@Override
public
PcslVO
queryMonthPcsl
(
Date
date
)
{
public
PcslVO
queryMonthPcsl
(
Date
date
)
{
SqlMap
sqlMap
=
new
SqlMap
();
SqlMap
sqlMap
=
new
SqlMap
();
sqlMap
.
append
(
"select sum(PCJHMX_JHSL) as JHSL "
);
/*
sqlMap.append("select sum(PCJHMX_JHSL) as JHSL ");
sqlMap.append("from PCJHMX ");
sqlMap.append("from PCJHMX ");
sqlMap.append("where 1=1 and ( :pKsrq <= PCJHMX_JHRQ and U_PCJHMX_JSRQ <= :pJsrq ) ");
sqlMap.append("where 1=1 and ( :pKsrq <= PCJHMX_JHRQ and U_PCJHMX_JSRQ <= :pJsrq ) ");
sqlMap.append(" or ( PCJHMX_JHRQ < :pKsrq and U_PCJHMX_JSRQ > :pKsrq ) ");
sqlMap.append(" or ( PCJHMX_JHRQ < :pKsrq and U_PCJHMX_JSRQ > :pKsrq ) ");
sqlMap.append(" or ( PCJHMX_JHRQ < :pJsrq and U_PCJHMX_JSRQ > :pJsrq ) ");
sqlMap.append(" or ( PCJHMX_JHRQ < :pJsrq and U_PCJHMX_JSRQ > :pJsrq ) ");
sqlMap.setParamValue("pKsrq", DateUtils.beginOfMonth(date));
sqlMap.setParamValue("pKsrq", DateUtils.beginOfMonth(date));
sqlMap.setParamValue("pJsrq", DateUtils.endOfMonth(date));*/
//李哥说,这里要查询WO
sqlMap
.
append
(
"select sum(WO_XQSL) as JHSL "
);
sqlMap
.
append
(
"from WO "
);
sqlMap
.
append
(
"where WO_YWRQ >= :pKsrq and WO_YWRQ <= :pJsrq"
);
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
);
}
}
...
...
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