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
7c2ee073
Commit
7c2ee073
authored
Apr 02, 2024
by
wancheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
报屏优化
parent
e95c9a5e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
1 deletions
+30
-1
ServiceHPSC008.java
.../java/com/baosight/hpjx/hp/sc/service/ServiceHPSC008.java
+18
-0
HPSC008.xml
src/main/java/com/baosight/hpjx/hp/sc/sql/HPSC008.xml
+12
-1
No files found.
src/main/java/com/baosight/hpjx/hp/sc/service/ServiceHPSC008.java
View file @
7c2ee073
...
...
@@ -20,6 +20,7 @@ import com.baosight.iplat4j.core.service.impl.ServiceEPBase;
import
java.util.Arrays
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
/**
...
...
@@ -184,4 +185,21 @@ public class ServiceHPSC008 extends ServiceEPBase {
}});
return
inInfo
;
}
public
EiInfo
queryMaxDate
(
EiInfo
inInfo
)
{
String
companyCode
=
UserSessionUtils
.
getCompanyCode
();
Map
sqlMap
=
new
HashMap
();
sqlMap
.
put
(
"companyCode"
,
companyCode
);
List
<
Map
>
result
=
this
.
dao
.
query
(
"HPSC008.queryMaxDate"
,
sqlMap
);
String
registerDate
=
(
String
)
result
.
get
(
0
).
get
(
"registerDate"
);
registerDate
=
registerDate
.
substring
(
0
,
4
)+
"-"
+
registerDate
.
substring
(
4
,
6
)+
"-"
+
registerDate
.
substring
(
6
,
8
);
inInfo
.
set
(
"registerDate"
,
registerDate
);
inInfo
.
setStatus
(
EiConstant
.
STATUS_DEFAULT
);
return
inInfo
;
}
}
src/main/java/com/baosight/hpjx/hp/sc/sql/HPSC008.xml
View file @
7c2ee073
...
...
@@ -450,7 +450,18 @@
CREATED_TIME desc
</isEmpty>
</dynamic>
</select>
<select
id=
"queryMaxDate"
parameterClass=
"java.util.HashMap"
resultClass=
"java.util.HashMap"
>
SELECT
MAX(REGISTER_DATE) as "registerDate"
<!-- 最新登记日期 -->
FROM ${hpjxSchema}.T_HPXS001
WHERE 1=1 AND DELETE_FLAG = 0
<isNotEmpty
prepend=
" AND "
property=
"companyCode"
>
COMPANY_CODE = #companyCode#
</isNotEmpty>
<!-- <isNotEmpty prepend=" AND " property="factoryCode">
FACTORY_CODE = #factoryCode#
</isNotEmpty>-->
</select>
</sqlMap>
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