Commit d6d7903b445b9af05f5e377a031784f43764c00e
1 parent
ce171ff754
Exists in
master
and in
6 other branches
一贯制--团队管理列表bug
Showing 1 changed file with 3 additions and 5 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/TeamServiceImpl.java
View file @
d6d7903
... | ... | @@ -22,10 +22,7 @@ |
22 | 22 | import org.springframework.data.mongodb.core.query.Query; |
23 | 23 | import org.springframework.stereotype.Service; |
24 | 24 | |
25 | -import java.util.ArrayList; | |
26 | -import java.util.Date; | |
27 | -import java.util.List; | |
28 | -import java.util.Map; | |
25 | +import java.util.*; | |
29 | 26 | |
30 | 27 | @Service |
31 | 28 | public class TeamServiceImpl implements TeamService { |
... | ... | @@ -105,7 +102,8 @@ |
105 | 102 | TeamModel teamModel=new TeamModel(); |
106 | 103 | BeanUtils.copyProperties(teamReq,teamModel); |
107 | 104 | teamModel.setCreated(new Date()); |
108 | - List<String> doctorIdArr=teamModel.getDoctorIdArr(); | |
105 | + List<String> doctorIdArr=new ArrayList<>(); | |
106 | + Collections.copy(doctorIdArr,teamModel.getDoctorIdArr()); | |
109 | 107 | teamModel.getDoctorIdArr().clear(); |
110 | 108 | for (String dId : doctorIdArr) { |
111 | 109 | if(null!=dId){ |