|
@@ -433,14 +433,18 @@ public class SchoolService {
|
433
|
433
|
List<Integer> schoolids = params.getSchoolids();
|
434
|
434
|
int timestemp = N_Utils.getSecondTimestamp();
|
435
|
435
|
for(Integer shid : schoolids){
|
436
|
|
- TSchoolFriend sf = new TSchoolFriend();
|
437
|
|
- sf.setSchoolid(params.getSchoolid());
|
438
|
|
- sf.setFschoolid(shid);
|
439
|
|
- sf.setCreateid(params.getCreateid());
|
440
|
|
- sf.setCreatetime(timestemp);
|
441
|
|
- schoolfriends.add(sf);
|
|
436
|
+ if(!params.getSchoolid().equals(shid)){
|
|
437
|
+ TSchoolFriend sf = new TSchoolFriend();
|
|
438
|
+ sf.setSchoolid(params.getSchoolid());
|
|
439
|
+ sf.setFschoolid(shid);
|
|
440
|
+ sf.setCreateid(params.getCreateid());
|
|
441
|
+ sf.setCreatetime(timestemp);
|
|
442
|
+ schoolfriends.add(sf);
|
|
443
|
+ }
|
|
444
|
+ }
|
|
445
|
+ if(N_Utils.isListNotEmpty(schoolfriends)){
|
|
446
|
+ schoolFriendMapper.insertList(schoolfriends);
|
442
|
447
|
}
|
443
|
|
- schoolFriendMapper.insertList(schoolfriends);
|
444
|
448
|
}
|
445
|
449
|
|
446
|
450
|
//获取学校附属学校
|