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
7f1a401f
Commit
7f1a401f
authored
Mar 28, 2022
by
zhoumaotao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码调整4
parent
e60b639b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
KmesBoardDaoImpl.java
.../main/java/com/gavel/kwell/dao/impl/KmesBoardDaoImpl.java
+9
-9
No files found.
gavel/src/main/java/com/gavel/kwell/dao/impl/KmesBoardDaoImpl.java
View file @
7f1a401f
...
...
@@ -35,8 +35,8 @@ public class KmesBoardDaoImpl extends BaseDaoImpl implements KmesBoardDao {
sqlMap
.
append
(
"select sum(PCJHMX_JHSL) as JHSL,0 as WGSL "
);
sqlMap
.
append
(
"from PCJHMX "
);
sqlMap
.
append
(
"where 1=1 and ( :pKsrq <= PCJHMX_JHRQ and U_PCJHMX_JSRQ <= :pJsrq ) "
);
sqlMap
.
append
(
" or (
:pKsrq < PCJHMX_JHRQ and PCJHMX_JHRQ < :pJ
srq ) "
);
sqlMap
.
append
(
" or (
:pKsrq < U_PCJHMX_JSRQ and U_PCJHMX_JSRQ <
:pJsrq ) "
);
sqlMap
.
append
(
" or (
PCJHMX_JHRQ < :pKsrq and U_PCJHMX_JSRQ > :pK
srq ) "
);
sqlMap
.
append
(
" or (
PCJHMX_JHRQ < :pJsrq and U_PCJHMX_JSRQ >
:pJsrq ) "
);
sqlMap
.
setParamValue
(
"pKsrq"
,
DateUtils
.
beginOfDay
(
DateUtils
.
getCurrentWeekDateBegin
(
date
)));
sqlMap
.
setParamValue
(
"pJsrq"
,
DateUtils
.
endOfDay
(
DateUtils
.
getCurrentWeekDateEnd
(
date
)));
return
sqlMap
.
queryEntity
(
PcslVO
.
class
);
...
...
@@ -48,10 +48,10 @@ public class KmesBoardDaoImpl extends BaseDaoImpl implements KmesBoardDao {
sqlMap
.
append
(
"select sum(PCJHMX_JHSL) as JHSL,0 as WGSL "
);
sqlMap
.
append
(
"from PCJHMX "
);
sqlMap
.
append
(
"where 1=1 and ( :pKsrq <= PCJHMX_JHRQ and U_PCJHMX_JSRQ <= :pJsrq ) "
);
sqlMap
.
append
(
" or (
:pKsrq < PCJHMX_JHRQ and PCJHMX_JHRQ < :pJ
srq ) "
);
sqlMap
.
append
(
" or (
:pKsrq < U_PCJHMX_JSRQ and U_PCJHMX_JSRQ <
:pJsrq ) "
);
sqlMap
.
setParamValue
(
"pKsrq"
,
DateUtils
.
beginOfMonth
(
DateUtils
.
getCurrentQuarterDateBegin
(
date
)
));
sqlMap
.
setParamValue
(
"pJsrq"
,
DateUtils
.
endOfMonth
(
DateUtils
.
getCurrentQuarterDateEnd
(
date
)
));
sqlMap
.
append
(
" or (
PCJHMX_JHRQ < :pKsrq and U_PCJHMX_JSRQ > :pK
srq ) "
);
sqlMap
.
append
(
" or (
PCJHMX_JHRQ < :pJsrq and U_PCJHMX_JSRQ >
:pJsrq ) "
);
sqlMap
.
setParamValue
(
"pKsrq"
,
DateUtils
.
beginOfMonth
(
date
));
sqlMap
.
setParamValue
(
"pJsrq"
,
DateUtils
.
endOfMonth
(
date
));
return
sqlMap
.
queryEntity
(
PcslVO
.
class
);
}
...
...
@@ -63,9 +63,9 @@ public class KmesBoardDaoImpl extends BaseDaoImpl implements KmesBoardDao {
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 ( :pKsrq <= PCJHMX_JHRQ and U_PCJHMX_JSRQ <= :pJsrq ) "
);
sqlMap
.
append
(
" or (
:pKsrq < PCJHMX_JHRQ and PCJHMX_JHRQ < :pJ
srq ) "
);
sqlMap
.
append
(
" or (
:pKsrq < U_PCJHMX_JSRQ 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 > :pK
srq ) "
);
sqlMap
.
append
(
" or (
PCJHMX_JHRQ < :pJsrq and U_PCJHMX_JSRQ >
:pJsrq ) "
);
sqlMap
.
setParamValue
(
"pKsrq"
,
DateUtils
.
beginOfDay
(
DateUtils
.
getCurrentWeekDateBegin
(
date
)));
sqlMap
.
setParamValue
(
"pJsrq"
,
DateUtils
.
endOfDay
(
DateUtils
.
getCurrentWeekDateBegin
(
date
)));
sqlMap
.
append
(
"group by PCJHMX_WOID,WO_DJID,WO_WLID,WLXX_CODE,WLXX_NAME,WLXX_GG,WO_YWRQ "
);
...
...
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