Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
Y
yn-health-science
Project
Project
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
徐俊
yn-health-science
Commits
3adfcb7c
Commit
3adfcb7c
authored
Dec 17, 2024
by
徐俊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xujun
parent
5e99ff4f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
10 deletions
+7
-10
ComProjectKpitDetailServiceImpl.java
...science/service/impl/ComProjectKpitDetailServiceImpl.java
+7
-10
No files found.
science-admin/src/main/java/com/yiboshi/science/service/impl/ComProjectKpitDetailServiceImpl.java
View file @
3adfcb7c
...
...
@@ -12,6 +12,7 @@ import lombok.AllArgsConstructor;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
java.util.ArrayList
;
import
java.util.List
;
@Service
...
...
@@ -33,21 +34,17 @@ public class ComProjectKpitDetailServiceImpl extends BaseServiceImpl<ComProjectK
}
public
void
insertList
(
List
<
ComProjectKpitDetailDTO
>
list
,
String
objectId
)
{
//
ComProjectKpitDetail model =new ComProjectKpitDetail();
//
model.setObjectId(objectId);
//
this.delete(model);
ComProjectKpitDetail
model
=
new
ComProjectKpitDetail
();
model
.
setObjectId
(
objectId
);
this
.
delete
(
model
);
if
(
null
!=
list
)
{
//
List<ComProjectKpitDetail> iList = new ArrayList<>();
List
<
ComProjectKpitDetail
>
iList
=
new
ArrayList
<>();
for
(
int
i
=
0
;
i
<
list
.
size
();
i
++)
{
ComProjectKpitDetail
item
=
convert2Entity
(
list
.
get
(
i
));
item
.
setObjectId
(
objectId
);
if
(
item
.
getId
().
equals
(
item
.
getKpitId
()))
this
.
insert
(
item
);
else
this
.
update
(
item
);
//iList.add(item);
iList
.
add
(
item
);
}
//
this.insertBatch(iList);
this
.
insertBatch
(
iList
);
}
}
public
void
deleteByObjectId
(
String
objectId
){
...
...
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