Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hg-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
hg-smart
Commits
7a21ed77
Commit
7a21ed77
authored
May 11, 2024
by
wuwenlong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
项目立项修改BUGFIX;
parent
fda66056
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
HGSCTools.java
src/main/java/com/baosight/hggp/hg/sc/tools/HGSCTools.java
+6
-4
No files found.
src/main/java/com/baosight/hggp/hg/sc/tools/HGSCTools.java
View file @
7a21ed77
...
...
@@ -52,11 +52,13 @@ public class HGSCTools {
public
static
List
<
HGSC001A
>
save
(
List
<
HGSC001A
>
hgsc001AList
,
Long
projId
){
if
(
CollectionUtils
.
isNotEmpty
(
hgsc001AList
)&&
Objects
.
nonNull
(
projId
))
{
//删除历史数据
DaoUtils
.
update
(
HGSC001A
.
DELETE_BY_PROJID
,
projId
);
hgsc001AList
.
forEach
(
obj
->
{
obj
.
setProjId
(
projId
);
DaoUtils
.
insert
(
HGSC001A
.
INSERT
,
obj
);
if
(
Objects
.
nonNull
(
obj
.
getId
())&&
obj
.
getId
()>
0
){
DaoUtils
.
insert
(
HGSC001A
.
UPDATE
,
obj
);
}
else
{
obj
.
setProjId
(
projId
);
DaoUtils
.
insert
(
HGSC001A
.
INSERT
,
obj
);
}
});
}
return
hgsc001AList
;
...
...
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