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
5330afca
Commit
5330afca
authored
Mar 14, 2024
by
liuyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2024/03/14 文件上传不保存目录标识和物理名称
parent
aaf75274
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
ServiceHPDS002.java
.../java/com/baosight/hpjx/hp/ds/service/ServiceHPDS002.java
+10
-4
No files found.
src/main/java/com/baosight/hpjx/hp/ds/service/ServiceHPDS002.java
View file @
5330afca
package
com
.
baosight
.
hpjx
.
hp
.
ds
.
service
;
import
com.baosight.hpjx.aspect.annotation.OperationLogAnnotation
;
import
com.baosight.hpjx.core.constant.CommonConstant
;
import
com.baosight.hpjx.core.dao.DaoUtils
;
import
com.baosight.hpjx.hp.ds.domain.HPDS002
;
import
com.baosight.hpjx.hp.sc.domain.HPSC002A
;
import
com.baosight.hpjx.util.DateUtils
;
import
com.baosight.hpjx.util.LogUtils
;
import
com.baosight.iplat4j.core.ProjectInfo
;
import
com.baosight.iplat4j.core.ei.EiBlock
;
import
com.baosight.iplat4j.core.ei.EiConstant
;
import
com.baosight.iplat4j.core.ei.EiInfo
;
...
...
@@ -51,12 +54,15 @@ public class ServiceHPDS002 extends ServiceEPBase {
EiBlock
block
=
inInfo
.
getBlock
(
EiConstant
.
resultBlock
);
for
(
int
i
=
0
;
i
<
block
.
getRowCount
();
i
++)
{
Map
<
String
,
Object
>
map
=
new
HashMap
<
String
,
Object
>(
1
);
map
.
put
(
"docId"
,
block
.
getCellStr
(
i
,
HPDS002
.
FIELD_DOC_ID
));
List
<
Map
<
String
,
Object
>>
list
=
this
.
dao
.
query
(
"EUDM02.query"
,
map
);
map
.
put
(
HPSC002A
.
FIELD_DOC_ID
,
block
.
getCellStr
(
i
,
HPDS002
.
FIELD_DOC_ID
));
//
List<Map<String, Object>> list = this.dao.query("EUDM02.query", map);
HPDS002
hpds002
=
new
HPDS002
();
hpds002
.
fromMap
(
block
.
getRow
(
i
));
hpds002
.
setChgName
(
list
.
get
(
0
).
get
(
"chgName"
).
toString
());
hpds002
.
setDirId
(
list
.
get
(
0
).
get
(
"dirId"
).
toString
());
/*if (list.size() > 0) {
hpds002.setChgName(list.get(0).get("chgName").toString());
hpds002.setDirId(list.get(0).get("dirId").toString());
}*/
DaoUtils
.
insert
(
HPDS002
.
INSERT
,
hpds002
);
}
...
...
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