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
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
HGSCTools.java
src/main/java/com/baosight/hggp/hg/sc/tools/HGSCTools.java
+5
-3
No files found.
src/main/java/com/baosight/hggp/hg/sc/tools/HGSCTools.java
View file @
7a21ed77
...
@@ -52,11 +52,13 @@ public class HGSCTools {
...
@@ -52,11 +52,13 @@ public class HGSCTools {
public
static
List
<
HGSC001A
>
save
(
List
<
HGSC001A
>
hgsc001AList
,
Long
projId
){
public
static
List
<
HGSC001A
>
save
(
List
<
HGSC001A
>
hgsc001AList
,
Long
projId
){
if
(
CollectionUtils
.
isNotEmpty
(
hgsc001AList
)&&
Objects
.
nonNull
(
projId
))
{
if
(
CollectionUtils
.
isNotEmpty
(
hgsc001AList
)&&
Objects
.
nonNull
(
projId
))
{
//删除历史数据
DaoUtils
.
update
(
HGSC001A
.
DELETE_BY_PROJID
,
projId
);
hgsc001AList
.
forEach
(
obj
->
{
hgsc001AList
.
forEach
(
obj
->
{
if
(
Objects
.
nonNull
(
obj
.
getId
())&&
obj
.
getId
()>
0
){
DaoUtils
.
insert
(
HGSC001A
.
UPDATE
,
obj
);
}
else
{
obj
.
setProjId
(
projId
);
obj
.
setProjId
(
projId
);
DaoUtils
.
insert
(
HGSC001A
.
INSERT
,
obj
);
DaoUtils
.
insert
(
HGSC001A
.
INSERT
,
obj
);
}
});
});
}
}
return
hgsc001AList
;
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