Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hp-smart
Overview
Overview
Details
Activity
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
platform
hp-smart
Commits
397a1ce5
Commit
397a1ce5
authored
Apr 09, 2024
by
liuyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2024-04-08 报工管理功能调整
parent
d3b8eafd
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
0 deletions
+17
-0
ServiceHPSC010.java
.../java/com/baosight/hpjx/hp/sc/service/ServiceHPSC010.java
+11
-0
HPSC010.xml
src/main/java/com/baosight/hpjx/hp/sc/sql/HPSC010.xml
+6
-0
No files found.
src/main/java/com/baosight/hpjx/hp/sc/service/ServiceHPSC010.java
View file @
397a1ce5
...
@@ -8,6 +8,7 @@ import com.baosight.hpjx.hp.sc.domain.HPSC009;
...
@@ -8,6 +8,7 @@ import com.baosight.hpjx.hp.sc.domain.HPSC009;
import
com.baosight.hpjx.hp.sc.domain.HPSC010
;
import
com.baosight.hpjx.hp.sc.domain.HPSC010
;
import
com.baosight.hpjx.util.CommonMethod
;
import
com.baosight.hpjx.util.CommonMethod
;
import
com.baosight.hpjx.util.ErrorCodeUtils
;
import
com.baosight.hpjx.util.ErrorCodeUtils
;
import
com.baosight.hpjx.util.StringUtil
;
import
com.baosight.hpjx.util.contants.ACConstants
;
import
com.baosight.hpjx.util.contants.ACConstants
;
import
com.baosight.iplat4j.core.ei.EiBlock
;
import
com.baosight.iplat4j.core.ei.EiBlock
;
import
com.baosight.iplat4j.core.ei.EiConstant
;
import
com.baosight.iplat4j.core.ei.EiConstant
;
...
@@ -39,6 +40,16 @@ public class ServiceHPSC010 extends ServiceEPBase {
...
@@ -39,6 +40,16 @@ public class ServiceHPSC010 extends ServiceEPBase {
@Override
@Override
public
EiInfo
query
(
EiInfo
inInfo
)
{
public
EiInfo
query
(
EiInfo
inInfo
)
{
EiBlock
block
=
inInfo
.
getBlock
(
EiConstant
.
queryBlock
);
String
startDate
=
block
.
getCellStr
(
ACConstants
.
ROW_CODE_0
,
"createdDateFrom"
);
String
endDate
=
block
.
getCellStr
(
ACConstants
.
ROW_CODE_0
,
"createdDateTo"
);
if
(!
endDate
.
isEmpty
())
{
inInfo
.
setCell
(
EiConstant
.
queryBlock
,
ACConstants
.
ROW_CODE_0
,
"createdDateTo"
,
StringUtil
.
removeHorizontalLine
(
endDate
));
}
if
(!
startDate
.
isEmpty
())
{
inInfo
.
setCell
(
EiConstant
.
queryBlock
,
ACConstants
.
ROW_CODE_0
,
"createdDateFrom"
,
StringUtil
.
removeHorizontalLine
(
startDate
));
}
inInfo
.
setCell
(
EiConstant
.
queryBlock
,
ACConstants
.
ROW_CODE_0
,
HPSC008
.
FIELD_DELETE_FLAG
,
CommonConstant
.
YesNo
.
NO_0
);
return
super
.
query
(
inInfo
,
HPSC010
.
QUERY
,
new
HPSC010
());
return
super
.
query
(
inInfo
,
HPSC010
.
QUERY
,
new
HPSC010
());
}
}
...
...
src/main/java/com/baosight/hpjx/hp/sc/sql/HPSC010.xml
View file @
397a1ce5
...
@@ -73,6 +73,12 @@
...
@@ -73,6 +73,12 @@
<isNotEmpty
prepend=
" AND "
property=
"userCount"
>
<isNotEmpty
prepend=
" AND "
property=
"userCount"
>
USER_COUNT = #userCount#
USER_COUNT = #userCount#
</isNotEmpty>
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"createdDateFrom"
>
REGISTER_DATE >= #createdDateFrom#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"createdDateTo"
>
REGISTER_DATE
<
= #createdDateTo#
</isNotEmpty>
</sql>
</sql>
<select
id=
"query"
parameterClass=
"java.util.HashMap"
<select
id=
"query"
parameterClass=
"java.util.HashMap"
...
...
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