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
97999a1f
Commit
97999a1f
authored
Aug 20, 2024
by
liuyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2024-08-16 安全记录APP附件上传调整修改不再删除附件
parent
3e5883c1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
+7
-5
ServiceHPSB008.java
.../java/com/baosight/hpjx/hp/sb/service/ServiceHPSB008.java
+6
-4
HPSBTools.java
src/main/java/com/baosight/hpjx/hp/sb/tools/HPSBTools.java
+1
-1
No files found.
src/main/java/com/baosight/hpjx/hp/sb/service/ServiceHPSB008.java
View file @
97999a1f
...
...
@@ -109,15 +109,17 @@ public class ServiceHPSB008 extends ServiceEPBase {
HPSB008
hpsb008
=
new
HPSB008
();
hpsb008
.
fromMap
(
resultMap
);
if
(
hpsb008
.
getId
()
==
null
||
hpsb008
.
getId
()
==
0
)
{
this
.
add
(
hpsb008
);
hpsb008
.
setRecordCode
(
SequenceGenerator
.
getNextSequence
(
HPConstant
.
SequenceId
.
RECORD_CODE
));
DaoUtils
.
insert
(
HPSB008
.
INSERT
,
hpsb008
);
}
else
{
this
.
modify
(
hpsb008
);
List
<
HPSB099
>
hpsb099List
=
HPSBTools
.
Hpsb099
.
getMatId
(
hpsb008
.
getId
());
/*List<HPSB099> hpsb099List = HPSBTools.Hpsb099.getMatId(hpsb008.getId());
if (hpsb099List.size() > 0) {
for (HPSB099 hpsb099 : hpsb099List) {
DaoUtils.update(HPSB099.DELETE, hpsb099);
Iplat4jUtils.deleteFileByDocId(hpsb099.getDocId());
}
}
}*/
this
.
modify
(
hpsb008
);
}
if
(
StringUtils
.
isNotEmpty
(
docId
))
{
String
[]
docIds
=
docId
.
split
(
","
);
...
...
src/main/java/com/baosight/hpjx/hp/sb/tools/HPSBTools.java
View file @
97999a1f
...
...
@@ -180,7 +180,7 @@ public class HPSBTools {
Map
queryMap
=
new
HashMap
();
queryMap
.
put
(
HPSB099
.
FIELD_MAT_ID
,
matId
);
List
<
HPSB099
>
results
=
DaoBase
.
getInstance
().
query
(
HPSB099
.
QUERY
,
queryMap
);
AssertUtils
.
isEmpty
(
results
,
"附件清单不存在"
);
//
AssertUtils.isEmpty(results, "附件清单不存在");
return
results
;
}
...
...
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