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
a6da8cca
Commit
a6da8cca
authored
Mar 23, 2022
by
zhoumaotao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
大屏代码调整
parent
68c26e11
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
8 deletions
+9
-8
KmesBoardDaoImpl.java
.../main/java/com/gavel/kwell/dao/impl/KmesBoardDaoImpl.java
+9
-8
No files found.
gavel/src/main/java/com/gavel/kwell/dao/impl/KmesBoardDaoImpl.java
View file @
a6da8cca
...
...
@@ -54,14 +54,15 @@ public class KmesBoardDaoImpl extends BaseDaoImpl implements KmesBoardDao {
@Override
public
List
<
UWoVO
>
queryWo
()
{
SqlMap
sqlMap
=
new
SqlMap
();
sqlMap
.
append
(
"select WO_ID,WO_DJID,WO_GCID,WO_YWRQ,WO_WLID,WO_XQSL,WO_WGSL, "
);
sqlMap
.
append
(
" isnull(A.PCJHMX_JHSL,0) as WO_PCSL,WLXX_CODE,WLXX_NAME,WLXX_GG "
);
sqlMap
.
append
(
"from WO "
);
sqlMap
.
append
(
" left join (select PCJHMX_WOID,sum(PCJHMX_JHSL) as PCJHMX_JHSL "
);
sqlMap
.
append
(
" from PCJHMX group by PCJHMX_WOID) A on A.PCJHMX_WOID = WO_ID "
);
sqlMap
.
append
(
" left join WLXX on WLXX_ID = WO_WLID "
);
sqlMap
.
append
(
"where abs(WO_WGSL) - abs(WO_XQSL) < 0 "
);
sqlMap
.
append
(
"order by WO_YWRQ desc,WO_DJID desc "
);
sqlMap
.
append
(
"select PCJHMX_WOID as WO_ID,PCJHMX_JHSL as WO_PCSL,WO_DJID, "
);
sqlMap
.
append
(
" PCJHMX_WGSL as WO_WGSL,WO_WLID,WLXX_CODE,WLXX_NAME,WLXX_GG,WO_YWRQ"
);
sqlMap
.
append
(
"from PCJHMX "
);
sqlMap
.
append
(
" left join WO on WO_ID = PCJHMX_WOID "
);
sqlMap
.
append
(
" left join WLXX on WLXX_ID = PCJHMX_WLID "
);
sqlMap
.
append
(
"where 1=1 and ( :ksrq <= PCJHMX_JHRQ and PCJHMX_JHRQ <= :jsrq ) "
);
sqlMap
.
setParamValue
(
"ksrq"
,
DateUtils
.
beginOfDay
(
DateUtils
.
getDateTime
()));
sqlMap
.
setParamValue
(
"jsrq"
,
DateUtils
.
endOfDay
(
DateUtils
.
getDateTime
()));
sqlMap
.
append
(
"order by PCJHMX_JHRQ desc "
);
return
sqlMap
.
query
(
UWoVO
.
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